• Resolved abacoin

    (@abacoin)


    Hello dear Fluent Team

    Need your help, we have some problems ”error’ with the plugin.

    I don’t know exactly when it started to happen, we are in the middle of developing the site, but now that we are in the final tests to be able to do the ‘soft launch’, we noticed that at the moment of clicking on the ‘submit’ button in the registration of a user, the site crashes with error 500, and in the console we have this error:

    [08-Oct-2024 00:51:16 UTC] PHP Warning: Undefined global variable $_POST in /home//public_html/wp-content/plugins/fluentform/vendor/wpfluent/framework/src/WPFluent/Foundation/ComponentBinder.php on line 67 [08-Oct-2024 00:51:16 UTC] PHP Fatal error: Uncaught TypeError: FluentForm\Framework\Request\Request::cleanArray(): Argument #1 ($data) must be of type array, null given, called in /home//public_html/wp-content/plugins/fluentform/vendor/wpfluent/framework/src/WPFluent/Request/Cleaner.php on line 15 and defined in /home/**/public_html/wp-content/plugins/fluentform/vendor/wpfluent/framework/src/WPFluent/Request/Cleaner.php:24

    We are working with Dokan Pro, Elementor Pro, Woocommerce and all plugins are upto date, and also we test deactivatedthe rest of the plugins, and still same error, ones click in submit button, get 500 error. same as above.

    Can you please help us with any idea how to fix this issue?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter abacoin

    (@abacoin)

    SORRY, In the above message, I did’t paste the other error, here is the 2 errors:

    [09-Oct-2024 05:27:36 UTC] PHP Warning: Undefined global variable $_POST in /home//public_html/wp-content/plugins/fluentform/vendor/wpfluent/framework/src/WPFluent/Foundation/ComponentBinder.php on line 67
    [09-Oct-2024 05:27:36 UTC] PHP Fatal error: Uncaught TypeError: FluentForm\Framework\Request\Request::cleanArray(): Argument #1 ($data) must be of type array, null given, called in /home//public_html/wp-content/plugins/fluentform/vendor/wpfluent/framework/src/WPFluent/Request/Cleaner.php on line 15 and defined in /home//public_html/wp-content/plugins/fluentform/vendor/wpfluent/framework/src/WPFluent/Request/Cleaner.php:24

    Checking the line 67, and reaching for solution, this code FIX the issue,

    $this->app->singleton(Request::class, function ($app) {
    return new Request($app, $_GET, isset($_POST) ? $_POST : [], $_FILES);
    });


    If anyone is going through the same problem, this may help you as it did us.

    Thank You and God Bless You All.

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