• 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 to see the link]

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

    (@ahmedkaludi)

    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/

    Thread Starter Mushlih Almubarak

    (@mushlih)

    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
    Screenshots only occur when I visit an AMP post that uses your plugin, while other pages that aren’t AMP are fine
    Thank you

    Same here:
    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.

    UPDATE:

    disabling the optimized CSS option fix this error.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    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

    (@ahmedkaludi)

    fabioambrosi: As per forum guidelines please create a new topic.

    Thread Starter Mushlih Almubarak

    (@mushlih)

    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

    (@ahmedkaludi)

    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

    (@mushlih)

    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

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    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.