Fatal error: Cannot redeclare smf_main()

Started by cyberry, December 31, 2009, 08:52:39 AM

Previous topic - Next topic

cyberry

#20
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

cyberry

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...

cyberry

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

N3RVE

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]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

cyberry

of course I would like to update....
how should we proceed?
???

cyberry

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!

N3RVE

By downloading the Large Upgrade Package here 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]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

cyberry

OK I will do this...

I also did send you a pm if you need it...

N3RVE

Well, I don't need Admin access on the forum ;)

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

cyberry

Quote from: [n3rve] on January 01, 2010, 08:55:39 AM
By downloading the Large Upgrade Package here 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..... :-\

N3RVE

Delete everything except Settings.php and upload everything in the package to the server.
Have you seen: Upgrading SMF
Everything should be replaced.

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

cyberry

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?

N3RVE

Okay, I'll do it. Send me FTP details and an Admin account.

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

cyberry



cyberry

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

N3RVE

Ok, so did everything work as expected ?

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

cyberry

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

alexmaster

Sometimes it's really enouh to delete files only that need to be  updated.

N3RVE

Are they any files in 2.0 that weren't updated between 1.x and 2.x?

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

Advertisement: