• Greetings,

    I get this error warning email daily from WordPress, and wonder if it’s the reason why my website sends duplicate emails for every transaction.

    Here’s the error, and wonder if you may know how it can be resolved?

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 5.6.2
    Current theme: VapSelect (version 1.0.0)
    Current plugin: Age Gate (version 2.13.6)
    PHP version 7.3.27-1+0~20210211.76+debian9~1.gbp8355b8
    
    Error Details
    =============
    An error of type E_ERROR was caused in line 114 of the file /home/public_html/wp-content/plugins/age-gate/public/class-age-gate-public.php. Error message: Uncaught Error: Call to a member function is_edit_mode() on null in /home/public_html/wp-content/plugins/age-gate/public/class-age-gate-public.php:114
    Stack trace:
    #0 /home/public_html/wp-content/plugins/age-gate/public/class-age-gate-public-presentation.php(201): Age_Gate_Public->is_restricted()
    #1 /home/public_html/wp-includes/class-wp-hook.php(287): Age_Gate_Presentation->change_page_title(Array)
    #2 /home/public_html/wp-includes/plugin.php(212): WP_Hook->apply_filters(Array, Array)
    #3 /home/public_html/wp-includes/general-template.php(1233): apply_filters('document_title_...', Array)
    #4 /home/public_html/wp-includes/general-template.php(1257): wp_get_document_title()
    #5 /home/public_html/wp-includes/class-wp-hook.php(287): _wp_render_title_tag('')
    #6 /home/25

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Phil

    (@philsbury)

    Hi @gravatard,

    Interesting. That line refers to Elementor. Are you using that as a page builder?

    Thanks
    Phil

    Thread Starter gravatard

    (@gravatard)

    Hi Phil,

    Yes I am using Elementor on this site.

    Thread Starter gravatard

    (@gravatard)

    Hi Phil,

    Any chance you’re looking into this issue?

    Plugin Author Phil

    (@philsbury)

    Hi @gravatard,

    I have looked but can’t reproduce it on my local environment. Tried switching to PHP7.3 but still didn’t happen for me.

    Is another plugin sending you these reports or WP itself?

    Thanks
    Phil

    Thread Starter gravatard

    (@gravatard)

    Hi @philsbury

    It’s WprdPress sending these reports. Here’s a breakdown of the entire email:

    Subject Line: Your Site is Experiencing a Technical Issue
    
    Howdy!
    
    Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
    
    In this case, WordPress caught an error with one of your plugins, Age Gate.
    
    First, visit your website (https://www.domain.com/) and check for any visible issues. Next, visit the page where the error was caught (https://www.domain.com/wp-login.php) and check for any visible issues.
    
    Please contact your host for assistance with investigating this issue further.
    
    If your site appears broken and you can't access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further.
    
    https://www.domain.com/wp-admin/?action=enter_recovery_mode&rm_token=U34WYcCd.............
    
    To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.
    
    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 5.6.2
    Current theme: Custom (version 1.0.0)
    Current plugin: Age Gate (version 2.13.6)
    PHP version 7.3.27-1+0~20210211.76+debian9~1.gbp8355b8
    
    Error Details
    =============
    An error of type E_ERROR was caused in line 114 of the file /home/public_html/wp-content/plugins/age-gate/public/class-age-gate-public.php. Error message: Uncaught Error: Call to a member function is_edit_mode() on null in /home/public_html/wp-content/plugins/age-gate/public/class-age-gate-public.php:114
    Stack trace:
    #0 /home/public_html/wp-content/plugins/age-gate/public/class-age-gate-public-presentation.php(201): Age_Gate_Public->is_restricted()
    #1 /home/public_html/wp-includes/class-wp-hook.php(287): Age_Gate_Presentation->change_page_title(Array)
    #2 /home/public_html/wp-includes/plugin.php(212): WP_Hook->apply_filters(Array, Array)
    #3 /home/public_html/wp-includes/general-template.php(1233): apply_filters('document_title_...', Array)
    #4 /home/public_html/wp-includes/general-template.php(1257): wp_get_document_title()
    #5 /home/public_html/wp-includes/class-wp-hook.php(287): _wp_render_title_tag('')
    #6 /home/25

    Is it from a possible plugin conflict?

    Plugin Author Phil

    (@philsbury)

    Hi @gravatard,

    Thanks for the info. I’m not entirely sure what is could be.

    What I’m going to do though is check the method is callable in the test and hopefully that’ll sort it out. Should be released in a the next couple of days.

    Thanks
    Phil

    Thread Starter gravatard

    (@gravatard)

    Hi @philsbury

    Did you figure it out and push an update?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Error in Age Gate Line 114’ is closed to new replies.