Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Install and Upgrade Help => Aiheen aloitti: Mystery? - helmikuu 05, 2009, 06:58:16 IP

Otsikko: Upgrading Error: SMF 2.0 Beta 4 -> SMF 2.0 RC1
Kirjoitti: Mystery? - helmikuu 05, 2009, 06:58:16 IP
LainaaFatal error: Cannot redeclare loadpmwarning() (previously declared in /home/mystery/public_html/forum/Sources/Load.php:2632) in /home/mystery/public_html/forum/Sources/Load.php on line 2703

This is the error I get.
Otsikko: Re: Upgrading Error: SMF 2.0 Beta 4 -> SMF 2.0 RC1
Kirjoitti: N3RVE - helmikuu 05, 2009, 07:09:09 IP
Some code has been declared twice in load.php, open that file, look around the lines the error pointed out and get rid of duplicate code.

Edit: Changed response

-[n3rve]
Otsikko: Re: Upgrading Error: SMF 2.0 Beta 4 -> SMF 2.0 RC1
Kirjoitti: Mystery? - helmikuu 05, 2009, 08:21:39 IP
Lainaus käyttäjältä: [n3rve] - helmikuu 05, 2009, 07:09:09 IP
Some code has been declared twice in load.php, open that file, look around the lines the error pointed out and get rid of duplicate code.

Edit: Changed response

-[n3rve]

Now I get this:


Parse error: syntax error, unexpected $end in /home/mystery/public_html/forum/Sources/Load.php on line 2667

because of line 2667 (  ?>   ) without space or parenthesis.
Otsikko: Re: Upgrading Error: SMF 2.0 Beta 4 -> SMF 2.0 RC1
Kirjoitti: N3RVE - helmikuu 05, 2009, 08:28:37 IP
You probably removed more than you needed to, I'm unable to look into this as I'm currently mobile. I suggest you upload the files and wait on the next available Support Specialist.

-[n3rve]
Otsikko: Re: Upgrading Error: SMF 2.0 Beta 4 -> SMF 2.0 RC1
Kirjoitti: Mystery? - helmikuu 05, 2009, 08:40:48 IP
Upgraded successfully...

But I have another problem before the upgrade I put the maintainence mode on... Now its still on after the upgrade.
Otsikko: Re: Upgrading Error: SMF 2.0 Beta 4 -> SMF 2.0 RC1
Kirjoitti: N3RVE - helmikuu 05, 2009, 08:52:14 IP
You can download repair_settings.php (What is repair_settings.php? (http://www.simplemachines.org/community/index.php?topic=18096.0)) and upload that file to your board directory, call it with a browser and you can turn of mod maintenance from that page.

Alternatively, download and open settings.php, the $maintenance variable currently has it's value set to 2, changing it to 0 will fix that :)

-[n3rve]
Otsikko: Re: Upgrading Error: SMF 2.0 Beta 4 -> SMF 2.0 RC1
Kirjoitti: Mystery? - helmikuu 05, 2009, 09:55:14 IP
Now I get this:

LainaaFatal error: Call to undefined function loadpmwarning() in /home/mystery/public_html/forum/index.php on line 188
Otsikko: Re: Upgrading Error: SMF 2.0 Beta 4 -> SMF 2.0 RC1
Kirjoitti: Mystery? - helmikuu 05, 2009, 10:12:54 IP
I removed that line and got this instead:

LainaaFatal error: require_once() [function.require]: Failed opening required '/home/mystery/public_html/forum/Sources/Subs-MembersOnlineToday.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mystery/public_html/forum/Sources/BoardIndex.php on line 78
Otsikko: Re: Upgrading Error: SMF 2.0 Beta 4 -> SMF 2.0 RC1
Kirjoitti: aldo - helmikuu 05, 2009, 10:18:59 IP
That error is probably due to that fact that the file is not in the Sources directory. So you should probably remove the require_once() from it (Only if you completely removed the modification and plan to apply the mod later), or upload the right file.
Otsikko: Re: Upgrading Error: SMF 2.0 Beta 4 -> SMF 2.0 RC1
Kirjoitti: greyknight17 - helmikuu 14, 2009, 10:49:53 IP
Looks like it might be from the Users Online Today mod. I suggest uninstalling it (manually if you can't do it from the Package Manager).