A critical error has occurred on this site.
-
After an update this morning, we have found a problem.
A critical error has occurred on this site.
I have checked everything but the AMP plugin is giving this problem, what can we do about it?
-
This is the fault
PHP Fatale fout: Uncaught AmpProject #AmpWPException #InvalidService: De service ID “paired_routing” wordt niet herkend en kan niet worden opgehaald. in /var/www/clients/client80/web131/web/wp-content/plugins/amp/src/Exception/InvalidService.php:57
AMP just crash my site after updating the plugin this morning
This is most likely caused by a theme or plugin calling some of the AMP functions too early.
There is a PR here that fixes this problem: https://github.com/ampproject/amp-wp/pull/6181
You can test that fix by installing this version of the plugin as a temporary workaround until v2.1.1 was released: https://storage.googleapis.com/ampwp_github_artifacts/refs/pull/6181/merge/prod/amp.zip
Hello @marketforces and @cbfm2021
Are you using a newspaper theme with tagDiv Mobile Theme plugin?
If yes, can you please deactivate the tagDiv Mobile theme plugin and check if that resolves it.We are trying to debug the issue at our end, can you please share your site health information along with the PHP error log using this form, it can be helpful in determining the issue.
We have deactivated this plug-in and this indeed solves the problem
I deactivate tagdiv mobile theme, and activate AMP and it works
Kindly share link to download the old version that works before the update. Thanks
Hello @marketforces
You can download the old AMP version from the plugin advanced views (Screenshot)
https://wordpress.org/plugins/amp/advanced/Alternatively, you can also download the previous release from Github
hello, @marketforces and @cbfm2021,
We are debugging this issue from our side but can you please contact the tagDiv support team and make them aware of it.
for now, please take the following actions,
Deactivate tagDiv Mobile theme plugin
OR
Install WP Rollback plugin and switch to the previous AMP plugin version 2.0.11
I have a pull request for testing: https://github.com/ampproject/amp-wp/pull/6184
You can find a production
amp.zip
build of here: https://github.com/ampproject/amp-wp/pull/6184#issuecomment-834647329(Please note the version will be shown as 2.2-alpha.)
The crux of the problem is that the tagDiv theme for some reason is disabling AMP with the
amp_is_enabled
filter. When this is done, a call tois_amp_endpoint()
would cause the fatal error because the underlyingPairedRouting
service that the function relies on is not registered. So in this new PR it’s now catching the exception and emitting a_doing_it_wrong()
notice instead.`I’ve just merged the pull request and added it to the 2.1 branch. So if you would please test this 2.1.1-alpha build it would be very helpful. You can find a link to the 2.1.x production build at https://github.com/ampproject/amp-wp/wiki/Development-Builds
Specifically, the
amp.zip
build is located here: https://storage.googleapis.com/ampwp_github_artifacts/refs/heads/2.1/prod/amp.zipYou can also then find the standard WordPress plugin installation instructions on that same page.
Upon installation, the plugin version will be shown as:
2.1.1-alpha-20210507T193507Z-b416d35
.v2.1.1 is now released and available for update on WordPress.org.
- You must be logged in to reply to this topic.