XF 2.2 site down from opsys upgrade

pattycake2

Active member
My goofy host changed the opsys on my site from Centos and php 7.3 to AlmaLinux8 and php 8.2 and now, I cannot access anything on the site. Every php file that is clicked does not run the php file. Instead it downloads a file that contains
Code:
if (version_compare($phpVersion, '7.0.0', '<')) {

die("PHP 7.0.0 or newer is required. $phpVersion does not meet this requirement. Please ask your host to upgrade PHP."); }

Their admins are saying it's an addon that's not compatable with php8 - ok, fine but I can't access the site to disable any add-on to find the problem. I have set the src/config.php
$config['enableListeners'] = false;
$config['enableTemplateModificationCallbacks'] = false;
But that doesn't help.... it still won't exec the pho file, download a file with the
Code:
die("PHP 7.0.0 or newer is required. $phpVersion does not meet this requirement. Please ask your host to upgrade PHP."); }
in it.

my phpinfo
1721331517678.webp

I thought maybe nuking or renaming the add-on folder might help ???
 
Last edited:
That means php isn't running.

Find a new host if they don't know that.

Find a new host anyway if they upgraded the OS and PHP without informing you.

I found the problem - the add-on by XenConcept LoginAsUser
Code:
Could not find class XenConcept\LoginAsUser\XF\Entity\User when attempting to extend XF\Entity\User
Once I zapped that add-on, everything came up fine. Will go to XenConcept to see if there is an update

Weirdness...

Thank you for your reply
 
I'm not sure what you are pointing out but, I am using 2.2.... and have been using that logon as user app for years. All of this weirdness happened when the dang host changed the opsys and the php version. The host kept telling me it was an add-on but could not (or would not) tell me which one. Even disabling all add-ons via the config.php did not help. I ended up nuking the add-on folder (by renaming it) and then, I was able to access the site and view the error logs. Disabling add-ons via config.php did not disable the Logon as User add-on... it still ran and prevented the site from coming up.
 
Last edited:
This is from the error log AFTER I had disabled (or thought that I had disabled) ALL add-ons from config.php
Code:
Template error: [E_USER_WARNING] Method canUseLoginAsUser is not callable on the given object (XF\Entity\User)
35 minutes ago src/XF/Template/Templater.php:1187
 
Back
Top Bottom