• Resolved nocturnal009

    (@nocturnal009)


    The latest Age Gate 3.0.2 that got pushed today crashed my site. Had to roll back to 3.0.1 for the site to go back up online again.

    Please fix this.

    The error happens on the wordpress frontend, a critical error message.

    Backend was luckily working so I was able to disable and rollback the plugin.

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

    (@philsbury)

    Hi @nocturnal009,

    Did it give an error of any kind?

    Thanks

    Thread Starter nocturnal009

    (@nocturnal009)

    Yes a white page with a text saying there has been a critical error on this website and link to WordPress for help.

    Hi Phil this is the critical error message (message amended to remove site URL):

    Notice: Undefined index: customTitle in /public_html/wp-content/plugins/age-gate-d/src/Controller/JsController.php on line 64
    
    Fatal error: Uncaught TypeError: Argument 3 passed to AgeGate\Presentation\Attribute::addAttribute() must be of the type string, null given, called in /public_html/wp-content/plugins/age-gate-d/src/Functions/Template.php on line 71 and defined in /public_html/wp-content/plugins/age-gate-d/src/Presentation/ClassNames.php:223 Stack trace: #0 /public_html/wp-content/plugins/age-gate-d/src/Functions/Template.php(71): AgeGate\Presentation\Attribute::addAttribute() #1 /public_html/wp-content/plugins/age-gate-d/src/Controller/JsController.php(64): age_gate_add_attribute() #2 /public_html/wp-includes/class-wp-hook.php(307): AgeGate\Controller\JsController->assets() #3 /public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #4 /pub in /public_html/wp-content/plugins/age-gate-d/src/Presentation/ClassNames.php on line 223
    Plugin Author Phil

    (@philsbury)

    Hi @andrewews,

    Will get a fix out for this very soon

    Thanks
    Phil

    Plugin Author Phil

    (@philsbury)

    Hi @nocturnal009 / @andrewews this should be fixed in 3.0.3.

    Thanks
    Phil

    Hye,
    3.0.3 crash on fatal error …
    seems not fixed

    Plugin Author Phil

    (@philsbury)

    Hi @khahina,

    Do you have an error message like @andrewews sent? Might be in the server logs?

    Thanks
    Phil

    HYe
    I will try 3.0.1 and same crash.
    I will roll back 2.21.1 and wait

    in log : same for 3.0.3 and 3.0.1
    2022-09-14T11:40:30+00:00 CRITICAL Uncaught Error: Class ‘DOMDocument’ not found in /data/…/site/wordpress/wp-content/plugins/age-gate/vendor/league/html-to-markdown/src/HtmlConverter.php:113
    Stack trace:
    #0 /data/…site/wordpress/wp-content/plugins/age-gate/vendor/league/html-to-markdown/src/HtmlConverter.php(91): League\HTMLToMarkdown\HtmlConverter->createDOMDocument()
    #1 /data/…/site/wordpress/wp-content/plugins/age-gate/src/Update/Migration/Migrate.php(260): League\HTMLToMarkdown\HtmlConverter->convert()
    #2 /data/…/site/wordpress/wp-content/plugins/age-gate/src/Update/Migration/Migrate.php(169): AgeGate\Update\Migration\Migrate->getMarkdown()
    #3 /data/…/site/wordpress/wp-content/plugins/age-gate/src/Update/Activate.php(55): AgeGate\Update\Migration\Migrate->mapSimpleSettings()
    #4 /data/…/site/wordpress/wp-content/plugins/age-gate/src/Admin/Update.php(16): AgeGate\Update\Activate::activate()
    #5 /data/…/site/wordpress/wp-includes/class-wp-hook.php(307): AgeGate\Admin\Updat dans /data/zechef/data/site/wordpress/wp-content/plugins/age-gate/vendor/league/html-to-markdown/src/HtmlConverter.php Γ  la ligne 113

    • This reply was modified 2 years, 2 months ago by khahina.
    Plugin Author Phil

    (@philsbury)

    Thanks @khahina,

    So this would have been on installing the new version?

    DOMDocument is a built-in PHP class, is it active on your server? It is possible for it is to be disabled by a host.

    That class is also something from a third party which is going to be fun to try and fix, but will have a look into it.

    Thanks,
    Phil

    yes crash on update for last one and crash on new version for 3.0.1
    I’m on php 7.4, i hav’nt access to php setup.
    just all works but not age gate 3.0.x

    Plugin Author Phil

    (@philsbury)

    Sounds likes it’s disabled, let me have a look and if I have to I can wrap that part of the update in a condition if that class isn’t present.

    i will ask host engineer to activate it…

    Thread Starter nocturnal009

    (@nocturnal009)

    I just updated to version 3.0.3 and it seems to be fine and the frontend is not crashing anymore

    DOMDocument activated and now 3.0.3 works well
    thank you

    Plugin Author Phil

    (@philsbury)

    Awesome on both counts!

    Thanks both! πŸ™‚

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Latest Plugin update 3.0.2 update crashed my site’ is closed to new replies.