• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

php 7 upgrade problem

#1
When upgrading a friends site for him to php 7 the site is now getting this error:

Code:
setupAutoloader($fileDir . '/library'); XenForo_Application::initialize($fileDir . '/library', $fileDir); XenForo_Application::set('page_start_time', $startTime); $fc = new XenForo_FrontController(new XenForo_Dependencies_Public()); $fc->run();
I tried purging php 7 and apache and reinstall php 5 and reinstall apache, and the error still is there
 

Chris D

XenForo developer
Staff member
#2
It's just displaying the content of index.php as text which usually indicates PHP isn't running or Apache isn't handing it off to PHP properly. Specifically did you also upgrade mod_php for Apache?

There's lots of guides about upgrading to 7. I suggest looking to them or your host for support.