• Hello there!

    Please see following stack trace for debugging purposes:

    [06-Apr-2023 05:04:31 UTC] PHP Fatal error:  Uncaught Error: Call to a member function id() on null in /wp-content/plugins/cf7-conditional-fields/cf7cf.php:468
    Stack trace:
    #0 /wp-includes/class-wp-hook.php(308): wpcf7cf_form_hidden_fields()
    #1 /wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #2 /wp-content/plugins/contact-form-7/includes/contact-form.php(699): apply_filters()
    #3 /wp-content/plugins/contact-form-7/includes/contact-form.php(626): WPCF7_ContactForm->form_hidden_fields()
    #4 /wp-content/plugins/contact-form-7/includes/contact-form-functions.php(235): WPCF7_ContactForm->form_html()
    #5 [internal function]: {closure}()
    #6 /wp-content/plugins/contact-form-7/includes/l10n.php(147): call_user_func()
    #7 /wp-content/plug in /wp-content/plugins/cf7-conditional-fields/cf7cf.php on line 468
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    I had a similar problem. This can be fixed by updating the ID field in your short-code. Many older contact forms will either be missing the ID field, or the ID field will be a shorter number because it seems that CF7 at some point reindexed all contact forms to use a 4 digit ID.

    Old Tags may look like:

    [contact-form-7 id=”1″ title=”Contact Us”] or [contact-form-7 title=”Contact Us”]

    But if your go to Contact > Contact Forms, you will see the proper short-code to use and it will look more like this:

    [contact-form-7 id=”1401″ title=”Contact Us”]

    Just copy the new short code over your old one and the error should go away without having to downgrade to an older version of CF7.

    Thread Starter Saskia Teichmann

    (@jyria)

    Thanks! I was able to fix it! The shortcode used was lacking the id as mentioned above.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error with latest version’ is closed to new replies.