Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
PHP Fatal error after upgrading from 2.2.1 to 2.3
AristaP
New
Hi,
I just wanted to let you know that after upgrading one of my forums from 2.2.1 to 2.3 there was a PHP Fatal error:
PHP Fatal error: require_once(): Failed opening required '/home/username/public_html/vendor/autoload.php' (include_path='.:/opt/cpanel/ea-php56/root/usr/share/pear') in /home/username/public_html/bootstrap.php on line 50
Fortunately to me, I decided to switch to PHP 7.x right away and by doing so, the site was magically fixed and no further PHP errors came up.
Tagged:
0
Comments
There's nothing inherently different about how PHP 5 vs PHP 7 includes files. If you truly 1) changed nothing else between upgrading PHP versions, 2) were already at least on PHP 5.4, 3) used the version for download on this site, and 4) the files were finished uploading and did so correctly, I'd chalk this up to something weird in your server config.
I'm just describing the facts as they happened.
I used the cPanel (hosting control panel) feature to switch from one PHP version to another.
As you can see from the excerpt, I was using PHP 5.6.
Yes, I used the version for download from this site.
All files were uploaded properly.
And as I said, just by switching PHP versions (from 5.6 to 7.x), the error was gone and the site started to load properly again.
And I was just providing a checklist of things to confirm. I don't have enough information to do any more than that.
Thanks @Linc, I appreciate it.