I upgraded my Ubuntu server from 18.02 to 22.02 and my PHP version to 8.3 (from 7.4). This then gave me the following error:
Whoops \ Exception \ ErrorException (E_NOTICE)
spl_autoload_register(): Argument #2 ($do_throw) has been ignored, spl_autoload_register() will always throw
You can see the full error on my site and I’ve also attached a screenshot.
I thought that downgrading to PHP version 8.1 might help, as would removing the shortcode plugin, but no, same error Any ideas?
Additional context:
System output log just gives me the same error: spl_autoload_register(): Argument #2 ($do_throw) has been ignored, spl_autoload_register() will always throw
Grav admin panel works, my actual website does not
I’m running Nginx
Tools → Reports does not indicate any errors
These two questions are the most relevant to my problem, but did not help:
Hi @Karmalakas ! Yes I have (read the pinned topic and searched the forum). I will admit though that I am not keen on creating an MWE, since this would be quite some effort for me. I have updated the post to provide more context.
Yes there are - Media Embed, last updated from 2017. I disabled it and everything is fine now So I guess this is a general rule, some plugins may break Grav when updated PHP versions.
It makes ense, that old outdated plugins use PHP features, that are no longer supported on newer PHP versions. You could raise an issue on GitHub plugin repo. Might get updated if plugin author is up for it