• Resolved yoosefahkami

    (@yoosefahkami)


    Hi,
    I’m using the latest versions of WordPress, Contact 7 and your plugin, but by enabling your plugin, all of the forms stop working. For more detail, here is the log of this error.

    
    [08-Jul-2019 08:51:43 UTC] PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function ContactForm7ConditionalFields::hide_hidden_mail_fields(), 1 passed in C:\xampp\htdocs\test\wp-includes\class-wp-hook.php on line 286 and exactly 3 expected in C:\xampp\htdocs\test\wp-content\plugins\cf7-conditional-fields\cf7cf.php:253
    Stack trace:
    #0 C:\xampp\htdocs\test\wp-includes\class-wp-hook.php(286): ContactForm7ConditionalFields->hide_hidden_mail_fields(Object(WPCF7_ContactForm))
    #1 C:\xampp\htdocs\test\wp-includes\class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #2 C:\xampp\htdocs\test\wp-includes\plugin.php(465): WP_Hook->do_action(Array)
    #3 C:\xampp\htdocs\test\wp-content\plugins\contact-form-7\includes\submission.php(250): do_action('wpcf7_before_se...', Object(WPCF7_ContactForm))
    #4 C:\xampp\htdocs\test\wp-content\plugins\contact-form-7\includes\submission.php(158): WPCF7_Submission->mail()
    #5 C:\xampp\htdocs\test\wp-content\plugins\contact-form-7\includes\submission.php(28): WPCF7_Submission->submit()
    #6 C:\xampp\htdocs\test\wp-content\plugins\co in C:\xampp\htdocs\test\wp-content\plugins\cf7-conditional-fields\cf7cf.php on line 253
    

    Please let me know if there is anything to do to fix this issue.

    I’m looking forward to hearing from you.
    Best Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    I would like to try and reproduce the problem. Can you give me the following info?

    PHP version
    WP version
    CF7 version
    Conditional Fields version
    Plugins enabled
    Your theme

    Thanks

    Thread Starter yoosefahkami

    (@yoosefahkami)

    It was fixed by updating both plugins. The theme developer disabled the contact form’s updates, and the website uses the old version of Contact form 7!
    Thanks,

    Plugin Author Jules Colle

    (@jules-colle)

    glad it’s solved!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP Fatal error: Uncaught ArgumentCountError’ is closed to new replies.