Host upgraded PHP, unable to upgrade forum
March 01, 2019, 01:50:18 pm
Hello, we have ad a forum running for years at version 1.0.7. Now our host decided to upgrade PHP to v7.2.7 which is not compatible with elkarte and people cannot login due to sessions errors. I get the same when I try to access the admin panel. So I attempted to upgrade the forum. When I tried to update to Elkarte 1.1.5 I get error 500. The upgrade script seemed to work but clearly something is off. It also kept the backup_ database entries and kept the forum in maintenance mode (disabled that manually). I then wondering if the jump in version was to big so I tried v1.1.0. But it still doesn't work. I get just a blank page now. I am running simpleportal v1.0.0 Beta 1 and a custom theme of that makes a difference. What can I do to move ahead? Should the upgrade of PHP before upgrading the forum cause issues? Thanks.
Re: Host upgraded PHP, unable to upgrade forum
Reply #2 – March 01, 2019, 04:34:07 pm
On v1.0.7 currently running what I get is "Session verification failed. Please try logging out and back in again, and then try again." when I try to login. Same in other browser or incognito. When I tried to upgrade to 1.1.0 I just got a blank/white page on my forum. I didn't touch any settings.
Re: Host upgraded PHP, unable to upgrade forum
Reply #5 – March 02, 2019, 12:59:30 am
1.0 is not compatible with php7.2. Please use the latest ElkArte (1.1.15) if you are serious in using this software. Upgrade paths / procedures were discussed before, please search for it. I think it should 1.0.7 > 1.0.10 > 1.1 branch. Do try to remove install folder once you finished or stucked as in some cases, it wasn't removed automatically after the installation being finished (or stucked) but should work after it is removed..
Re: Host upgraded PHP, unable to upgrade forum
Reply #6 – March 02, 2019, 08:44:07 am
I have not been able to find any instructions for this. The update for 1.0.10 seems to use the "patch" way to install and doesn't have the upgrade script that 1.1.0 has. But it is impossible as I cannot access the admin panel.
Re: Host upgraded PHP, unable to upgrade forum
Reply #8 – March 02, 2019, 02:21:55 pm
Ok. I am sorry if I didn't manage to describe what I did clearly. So let me try to explain more systematically. The current crippled setup is ElkArte 1.0.7 with SimplePortal 1.0.0 Beta 1. The symptoms are that people cannot login and get the session related error. I appear logged in and can browse the forum normally; I guess since I was already logged in before. However, I cannot access the admin panel because it requests a second login; if I try to do that login I get the session error too. What I tried and the results are like this: 1.0.7 --> copy over all of 1.1.0 --> upgrade.php --> all is reported to succeed --> but "backup_" prefix and maintenance mode still in place --> white page, but with $db_show_debug on I get the errors shown below. 1.0.7 --> copy over all of 1.1.5 --> upgrade.php --> all is reported to succeed --> but "backup_" prefix and maintenance mode still in place --> error 500 Ahrasis suggested I try v1.0.10 but that doesn't use the install/upgrade.php route as far as I understood. You need to run the patch through the admin panel. This I cannot do since I can no longer login to the admin panel. I hope this was more clear.
Re: Host upgraded PHP, unable to upgrade forum
Reply #9 – March 03, 2019, 03:16:10 pm
emanuele
Global Moderator
Okay, so now you have a 1.1.0 that gives the above error. If so, follow these instructions: 1) rename the directory "sources" to "sources_old" 2) rename the directory "themes" to "themes_old" 3) re-upload the content of the install package 4) try to open the forum. This will remove SP entirely, but you can install the RC later on. I suspect it could be an hook from SP that is still in place and not finding some function needed.
Re: Host upgraded PHP, unable to upgrade forum
Reply #10 – March 07, 2019, 01:14:15 pm
Thank you very much! Deleting those folders allowed me to update --> 1.1.0 --> 1.1.5 and install SP again afterwards. I understood correctly that I cannot use my old custom theme but should likely take an existing updated theme and customize again from there?
Re: Host upgraded PHP, unable to upgrade forum
Reply #11 – March 07, 2019, 10:17:23 pm
Just start customizing with custom.css, then ask in further if you don't quite understand. I think you should do just fine.