Advanced search  

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]

Pages: [1]   Go Down

Author Topic: FATAL ERROR: functions.inc.php problem!!  (Read 22492 times)

0 Members and 1 Guest are viewing this topic.

Retrolock

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
FATAL ERROR: functions.inc.php problem!!
« 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.
Logged

Retrolock

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
FATAL ERROR: functions.inc.php problem!!
« Reply #1 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?
Logged

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
FATAL ERROR: functions.inc.php problem!!
« Reply #2 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:
Logged
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

  • Translator
  • Coppermine frequent poster
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 100
    • http://www.ilvaldinoto.net
FATAL ERROR: functions.inc.php problem!!
« Reply #3 on: December 14, 2003, 11:18:24 pm »

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

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
FATAL ERROR: functions.inc.php problem!!
« Reply #4 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 change
Code: [Select]
if (!$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
Code: [Select]
// 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;
}
Logged
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

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
FATAL ERROR: functions.inc.php problem!!
« Reply #5 on: December 15, 2003, 01:02:45 am »

second part of bug open functions.inc about line 507 and replace
Code: [Select]
$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
Code: [Select]
$result = db_query("SELECT aid FROM {$CONFIG['TABLE_ALBUMS']} WHERE visibility != '0' AND visibility !='" . (FIRST_USER_CAT + USER_ID) . "' AND visibility != '" . user_group_cp . "'");
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
FATAL ERROR: functions.inc.php problem!!
« Reply #6 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!!!!
Logged

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
FATAL ERROR: functions.inc.php problem!!
« Reply #7 on: December 15, 2003, 03:43:26 pm »

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

Also give url where error occures
Logged
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

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
FATAL ERROR: functions.inc.php problem!!
« Reply #8 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
Logged
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
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 18 queries.