• Resolved garyclicky

    (@garyclicky)


    Hello,

    I recently updated the plugin to 4.3.1 and got a fatal error which brought the site down. It seems like it might be linked to the Gravity Forms and potentially the ‘Form Auto-Add’. Our Gravity Forms is currently at version 2.8.13.

    Here is the error message we got:

    "message": "PHP Fatal error: Uncaught TypeError: Argument 1 passed to HCaptcha\\Vendor\\MatthiasMullie\\Minify\\JS::getOperatorsForRegex() must be of the type array, bool given, called in /wp-content/plugins/hcaptcha-for-forms-and-more/lib/matthiasmullie/minify/src/JS.php on line 266 and defined in /wp-content/plugins/hcaptcha-for-forms-and-more/lib/matthiasmullie/minify/src/JS.php:402#012Stack trace:#012#0 /wp-content/plugins/hcaptcha-for-forms-and-more/lib/matthiasmullie/minify/src/JS.php(266): HCaptcha\\Vendor\\MatthiasMullie\\Minify\\JS->getOperatorsForRegex(false, '/')#012#1 /wp-content/plugins/hcaptcha-for-forms-and-more/lib/matthiasmullie/minify/src/JS.php(156): HCaptcha\\Vendor\\MatthiasMullie\\Minify\\JS->extractRegex()#012#2 /wp-content/plugins/hcaptcha-for-forms-and-more/lib/matthiasmullie/minify/src/Minify.php(133): HCaptcha\\Vendor\\MatthiasMullie\\Minify\\JS->execute(NULL)#012#3 /wp-conten in /wp-content/plugins/hcaptcha-for-forms-and-more/lib/matthiasmullie/minify/src/JS.php on line 402",

    Many thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor kaggdesign

    (@kaggdesign)

    Hello @garyclicky,

    Thank you for reporting. The issue should not be related to the GF. But error description (its call stack) is incomplete. Could you provide the full call stack?

    Many thanks,

    Thread Starter garyclicky

    (@garyclicky)

    Hi,

    All I was given was a copy of this. Any help would be much appreciated. If we turn off the ‘Form Auto-Add’ it does work on the latest version so seems like it might related to that?

    {
    "installName": "[...]",
    "environment": "PROD",
    "type": "error",
    "date": "2024-07-14T07:13:11.015Z",
    "severity": null,
    "client": null,
    "message": "PHP Fatal error: Uncaught TypeError: Argument 1 passed to HCaptcha\\Vendor\\MatthiasMullie\\Minify\\JS::getOperatorsForRegex() must be of the type array, bool given, called in [...]/wp-content/plugins/hcaptcha-for-forms-and-more/lib/matthiasmullie/minify/src/JS.php on line 266 and defined in [...]/wp-content/plugins/hcaptcha-for-forms-and-more/lib/matthiasmullie/minify/src/JS.php:402#012Stack trace:#012#0 [...]/wp-content/plugins/hcaptcha-for-forms-and-more/lib/matthiasmullie/minify/src/JS.php(266): HCaptcha\\Vendor\\MatthiasMullie\\Minify\\JS->getOperatorsForRegex(false, '/')#012#1 [...]/wp-content/plugins/hcaptcha-for-forms-and-more/lib/matthiasmullie/minify/src/JS.php(156): HCaptcha\\Vendor\\MatthiasMullie\\Minify\\JS->extractRegex()#012#2 [...]/wp-content/plugins/hcaptcha-for-forms-and-more/lib/matthiasmullie/minify/src/Minify.php(133): HCaptcha\\Vendor\\MatthiasMullie\\Minify\\JS->execute(NULL)#012#3 [...]/wp-conten in [...]/wp-content/plugins/hcaptcha-for-forms-and-more/lib/matthiasmullie/minify/src/JS.php on line 402",
    "uuid": "[...]"
    }

    • This reply was modified 4 months ago by garyclicky.
    Plugin Contributor kaggdesign

    (@kaggdesign)

    This error message is NOT from 4.3.1. The plugin in v4.3.1 does not have the lib folder. Please compare your message “wp-content/plugins/hcaptcha-for-forms-and-more/lib/matthiasmullie…” with plugin content: https://plugins.trac.www.ads-software.com/browser/hcaptcha-for-forms-and-more/trunk.

    Something is wrong with your install. Please try to delete the plugin completely from the site, then reinstall it. All plugin settings will be preserved, no worries.

    If error will persist (reporting vendors instead of lib), could you share the latest version of Gravity Forms to my email [email protected] for testing?

    Many thanks.

    Plugin Contributor kaggdesign

    (@kaggdesign)

    Closed as non-reproducible.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.