2.5.2 and general upgrade mayhem [message #12445] |
Fri, 08 August 2003 00:52 |
tecmes
Messages: 34 Registered: October 2002
Karma: 0
|
Member |
|
|
I upgrade from 2.3.4 to 2.3.8 (went allright) then went for the 2.5.2 upgrade.
>> When I try to update to 2.5.2, I do get a memory error. I managed to get rid of that with the fudforum_archive file, but then I got an execution timeerror during the update script.
>> When I try to update to 2.5.1, for some reason I don't get a memory error but I get :
Quote: | Call to undefined function: filetomem() in /blahblah/forum/include/compiler.inc on line 474
| during the update script.
>> SO I tried rolling back to 2.3.8, but then I get Unknown column error (during consistency check), I guess because the tables have been changed.
Ugh. What can I do ? I should mention :
* max memory is 5Mb
* execution time is set to 3 seconds
- I cannot change these parameters on the server.
At this point, the forum seems to work, but actually posting yields the same unknown columns errors, (and my custom theme is trashed...)
(PHP 4.3.3RC2)
thanks for any help
[Updated on: Fri, 08 August 2003 00:59] Report message to a moderator
|
|
|
Re: 2.5.2 and general upgrade mayhem [message #12446 is a reply to message #12445] |
Fri, 08 August 2003 01:04 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The upgrade script simply cannot work with such terribly short execution time. 2.5.2 may work with 5 megs if you use zlib, but it'll definately require more then 3 seconds to run unless you have a REALLY fast computer.
Right now your forum is in undefined state... I am not sure what sort of changes 2.5.2 was able to complete and running 2.5.1 upgrade script was definately a bad idea...
The solution is to ask your hosting provider to temporarily increase execution time to something reasonable like 30 seconds and retry 2.5.2 upgrade script.
FUDforum Core Developer
|
|
|
|
Re: 2.5.2 and general upgrade mayhem [message #12465 is a reply to message #12464] |
Fri, 08 August 2003 19:41 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
It is simply not possible to do because the upgrade script needs to do a whole lot of things. On a slow machine just the file decompression may take 5 seconds. Theoretically you can run the upgrade script as many times as you want, if it gets to the SQL section eventually it may even complete them. But I have a nagging feeling it does not even get there.
FUDforum Core Developer
|
|
|
Re: 2.5.2 and general upgrade mayhem [message #12466 is a reply to message #12465] |
Fri, 08 August 2003 19:47 |
tecmes
Messages: 34 Registered: October 2002
Karma: 0
|
Member |
|
|
Always amazed by your reply speed .
Indeed, the script not always succeeds in decompressing. When it does, it stops here :
Fetch SQL archive
SQL archive is now avaliable
Beginning SQL Upgrades
SQL Upgrades Complete
Populating pdest field for private messages
Adding GLOBAL Variables
Compiling theme default
Fatal error: Maximum execution time of 5 seconds exceeded in /home/users/rolenet/forum/include/compiler.inc on line 352
--
FYI, when I then try to access the admin panel, I get
Fatal error: Cannot instantiate non-existent class: fud_session in /home/users/rolenet/forum/include/theme/default/users.inc on line 150
So I cannot even reenable the forum.
[Updated on: Fri, 08 August 2003 19:49] Report message to a moderator
|
|
|
Re: 2.5.2 and general upgrade mayhem [message #12467 is a reply to message #12466] |
Fri, 08 August 2003 20:01 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Actually that's good news, it dies on the very last step of the upgrade process...
Here is what you need to do:
1) Go to http://url_of_your_forum/adm/
2) login as admin
3) Go to "Theme Manager" and click "Rebuild Theme" beside the default theme.
4) Click on the "Forum Consistency" and run the consistency checker
hopefully 5 seconds will be enough for it.
After this is all done you should have a working forum
FUDforum Core Developer
|
|
|
|
|
|
|
|
Re: 2.5.2 and general upgrade mayhem [message #12473 is a reply to message #12472] |
Fri, 08 August 2003 20:49 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Try running the script again, maybe it'll finish compiling this time...
Basically it times out generating the theme... maybe on the 2nd run since SQL work has been done i'll be able to complete the process...
FUDforum Core Developer
|
|
|
|
|
|
|
We're losing it ! [message #12482 is a reply to message #12478] |
Sat, 09 August 2003 02:06 |
tecmes
Messages: 34 Registered: October 2002
Karma: 0
|
Member |
|
|
OK, someone suggested a crasy technique but maybe it could work.
I succesfully installed a local 2.5.2 on my Hard Drive.
What if
a) I take all the files from both forum and forum-data folders from my HD and move them to a new place on the remote server, then
b)change the globals.php to fit with the new folders and roots
c) copy the OLD tables (with the correct data, presuming they are in good shape and 2.5.2-formatted) to the new database
d) copy the files which contain the messages and user data from the old to the new forum folders, ( but NOT copying the templates files and forum structure files which seem to be corrupt.) Which files should I copy to achieve that ?
e) pray to unholy gods
What are my odds for this brain transplant ? I have little hope that my admin changes the execution_time anytime soon and at least this procedure seems danger-free as long as I keep the original files. (ahem).
[Updated on: Sat, 09 August 2003 15:19] Report message to a moderator
|
|
|
update [message #12485 is a reply to message #12482] |
Sat, 09 August 2003 16:50 |
tecmes
Messages: 34 Registered: October 2002
Karma: 0
|
Member |
|
|
This doesn't seem to work right now because the MyAdmin is not even able to import the bigger tables because of the execution_Time limit.
Anyway, it has been increased to 8 seconds, and I now managed to complete the upgrade script, however the Consistency check fails thusly :
Quote: | Done: Rebuilding Topic Views
Rebuilding user levels, message counts & last post ids
Warning: Invalid argument supplied for foreach() in /home/users/rolenet/www/fudforum/adm/consist.php on line 72
Warning: array_pop(): The argument should be an array in /home/users/rolenet/www/fudforum/adm/consist.php on line 78
(consist.php) 1064: You have an error in your SQL syntax near 'WHERE id=5' at line 1
Query: UPDATE fud2_users SET u_last_post_id=3655, posted_msg_count=77,level_id= WHERE id=5
Server Version: 3.23.56-log
|
Note that the forum seems to work. What should or could not be working ? Indeed, the number of post has been reset to zero for everyone except the admin account, and the last post info has been wiped, too. Nothing serious, however, what other steps in the consistency checks haven't been processed because of that halt ?
[Updated on: Sat, 09 August 2003 17:09] Report message to a moderator
|
|
|
|
|
Re: update [message #12589 is a reply to message #12588] |
Sun, 17 August 2003 17:47 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Custom themes usually are left as is unless you make drastic modifications. The amount of 'loss' depends on whether or not the templates you are using were modified.
FUDforum Core Developer
|
|
|