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.

General

Server Error: E_NOTICE - spl_autoload_register()

solved

Solved by pamtbaau View solution

Started by I. Camps 5 years ago · 4 replies · 3752 views
5 years ago

Hello,

I am having some issues that began after updating to v.1.7.5.

First the site was blank (see my post here).
I updated, again, to v1.7.7 and updated PHP to v8.0.
Then I got an error with the MATOMO plugin.
I uninstalled the MATOMO plugin and now I am having the following error:

TXT
### E_NOTICE - spl_autoload_register(): Argument #2 ($do_throw) has been ignored, spl_autoload_register() will always throw

The last input at the log file can be see here: https://moleculardocking.net/grav.log2

Any idea how to fix my mess?

Thanks in advance.

5 years ago Solution

@icamps, Plugin 'Shortcodes' is 6 years old and not compatible with PHP 8.

spl_autoload_register() will now always throw a TypeError on invalid arguments, therefore the second argument do_throw is ignored and a notice will be emitted if it is set to false .

According this PHP 8 migration document:
https://www.php.net/manual/en/migration80.incompatible.php

last edited 02/24/21 by pamtbaau
5 years ago

I uninstalled the MATOMO plugin.

That error is after that.

5 years ago

@icamps, It is plugin Shortcodes that throws the error about spl_autoload_register()

5 years ago

I see!

Thank you very much! Removing it solve the problem. The site is back!

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 82 12 hours ago
General · by pamtbaau, 17 hours ago
1 55 16 hours ago
General · by Andy Miller, 1 day ago
0 45 1 day ago
General · by Marcel, 12 months ago
6 348 5 days ago
General · by Duc , 5 days ago
3 43 5 days ago