5XX error when using Newspaper in a multisite environment with the AMP plugin

Posted in: Newspaper
Post count: 12

Hi,
Recently we have detected a huge increase of 5XX errors in our Google Search Console. The errors are all caused by ?amp pages. Until the 23rd of November everything worked fine. We use the AMP plugin in a wordpress multisite network, working in transitional mode with Newspaper.
Is this any known issue?
We tried a lot of different setups and reinstalling the AMP plugin, but nothing solves the issue. PHP debugging shows the following info:

Warning: require_once(/var/www/html/wp-content/themes/themes/Newspaper/tagdiv-deploy-mode.php): failed to open stream: No such file or directory in /var/www/html/wp-content/plugins/td-composer/mobile/functions.php on line 11

Fatal error: require_once(): Failed opening required ‘/var/www/html/wp-content/themes/themes/Newspaper/tagdiv-deploy-mode.php’ (include_path=’.:’) in /var/www/html/wp-content/plugins/td-composer/mobile/functions.php on line 11
There has been a critical error on this website.

Thanks

Post count: 12

Also, the following error messages are also displayed when we set “USE MOBILE THEME FOR: Mobile” with the AMP plugin active:

Warning: defined() expects exactly 1 parameter, 2 given in /var/www/html/wp-content/plugins/litespeed-cache/src/core.cls.php on line 227

Notice: amp_has_paired_endpoint was called incorrectly. Function called while AMP is disabled via amp_is_enabled filter. The service ID “paired_routing” is not recognized and cannot be retrieved. Please see Debugging in WordPress for more information. (This message was added in version 2.1.1.) in /var/www/html/wp-includes/functions.php on line 5663

Notice: amp_has_paired_endpoint was called incorrectly. Function called while AMP is disabled via amp_is_enabled filter. The service ID “paired_routing” is not recognized and cannot be retrieved. Please see Debugging in WordPress for more information. (This message was added in version 2.1.1.) in /var/www/html/wp-includes/functions.php on line 5663

Notice: amp_has_paired_endpoint was called incorrectly. Function called while AMP is disabled via amp_is_enabled filter. The service ID “paired_routing” is not recognized and cannot be retrieved. Please see Debugging in WordPress for more information. (This message was added in version 2.1.1.) in /var/www/html/wp-includes/functions.php on line 5663

Post count: 12

In addition, there is another important problem: Now we have detected that the plugin tagDiv Mobile Theme is making the site crash everytime a mobile visitor request a page, even so we have the AMP plugin disabled. This is the debugging info we get when the sites crashes:

Warning: require_once(/var/www/html/wp-content/themes/themes/Newspaper/tagdiv-deploy-mode.php): failed to open stream: No such file or directory in /var/www/html/wp-content/plugins/td-composer/mobile/functions.php on line 11

Fatal error: require_once(): Failed opening required '/var/www/html/wp-content/themes/themes/Newspaper/tagdiv-deploy-mode.php' (include_path='.:') in /var/www/html/wp-content/plugins/td-composer/mobile/functions.php on line 11

Disabling tagDiv Mobile Theme has stopped the error for now.

Post count: 35449

Hi,
That problem is from this code
if (is_multisite()) {
$main_dir_path = $main_theme->theme_root . ‘/themes’ . get_template_directory();
}
That was added on wp-content/plugins/td-mobile-plugin/td_mobile_theme.php what you need to do is to comment it and after that the problem will be solved -> https://i.imgur.com/KuR564I.png
In the next theme update there will be a theme option to use that code or not.
In case that there are some problems, please let us know!
Let me know the results!

Post count: 12

Hi Calin,
Thank you very much for your help. Commenting that couple of lines solved the problem.
Best,

Post count: 35449

I’m glad the problem is solved!

Post count: 3

In the next theme update there will be a theme option to use that code or not.

Please show me where to find the ‘option to use that code or not’ so i can turn it off

Post count: 35449

Hi weka,
The option is in the theme panel > mobile theme – https://i.imgur.com/h7apJPj.png
Thank you!

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.