I've upgraded from 7.5 to 7.7, and had a few problems with certain functions/modules not working. I did a lot of research, took a day off work, and have mostly everything working again, with exception to the Administration page in the forums module.
The error returned is:
Code:
Parse error: parse error, unexpected $ in /home/craka/public_html/modules/Forums/admin/index.php on line 1261
As far as I see, line 1261 is the last line of the php file. I have also included the
Code:
if (!eregi("modules.php", $_SERVER['PHP_SELF']))
{
die ("You can't access this file directly...");
Okay, once I've put the original 7.7 file back into the admin folder in the forums module, I now get this error when trying to access forum administration...
Code:
Warning: main(includes/constants.php): failed to open stream: No such file or directory in /home/craka/public_html/modules/Forums/common.php on line 190
Warning: main(includes/constants.php): failed to open stream: No such file or directory in /home/craka/public_html/modules/Forums/common.php on line 190
Warning: main(): Failed opening 'includes/constants.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/craka/public_html/modules/Forums/common.php on line 190
Warning: main(includes/template.php): failed to open stream: No such file or directory in /home/craka/public_html/modules/Forums/common.php on line 191
Warning: main(includes/template.php): failed to open stream: No such file or directory in /home/craka/public_html/modules/Forums/common.php on line 191
Warning: main(): Failed opening 'includes/template.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/craka/public_html/modules/Forums/common.php on line 191
Warning: main(includes/sessions.php): failed to open stream: No such file or directory in /home/craka/public_html/modules/Forums/common.php on line 192
Warning: main(includes/sessions.php): failed to open stream: No such file or directory in /home/craka/public_html/modules/Forums/common.php on line 192
Warning: main(): Failed opening 'includes/sessions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/craka/public_html/modules/Forums/common.php on line 192
Warning: main(includes/auth.php): failed to open stream: No such file or directory in /home/craka/public_html/modules/Forums/common.php on line 193
Warning: main(includes/auth.php): failed to open stream: No such file or directory in /home/craka/public_html/modules/Forums/common.php on line 193
Warning: main(): Failed opening 'includes/auth.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/craka/public_html/modules/Forums/common.php on line 193
Warning: main(includes/functions.php): failed to open stream: No such file or directory in /home/craka/public_html/modules/Forums/common.php on line 194
Warning: main(includes/functions.php): failed to open stream: No such file or directory in /home/craka/public_html/modules/Forums/common.php on line 194
Warning: main(): Failed opening 'includes/functions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/craka/public_html/modules/Forums/common.php on line 194
Warning: main(db/db.php): failed to open stream: No such file or directory in /home/craka/public_html/modules/Forums/common.php on line 195
Warning: main(db/db.php): failed to open stream: No such file or directory in /home/craka/public_html/modules/Forums/common.php on line 195
Warning: main(): Failed opening 'db/db.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/craka/public_html/modules/Forums/common.php on line 195
Fatal error: Call to undefined function: encode_ip() in /home/craka/public_html/modules/Forums/common.php on line 207
It seems to have messed it up more. Is there any way to just remove everything and start over with a fresh install, without losing/corrupting the database?
One more thing I've noticed now, is that when posting a comment, it doesn't match the theme any longer. It's now a white text box with the formatting options at the bottom (which don't work), and emoticons cannot be added.
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
//
// DB size ... MySQL only
//
// This code is heavily influenced by a similar routine
// in phpMyAdmin 2.2.0
//
if( preg_match("/^mysql/", SQL_LAYER) )
{
$sql = "SELECT VERSION() AS mysql_version";
if($result = $db->sql_query($sql))
{
$row = $db->sql_fetchrow($result);
$version = $row['mysql_version'];
DoH! I had placed the wrong php file there. Okay, now with the php file you posted, and the common.php file removed from modules/forums/common.php, I get the following error...
Quote:
Fatal error: Call to undefined function: message_die() in /home/craka/public_html/modules/Forums/admin/pagestart.php on line 55
If I leave the common.php file there, it gives many errors again as listed above.
Joined: May 02, 2003 Posts: 1396 Location: Puerto Rico
Posted:
Thu May 12, 2005 3:03 pm
If the rest of the site works check the constants.php file, near the bottom you will see the forum's db tables listed, they should all use $prefix and not $user_prefix except for the user db tables, also check your nuke config.php to make sure $prefix and $user_prefix both have the same value.
Also, I just noticed, that there are two different icons in the admin panel for the website, both for forums. One in module administration, and the other in administration menu?! I don't recall there being two different icons to access the same area. If you select either, they both point to the same location, HOWEVER, one gives me the above 10~15 lines of error code, while the other gives me File 404
Joined: May 02, 2003 Posts: 1396 Location: Puerto Rico
Posted:
Thu May 12, 2005 9:49 pm
remove the forum admin files from nuke's admin/case, admin/link and admin/modules folders, if after this you still have problems pm me the site url a superuser account login data and ftp login data.
Thanks, Chatserv. I'll get that started as soon as I get home from work.
I do have one more question. I have a feeling that the forums didn't upgrade to 2.0.15 once the rest of the site was upgraded to 7.7.
I have downloaded a full version of 2.0.15, and was wondering, first of all, how I would tell if the forums were in fact version 2.0.15 or not, being that I cannot access the administration panel in the forums.
If I wipe out the forums currently on the site, and just install the fresh copy of 2.0.15, how many tables will be incorrect that I'll need to change?
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum