• lucy_jo

    (@lucy_jo)


    Error disappears when w3 Total Cache is deactivated

    Fatal error: Uncaught Error: Call to undefined function ampforwp_is_non_amp() in /public_html/wp-content/plugins/accelerated-mobile-pages/accelerated-moblie-pages.php:404 Stack trace: #0 /public_html/wp-content/plugins/w3-total-cache/Extension_Amp_Plugin.php(33): ampforwp_is_amp_endpoint() #1 /public_html/wp-content/plugins/w3-total-cache/Extension_Amp_Plugin.php(81): W3TC\Extension_Amp_Plugin->is_amp_endpoint() #2 /public_html/wp-includes/class-wp-hook.php(286): W3TC\Extension_Amp_Plugin->w3tc_footer_comment(Array) #3 /public_html/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array) #4 /public_html/wp-content/plugins/w3-total-cache/Generic_Plugin.php(512): apply_filters(‘w3tc_footer_com…’, Array) #5 [internal function]: W3TC\Generic_Plugin->ob_callback(‘<!DOCTYPE html>…’, 9) in /public_html/wp-content/plugins/accelerated-mobile-pages/accelerated-moblie-pages.php on line 404

Viewing 3 replies - 1 through 3 (of 3 total)
  • Fist Full of Crisco

    (@fistfullofcrisco)

    I’m still trying to pinpoint but it seems w3tc’s AMP extension is trying to communicate with your AMP plugin but your AMP plugin hasn’t fully loaded yet (only parts of it is loaded) or rather, being accessed in an unexpected order and so it’s getting grumpy. In short, this AMP plugin doesn’t look compatible with w3tc (thankfully there are a plethora of other AMP plugins) that do work with w3tc.

    I’m sure it’s a simple fix like adjusting the plugin’s priority # or using a different action identifier to load itself sooner. I may jump into that AMP plugin’s support thread and let the author know of the incompatibility. Most authors of other plugins tend to fix their issues so it works with w3tc since w3tc is one of the most popular plugins on WP.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @lucy_jo,

    Have you managed to resolve the issue? Please give us a feedback so you can close the topic and mark it as resolved.

    Best regards,

    Marko

    Thread Starter lucy_jo

    (@lucy_jo)

    Not yet, but thanks for keeping in contact. Will update you once I have information.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Update causing an error with AMP for WP’ is closed to new replies.