coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 PHPnuke/Postnuke Support => Topic started by: Retrolock on December 14, 2003, 02:18:03 PM

Title: FATAL ERROR: functions.inc.php problem!!
Post by: Retrolock on December 14, 2003, 02:18:03 PM
after upgrading my 1.2 cpg to a 1.2.1 i cant access my albums! this error...

Fatal error: Call to undefined function: starttable() in /home/nyebeco/public_html/members/modules/coppermine/include/functions.inc.php on line 167
 
...is the only one being displayed! pls help! Im using phpnuke 6.7

http://www.nyebe.co.uk/members/modules.php?name=coppermine is the address.
Title: FATAL ERROR: functions.inc.php problem!!
Post by: Retrolock on December 14, 2003, 02:44:30 PM
http://coppermine.findhere.org has the same problem now! they have a blank webpage and the error..

Fatal error: Call to undefined function: starttable() in /home/gtroll/public_html/cp/modules/coppermine/include/functions.inc.php on line 166
 
..is displayed at the bottom!!! What gives?
Title: FATAL ERROR: functions.inc.php problem!!
Post by: DJMaze on December 14, 2003, 10:17:01 PM
could you tell me on which page it occures ?

Because I can't find the error :cry:
Title: FATAL ERROR: functions.inc.php problem!!
Post by: eolica on December 14, 2003, 11:18:24 PM
All pages of http://coppermine.findhere.org/ except the two installs of Coppermine  :cry:  :cry:  :cry:
Title: FATAL ERROR: functions.inc.php problem!!
Post by: DJMaze on December 15, 2003, 12:46:32 AM
ok found bug it seems to occure when not logged in as admin.

open init.inc.php changeif (!$cpg_block) {
    // Load theme
    if (!file_exists($CPG_M_DIR . "/themes/default/theme.php")) $CONFIG['theme'] = 'default';
    $THEME_DIR = $CPG_M_DIR . "/themes/{$CONFIG['theme']}";
    require_once($CPG_M_DIR . "/themes/{$CONFIG['theme']}/theme.php");

    // load the main template
    load_template();

    if (isset($home)) $index = $home;
    else $index = 0;
}

into // Load theme
if (!file_exists($CPG_M_DIR . "/themes/default/theme.php")) $CONFIG['theme'] = 'default';
$THEME_DIR = $CPG_M_DIR . "/themes/{$CONFIG['theme']}";
require_once($CPG_M_DIR . "/themes/{$CONFIG['theme']}/theme.php");

if (!$cpg_block) {
    // load the main template
    load_template();

    if (isset($home)) $index = $home;
    else $index = 0;
}
Title: FATAL ERROR: functions.inc.php problem!!
Post by: DJMaze on December 15, 2003, 01:02:45 AM
second part of bug open functions.inc about line 507 and replace$result = db_query("SELECT aid FROM {$CONFIG['TABLE_ALBUMS']} WHERE visibility != '0' AND visibility !='" . (FIRST_USER_CAT + USER_ID) . "' AND visibility != '" . $USER_DATA['group_id'] . "'");

into
$result = db_query("SELECT aid FROM {$CONFIG['TABLE_ALBUMS']} WHERE visibility != '0' AND visibility !='" . (FIRST_USER_CAT + USER_ID) . "' AND visibility != '" . user_group_cp . "'");
Title: FATAL ERROR: functions.inc.php problem!!
Post by: Retrolock on December 15, 2003, 10:36:34 AM
Template error
Failed to find block 'file_line'(#(<!-- BEGIN file_line -->)(.*?)(<!-- END file_line -->)#s) in :

after fixing the includes.. this crops up now..
pls help!!!!
Title: FATAL ERROR: functions.inc.php problem!!
Post by: DJMaze on December 15, 2003, 03:43:26 PM
Are you using a other theme then "Default" in coppermine ?

Also give url where error occures
Title: FATAL ERROR: functions.inc.php problem!!
Post by: DJMaze on December 16, 2003, 01:35:00 AM
Ok i found the bugs and why they are caused.
It seems they are there since 1.1D and they came to daylight when we made new blocks which interact with the coppermine files and functions.

After a lot of debugging and testing i found out why all the errors occure.
Please have patient for new release because the changes are to much to post here and a download file won't work because we already made to much changes in the file for security and speedup reasons