FATAL ERROR: functions.inc.php problem!! FATAL ERROR: functions.inc.php problem!!
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

FATAL ERROR: functions.inc.php problem!!

Started by Retrolock, December 14, 2003, 02:18:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Retrolock

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.

Retrolock

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?

DJMaze

could you tell me on which page it occures ?

Because I can't find the error :cry:
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

eolica

All pages of http://coppermine.findhere.org/ except the two installs of Coppermine  :cry:  :cry:  :cry:
Sesto Avolio

DJMaze

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;
}
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

DJMaze

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 . "'");
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

Retrolock

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!!!!

DJMaze

Are you using a other theme then "Default" in coppermine ?

Also give url where error occures
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

DJMaze

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
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0