Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Upgrading from php7.4 to php8.1

Solved by Thomas Munn View solution

Started by Thomas Munn 4 years ago · 3 replies · 1119 views
4 years ago

I am upgrading from a perfectly working (and current) grav installation of php7 to php8. The admin pages seem to work fine, but the main homepage seems to give me this rather evil error:

TXT
Server Error
Sorry, something went terribly wrong!

E_NOTICE - spl_autoload_register(): Argument #2 ($do_throw) has been ignored, spl_autoload_register() will always throw
For further details please review your logs/ folder, or enable displaying of errors in your system configuration.

I have looked into things. If I do a 'fresh' install all is well, but the moment I try to restore my backup, I get this error on the main page. How do I 'move' my installation from 7.x to 8.x no guides. I did google searches, composer installs etc. to no avail.

Is there a magical file I need to update? I am using php-fpm which again, works fine if I start with a 'new' install.

4 years ago Solution

I figured it out. It was the shortcodes plugin. Once I removed that it worked fine.

👍 1
4 years ago

@symgryph:
It was the shortcodes plugin. Once I removed that it worked fine.

Didn't you need it??

Thanks for this, anyway, I am experimenting with upgrading to PHP8 now. This is something I will specifically check.

4 years ago

Actually there were two short code plugins one from 10 years ago and the current one. It was the older one that didn't work.

Sincerely

Thomas Munn

👍 1

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 53 10 hours ago
Support · by Anna, 3 days ago
2 60 13 hours ago
Support · by Justin Young, 14 hours ago
1 30 14 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 56 5 days ago