• Resolved campusboy

    (@campusboy1987)


    Hello! When I click the “Activate” button after installing the plugin, I get an error:

    
    Fatal error: Uncaught ArgumentCountError: Too few arguments to function HappyForms_Message_Controller::create(), 1 passed in D:\server72\sites\wp-test.ru\wp-content\plugins\happyforms\inc\helpers\helper-activation.php on line 157 and exactly 2 expected in D:\server72\sites\wp-test.ru\wp-content\plugins\happyforms\inc\classes\class-message-controller.php on line 550
    

    code:
    $message = $message_controller->create( $form_data );

    but you need:
    $message = $message_controller->create( $form_data, [] );

    It helped me to activate the plugin.

    • This topic was modified 1 year, 5 months ago by campusboy.
    • This topic was modified 1 year, 5 months ago by campusboy.
    • This topic was modified 1 year, 5 months ago by t-p.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author thethemefoundry

    (@thethemefoundry)

    Hey there! 👋

    Definitely a bug – somehow, that slipped under our radar. Sorry for that! We’ve just released an updated version with the patch. Would you update and see if that fixes the issue?

    Let us know how you go!

    campusboy

    (@campusboy1987)

    After the update, the error has disappeared. Thank you!

    Plugin Author thethemefoundry

    (@thethemefoundry)

    Glad to hear it’s sorted!

    Let us know in case anything else pops up. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error activating the plugin’ is closed to new replies.