• Resolved occupygh

    (@occupygh)


    Hello, I am currently facing a Fatal Erro that reads:

    Fatal error: Uncaught Error: Class ‘AMPforWP\AMPVendor\WP_Error’ not found in /home/pdev/public_html/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/sanitizers/class-amp-tree-style-sanitizer.php:583 Stack trace: #0 /home/pdev/public_html/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/sanitizers/class-amp-tree-style-sanitizer.php(1623): AMPforWP\AMPVendor\AMP_treeshaking_Style_Sanitizer->get_validated_url_file_path(‘social-logos.wo…’, Array) #1 /home/pdev/public_html/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/sanitizers/class-amp-tree-style-sanitizer.php(1507): AMPforWP\AMPVendor\AMP_treeshaking_Style_Sanitizer->process_font_face_at_rule(Object(Sabberworm\CSS\RuleSet\AtRuleSet)) #2 /home/pdev/public_html/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/sanitizers/class-amp-tree-style-sanitizer.php(1350): AMPforWP\AMPVendor\AMP_treeshaking_Style_Sanitizer->process_css_declaration_block(Object(Sabberworm\CSS\RuleSet\AtR in /home/pdev/public_html/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/sanitizers/class-amp-tree-style-sanitizer.php on line 583

    Can you please help me with this? Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    After debugging for hours, we were able to find the problem.

    It’s caused by this option of Jetpack’s “Add sharing buttons to your posts and pages” option: https://take.ms/1wqOz

    Can you check and confirm if it’s working after deactivating?

    Meanwhile, we already have a ticket on this to improve in the next update https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/4624

    Thread Starter occupygh

    (@occupygh)

    Thank you.

    After deactivating the “Add sharing buttons to your posts and pages” from Jetpack the error seems to have been fixed as google is currently validating my amp fixes.

    Thank you very much.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    This issue has been fixed in the latest version of the plugin(1.0.58.3). Please update the plugin and do let us know if the issue has been resolved.

    Thread Starter occupygh

    (@occupygh)

    The error caused this error – “The author stylesheet specified in tag ‘style amp-custom’ is too long – the limit is 75000 bytes.”

    Which is currently being validated in Google Search Console.

    I updated the AMPforWP plugin and then I went to the Performance and utilize the minify feature.

    Hopefully, it will work. Thanks.

    I will keep you updated

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error: Uncaught Error’ is closed to new replies.