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.
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?
could you tell me on which page it occures ?
Because I can't find the error :cry:
All pages of http://coppermine.findhere.org/ except the two installs of Coppermine :cry: :cry: :cry:
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;
}
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 . "'");
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!!!!
Are you using a other theme then "Default" in coppermine ?
Also give url where error occures
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