• Resolved jra13

    (@jra13)


    good afternoon,
    I have installed this extension but I am having problems. I can fill out the form and when I press send it checks if there are any errors in the fields. If there are no errors try to send but I get infinite spining. When reviewing in the browser console I see the following error.

    Failed to load resource: the server responded with a status of 500 ();

    Clicking on the link shows the following information.

    {“code”: “rest_no_route”, “message”: “The path that matches the URL and the method of the request was not found”, “data”: {“status”: 404}}
    ?
    Contact Form 7 Conditional Fields -> Version 1.8.7 (I have updated but with the previous one it did not work. I have never had this extension working.)
    WordPress 4.7.17

    Someone knows what is due? I hope your help, thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter jra13

    (@jra13)

    I have reviewed the wordpress log and found the following. I comment it in case it helps to locate the error. Thanks

    [03-Jun-2020 10:16:49 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function CF7CF::hide_hidden_mail_fields(), 1 passed in /home/periodi1/public_html/wp-includes/class-wp-hook.php on line 298 and exactly 3 expected in /home/periodi1/public_html/wp-content/plugins/cf7-conditional-fields/cf7cf.php:265
    Stack trace:
    #0 /home/periodi1/public_html/wp-includes/class-wp-hook.php(298): CF7CF->hide_hidden_mail_fields(Object(WPCF7_ContactForm))
    #1 /home/periodi1/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array)
    #2 /home/periodi1/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #3 /home/periodi1/public_html/wp-content/plugins/contact-form-7/includes/submission.php(272): do_action(‘wpcf7_before_se…’, Object(WPCF7_ContactForm))
    #4 /home/periodi1/public_html/wp-content/plugins/contact-form-7/includes/submission.php(160): WPCF7_Submission->mail()
    #5 /home/periodi1/public_html/wp-content/plugins/contact-form-7/includes/submission.php(28): WPCF7_Submission->submit()
    #6 /home/periodi1/public_ht in /home/periodi1/public_html/wp-content/plugins/cf7-conditional-fields/cf7cf.php on line 265

    Plugin Author Jules Colle

    (@jules-colle)

    Are you sure you have the latest version of CF7 installed?

    In the source code of CF7 I see this in wp-content/plugins/contact-form-7/includes/submission.php at line 369

    do_action_ref_array( 'wpcf7_before_send_mail', array(
      $this->contact_form,
      &$abort,
      $this,
    ) );

    Your error is showing an error at line 272 where it’s taking only one argument. do_action('wpcf7_before_send_mail', Object(WPCF7_ContactForm))

    Thread Starter jra13

    (@jra13)

    Good afternoon,

    The problem is the wordpress version. Contact form 7 is updated. When you update the wordpress version it warns you that you must update contact form 7. Thank you very much for your help, it is already solved.

    Plugin Author Jules Colle

    (@jules-colle)

    that’s great!
    Feel free to leave a review if you enjoy using the plugin.

    Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Failed to load resource: the server responded with a status of 500 ()’ is closed to new replies.