FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » 2.5.2 and general upgrade mayhem
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
2.5.2 and general upgrade mayhem [message #12445] Fri, 08 August 2003 00:52 Go to next message
tecmes is currently offline  tecmes   Canada
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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #12464 is a reply to message #12446] Fri, 08 August 2003 19:32 Go to previous messageGo to next message
tecmes is currently offline  tecmes   Canada
Messages: 34
Registered: October 2002
Karma: 0
Member
Thanks for your reply.

My provider HAS increased execution_time ... to 5 seconds... Laughing still not enough of course.

While I try some more haggling with him, is there any chance that the 2.5.2 install.php work with that limit ?

Also, if I install a fresh 2.5.2 somewhere else, will it be possible to either

a) use remote databases, i.e. on a different server than the one the forum is on ?
and
b)use the existing database with a fresh install ?

OR

c) install a fresh forum, then move the tablesto the same server ?

(note : the datadump function did not work, even when the forum was still 2.3.4 and working, because of the same execution_time issue. So I don't have a fresh datadump. As of now, I cannot even access the admin panel at all from the 'forum disabled' page)
Re: 2.5.2 and general upgrade mayhem [message #12465 is a reply to message #12464] Fri, 08 August 2003 19:41 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 Go to previous messageGo to next message
tecmes is currently offline  tecmes   Canada
Messages: 34
Registered: October 2002
Karma: 0
Member
Always amazed by your reply speed Cool.

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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #12468 is a reply to message #12467] Fri, 08 August 2003 20:05 Go to previous messageGo to next message
tecmes is currently offline  tecmes   Canada
Messages: 34
Registered: October 2002
Karma: 0
Member
(i edited my message so you didn't get the end)

This does not work , because I can't access the adm login page, it says :

Fatal error: Cannot instantiate non-existent class: fud_session in /{whatever nonbrowseable}/forum/include/theme/default/users.inc on line 150
Re: 2.5.2 and general upgrade mayhem [message #12469 is a reply to message #12468] Fri, 08 August 2003 20:11 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Start from scartch, download a new 2.5.2 upgrade script and use it.

FUDforum Core Developer
Re: 2.5.2 and general upgrade mayhem [message #12470 is a reply to message #12469] Fri, 08 August 2003 20:20 Go to previous messageGo to next message
tecmes is currently offline  tecmes   Canada
Messages: 34
Registered: October 2002
Karma: 0
Member
If you really mean an upgrade script, that's what I just did and I still cannot access the admin login.

If you meant an install script, I tried with the 2.5.2 install and another database altogether, but still on the same server (none of my other available servers service seem to have all the PHP function needed). I got an execution_time error after specifying the cookie name, and the resulting forum is unusable.
Re: 2.5.2 and general upgrade mayhem [message #12471 is a reply to message #12470] Fri, 08 August 2003 20:41 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
No, I mean download a new upgrade script, replacing the one you have with it and run it.

FUDforum Core Developer
Re: 2.5.2 and general upgrade mayhem [message #12472 is a reply to message #12471] Fri, 08 August 2003 20:44 Go to previous messageGo to next message
tecmes is currently offline  tecmes   Canada
Messages: 34
Registered: October 2002
Karma: 0
Member
That's what I did after your "start form scratch" message.

I get the same result, namely :
1. execution_time error at the "Compiling theme default" stage.
then
2. cannot access the forum/adm/ page at all, I still get the

Fatal error: Cannot instantiate non-existent class: fud_session in /home/users/rolenet/forum/include/theme/default/users.inc on line 150

Re: 2.5.2 and general upgrade mayhem [message #12473 is a reply to message #12472] Fri, 08 August 2003 20:49 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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
Re: 2.5.2 and general upgrade mayhem [message #12474 is a reply to message #12473] Fri, 08 August 2003 20:53 Go to previous messageGo to next message
tecmes is currently offline  tecmes   Canada
Messages: 34
Registered: October 2002
Karma: 0
Member
OK, I'll try later when the server should be under little stress, but I doubt it'll worked. I already tried during the wee hours of the night and it didn't.

Do you imply that the error I get when trying to access the admin login page may be due to incomplete theme build or incomplete install, or should I fear that my multiple and clumsy upgrade could have mangled those files ? I mean : even if the execution_time gets increased, is it likely that my install be damaged beyond repair ?
Re: 2.5.2 and general upgrade mayhem [message #12475 is a reply to message #12474] Fri, 08 August 2003 21:02 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The error you are seeing is due to the theme compiler not having enough time to rebuild all of the templates.

FUDforum Core Developer
Re: 2.5.2 and general upgrade mayhem [message #12477 is a reply to message #12475] Fri, 08 August 2003 22:19 Go to previous messageGo to next message
tecmes is currently offline  tecmes   Canada
Messages: 34
Registered: October 2002
Karma: 0
Member
prottoss wrote on Fri, 08 August 2003 17:02

The error you are seeing is due to the theme compiler not having enough time to rebuild all of the templates.


But does that explains that the admin login panel does not work ? It does not make use of templates ?
Re: 2.5.2 and general upgrade mayhem [message #12478 is a reply to message #12477] Fri, 08 August 2003 23:04 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
It makes use of PHP includes that are compiled/generating during template making process.

FUDforum Core Developer
We're losing it ! [message #12482 is a reply to message #12478] Sat, 09 August 2003 02:06 Go to previous messageGo to next message
tecmes is currently offline  tecmes   Canada
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 Twisted Evil

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 Go to previous messageGo to next message
tecmes is currently offline  tecmes   Canada
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 #12486 is a reply to message #12485] Sat, 09 August 2003 19:36 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
This is a known and fixed bug, replace your consist.php with the one from CVS (url below) and re-run the check.

http://cvs.prohost.org/c/index.cgi/FUDforum/getfile?v=1.50&f=install/ww w_root/adm/consist.php


FUDforum Core Developer
Re: update [message #12588 is a reply to message #12486] Sun, 17 August 2003 15:39 Go to previous messageGo to next message
tecmes is currently offline  tecmes   Canada
Messages: 34
Registered: October 2002
Karma: 0
Member
This is just an update : not only did this patch work but my forum is fully back, even though I had performed many awkward and unnecesary updates.

I have however lost the custom theme, and I wonder : I see there are quite a few patches out for 2.5.2 already, will the next release keep the custom themes ?
Re: update [message #12589 is a reply to message #12588] Sun, 17 August 2003 17:47 Go to previous message
Ilia is currently offline  Ilia   Canada
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Installation problems
Next Topic: Changig URL
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Dec 22 05:12:03 GMT 2024

Total time taken to generate the page: 0.02545 seconds