Title: Critical Error
Last modified: April 6, 2021

---

# Critical Error

 *  [Mushlih Almubarak](https://wordpress.org/support/users/mushlih/)
 * (@mushlih)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/critical-error-182/)
 * I’m getting the error “There has been a critical error on your website. Learn
   more about debugging in WordPress.”
    And this error only occurs in posts if I
   activate your plugin How to handle it? I’ve temporarily disabled your plugin,
   so you may not see the error
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcritical-error-182%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/critical-error-182/#post-14286147)
 * Sorry for the inconvenience caused, Can you please enable Debug mode and let 
   us know back with some screenshots?
 * Ref: [https://wordpress.org/support/article/debugging-in-wordpress/](https://wordpress.org/support/article/debugging-in-wordpress/)
 *  Thread Starter [Mushlih Almubarak](https://wordpress.org/support/users/mushlih/)
 * (@mushlih)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/critical-error-182/#post-14286310)
 * Hi
    I don’t want to enable debugging on wordpress because it will be visible 
   to the user But I will attach the error_log from my cpanel:
 *     ```
       [06-Apr-2021 16:02:31 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [06-Apr-2021 16:02:36 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [06-Apr-2021 16:02:51 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [06-Apr-2021 16:47:01 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [06-Apr-2021 17:17:01 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [06-Apr-2021 17:47:01 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [06-Apr-2021 18:17:01 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [06-Apr-2021 18:47:02 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [06-Apr-2021 19:17:01 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [06-Apr-2021 19:47:01 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [06-Apr-2021 20:17:01 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [06-Apr-2021 20:47:01 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [06-Apr-2021 21:17:01 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [06-Apr-2021 21:47:01 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [06-Apr-2021 22:17:02 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [06-Apr-2021 22:47:01 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [06-Apr-2021 23:17:02 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [06-Apr-2021 23:47:01 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [07-Apr-2021 00:17:02 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [07-Apr-2021 00:47:02 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [07-Apr-2021 01:17:01 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [07-Apr-2021 01:47:01 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [07-Apr-2021 02:17:01 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [07-Apr-2021 02:47:02 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [07-Apr-2021 03:17:02 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [07-Apr-2021 03:47:01 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [07-Apr-2021 04:17:02 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [07-Apr-2021 04:47:01 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [07-Apr-2021 05:17:01 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [07-Apr-2021 05:47:01 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       [07-Apr-2021 06:17:01 UTC] PHP Deprecated:  Directive 'allow_url_include' is deprecated in Unknown on line 0
       ```
   
 * The screenshot like this: [https://bit.ly/39LfFxS](https://bit.ly/39LfFxS)
    Screenshots
   only occur when I visit an AMP post that uses your plugin, while other pages 
   that aren’t AMP are fine Thank you
 *  [fabioambrosi](https://wordpress.org/support/users/fabioambrosi/)
 * (@fabioambrosi)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/critical-error-182/#post-14294107)
 * Same here:
    [https://www.fabioambrosi.it/microsoft-flight-simulator-realta-virtuale-vr-visore/amp/](https://www.fabioambrosi.it/microsoft-flight-simulator-realta-virtuale-vr-visore/amp/)
 * I’m using swift theme.
 * This is the error in the logs
 * `AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a 
   member function get_contents() on null in /var/www/vhosts/fabioambrosi.it/httpdocs/
   wp-content/plugins/accelerated-mobile-pages/components/components-core.php:398\
   nStack trace:\n#0 /var/www/vhosts/fabioambrosi.it/httpdocs/wp-content/plugins/
   accelerated-mobile-pages/templates/design-manager/swift/header.php(6): amp_header_core()\
   n#1 /var/www/vhosts/fabioambrosi.it/httpdocs/wp-content/plugins/accelerated-mobile-
   pages/includes/vendor/amp/includes/class-amp-post-template.php(505): include('/
   var/www/vhosts...')\n#2 /var/www/vhosts/fabioambrosi.it/httpdocs/wp-content/plugins/
   accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-post-template.
   php(164): AMPforWP\\AMPVendor\\AMP_Post_Template->verify_and_include()\n#3 /var/
   www/vhosts/fabioambrosi.it/httpdocs/wp-content/plugins/accelerated-mobile-pages/
   components/components-core.php(419): AMPforWP\\AMPVendor\\AMP_Post_Template->
   load_parts()\n#4 /var/www/vhosts/fabioambrosi.it/httpdocs/wp-content/themes...'`
    -  This reply was modified 5 years, 1 month ago by [fabioambrosi](https://wordpress.org/support/users/fabioambrosi/).
 *  [fabioambrosi](https://wordpress.org/support/users/fabioambrosi/)
 * (@fabioambrosi)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/critical-error-182/#post-14294171)
 * UPDATE:
 * disabling the optimized CSS option fix this error.
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/critical-error-182/#post-14296309)
 * Can you please check it by disabling the optimized CSS option in the Amp option
   panel > settings > performance let us know back if it still persists?
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/critical-error-182/#post-14296318)
 * fabioambrosi: As per forum guidelines please create a new topic.
 *  Thread Starter [Mushlih Almubarak](https://wordpress.org/support/users/mushlih/)
 * (@mushlih)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/critical-error-182/#post-14300784)
 * After I turned off that feature, there are no more problems
    But, can’t I activate
   the feature without a problem? Thank you very much
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/critical-error-182/#post-14306308)
 * Can you please let us know the active plugin list and themes to re-create it 
   from our end and let you know back? Because from our end the issue is not happening.
 *  Thread Starter [Mushlih Almubarak](https://wordpress.org/support/users/mushlih/)
 * (@mushlih)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/critical-error-182/#post-14311004)
 * Theme:
    Supermag: version: recent
 * Plugin:
    Accelerated Mobile Pages: version: 1.0.76.10 Ad Inserter: version: 2.6.23
   Advanced Database Cleaner: version: 3.0.3 Elementor: version: 3.1.4 LiteSpeed
   Cache: version: 3.6.4 LuckyWP Table of Contents: version: 2.1.4 MailPoet 3 (New):
   version: 3.60.7 MailPoet 3 Premium (New): version: 3.60.0 OneSignal Push Notifications:
   version: 2.2.1 Sassy Social Share: version: 3.3.20 UpdraftPlus – Backup/Restore:
   version: 1.16.53 Wordfence Security: version: 7.5.2 WPForms Lite: version: 1.6.6
   WPS Hide Login: version: 1.8.5 WP Tab Widget: version: 1.2.11 Yoast SEO: version:
   16.1.1
    -  This reply was modified 5 years, 1 month ago by [Mushlih Almubarak](https://wordpress.org/support/users/mushlih/).
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [5 years ago](https://wordpress.org/support/topic/critical-error-182/#post-14323283)
 * okay, We will try to re-create the issue at our end and let you know back.

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

The topic ‘Critical Error’ is closed to new replies.

 * ![](https://ps.w.org/accelerated-mobile-pages/assets/icon-256x256.png?rev=1693616)
 * [AMP for WP - Accelerated Mobile Pages](https://wordpress.org/plugins/accelerated-mobile-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accelerated-mobile-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accelerated-mobile-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/)

 * 10 replies
 * 3 participants
 * Last reply from: [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/critical-error-182/#post-14323283)
 * Status: not resolved