Hello,
I hope somebody can help me with this problem I have.
After a upgrade from version RC1 to RC2 I receive the following error:
Fatal error: Cannot redeclare smf_main()
Do somebody know what that means?
Thanks Roger
Duplicate function, what file is reported? Post the full error here.
-[n3rve]
Fatal error: Cannot redeclare smf_main() (previously declared in /www/htdocs/w00aa632/bfc/smf/index.php:159) in /www/htdocs/w00aa632/bfc/smf/index.php on line 706
:-[
Attach ./Index.php to your next reply.
-[n3rve]
It is the index.php from the updatefile....
The smf_main() function is not declared twice in that file. It shouldn't be reporting that error.
-[n3rve]
so what can I do now?
:-\
Looking at that error and looking at the file you attached, it's clear you've attached the wrong file. I'll advice you to get a copy of the Large Upgrade Package and use the index.php in the package.
-[n3rve]
This is what I used:
http://download.simplemachines.org/index.php?thanks;filename=smf_2-0-rc2_upgrade.zip
Yes, use that (again). Use the Index.php file included the package.
-[n3rve]
OK I will do it again and pray ;)
Now I have a new error:
Fatal error: Cannot redeclare template_main() (previously declared in /www/htdocs/w00aa632/bfc/smf/Sources/Load.php(2075) : eval()'d code:6) in /www/htdocs/w00aa632/bfc/smf/Sources/Load.php(2075) : eval()'d code on line 744
:o
Are you installing any mods after the large upgrade package? Are you sure the files are getting replaced?
-[n3rve]
It looks like I have a problem with my template I used since it was a old template what is not working with rc2 anymore.
Is there a possibility to switch templates manually (not in the FRONTEND)?
This is the error I get now:
Fatal error: Cannot redeclare template_init() (previously declared in /www/htdocs/w00aa632/bfc/smf/Sources/Load.php(2075) : eval()'d code:32) in /www/htdocs/w00aa632/bfc/smf/Sources/Load.php(2075) : eval()'d code on line 532
I am getting there step by step ;)
I don't understand, you mean after replacing *everything* on your server with fresh sets from the Large Upgrade Package, you still have those redeclare errors, that's impossible. I just downloaded the upgrade packages from all server, tested them and I don't have any error whatsoever. You are not replacing the files, simple.
-[n3rve]
Well, my board did run with the theme BK-SMF-Dark-20B4-v2 (before udating) but now it seems that this theme is not working anymore.
I did the update the board now via the upgrade.php and everything worked fine.
I deleted the upgrade.php and tried to get in the board but with no success. So I renamed one of my themes on the server (default) to the BK-SMF-Dark-20B4-v2 and it worked untill I did try to upload a new theme (Winter).
Now I always get this error i mentioned before.
I belive the upgrade would not run if something was not copied properly?
Any Ideas?
Best regards,
Roger
I guess I will go and drink some beer now and try to solve the problems tomorrow ( hopefully with your help)
Happy new year....
Post a link to your forum and a link to theme you're trying to use.
-[n3rve]
Hi,
this is one more problem I am not able to find the theme anymore....
Here is the link to the board: http://www.meeforum.bfcmassenbuch.eu/
Oh you propably mean the new one: http://custom.simplemachines.org/themes/index.php?action=download;lemma=2021;id=11525
Honestly I don't understand how this is happening, you should *not* be getting those redeclare errors after replacing files with the Large Upgrade Package. Have you tried to delete everything in the SMF directory except Settings.php and re-upload the archive, also attach ./Sources/Load.php so I can take a look.
-[n3rve]
I am redoing the upgrade and let you know when I am done
Done the upgrade again.
I had the following problem but I did as adviced and bypassed the check:
The upgrader found some old or outdated language files, for the forum default language, english.
Note: If necessary the above security check can be bypassed for users who may administrate a server but not have admin rights on the forum. In order to bypass the above check simply open "upgrade.php" in a text editor and replace "$disable_security = 0;" with "$disable_security = 1;" and refresh this page.
And guess what I have that error message again after finishing the upgrade:
Fatal error: Cannot redeclare template_init() (previously declared in /www/htdocs/w00aa632/bfc/smf/Sources/Load.php(2075) : eval()'d code:32) in /www/htdocs/w00aa632/bfc/smf/Sources/Load.php(2075) : eval()'d code on line 532
:o
Since I made a download of the whole smf folder before I upgraded i am wondering if I could just replace the folder on the server and have my old (working) board back.
Is this as easy as I think or would this not work...
Quote from: cyberry on January 01, 2010, 07:13:14 AM
Since I made a download of the whole smf folder before I upgraded i am wondering if I could just replace the folder on the server and have my old (working) board back.
Is this as easy as I think or would this not work...
This seems to work :D
So would you still be interested in working out the issues with the upgrade or you'd prefer to stick to your current version now?
-[n3rve]
of course I would like to update....
how should we proceed?
???
by the way where can I change that into a german text?
Okay faithful users...we're attempting to restore an older backup of the database...news will be posted once we're back!
By downloading the Large Upgrade Package here (http://download.simplemachines.org/index.php/smf_2-0-rc2_upgrade.zip) and uploading the files included to replace *every* file on the server, then execute Upgrade.php
Quote from: cyberry on January 01, 2010, 08:51:29 AM
by the way where can I change that into a german text?
Okay faithful users...we're attempting to restore an older backup of the database...news will be posted once we're back!
In ./Settings.php
-[n3rve]
OK I will do this...
I also did send you a pm if you need it...
Well, I don't need Admin access on the forum ;)
-[n3rve]
Quote from: [n3rve] on January 01, 2010, 08:55:39 AM
By downloading the Large Upgrade Package here (http://download.simplemachines.org/index.php/smf_2-0-rc2_upgrade.zip) and uploading the files included to replace *every* file on the server, then execute Upgrade.php
Meaning to replace all files but not deleting files that are not in this package, is this correct?
By the way this is exactly the download I used before..... :-\
Delete everything except Settings.php and upload everything in the package to the server.
Have you seen: Upgrading SMF (http://docs.simplemachines.org/index.php?board=3.0;sort=subject)
Everything should be replaced.
-[n3rve]
OK done copying the files now I can start with the upgrade or do you want to do it so you can see what happens?
Okay, I'll do it. Send me FTP details and an Admin account.
-[n3rve]
you should have everything now
anything new ???
Hi,
well I think the upgrade did work now please don“t ask me why but it did.
I will do some tests and check if everything works correctly.
Thanks for your help so far. :)
Best regards,
Roger
Ok, so did everything work as expected ?
-[n3rve]
yes, I guess the problem was that I realy did not delete everything.
For example there where still some files in the cache folder and in the sources folder I had some files with an ~ in front.
This time I deleted everything as you mentioned and it worked fine. O:)
I realy appreciate your help.
Thanks a lot.
Best regards,
Roger
Sometimes it's really enouh to delete files only that need to be updated.
Are they any files in 2.0 that weren't updated between 1.x and 2.x?
-[n3rve]