Viewing 12 replies - 1 through 12 (of 12 total)
  • I’m also getting the same error.

    On the latest version of WordPress and using PHP 7.4.

    Any updates on this?

    So another update on this… I was able to resolve (issue was somehow one of my forms was using another forms ID, yet the form ID was never technically changed). Because the form didn’t exist, I was getting an error.

    @webpr0, check if form ID shortcode used matches one of your existing forms. Also make sure to use the full provided CF7 shortcode (with title and ID).

    • This reply was modified 1 year, 8 months ago by Colin.
    Thread Starter webpr0

    (@webpr0)

    Hi Colin, I figured out the issue. The shortcode of the contact form on the contact page didnt have the correct ID in it. So if you just copy and paste the correct form shortcode with the ID it should work.

    Example: [contact-form-7 id=”197″ title=”Contact”]

    Thread Starter webpr0

    (@webpr0)

    @colinrei Ah you replied before I got to it! Thanks man.

    Yes, I didn’t understand how that happened. Somehow the IDs got mixed up, yet the pages were never edited.

    @colinrei Did you have to change every shortcode to all your contacts to include the ID to fix the issue or just a specific one?

    Thread Starter webpr0

    (@webpr0)

    If the page won’t save with the updated shortcode and you continue to get a critical error you need to use WP Rollback plugin to change your Contact Form 7 version to an old one. Once you can see the form on the page again you can change the ID and then re-save the page. Once that saves you can then update the Contact Form 7 plugin to the latest version.

    @pjmorgan622 no, it was just one specific page/form. Although it was possible myself or the client may have copied an ID from the staging environment, but wordpress showed no revisions of edits. Almost as if it just switched on it’s own.

    Plugin Author Jules Colle

    (@jules-colle)

    It’s not your fault. Before the latest version of CF7 it was possible to enter a shortcode with only the title of the form. But due to some code changes made by the author of CF7 this is no longer possible. I’ve mentioned this in the change log.

    It’s sad to see that CF7 introduces so many breaking changes lately. It’s a bit of a nightmare for plugin-authors that rely on CF7, but at least it’s keeping me busy, so can’t complain ??

    I have had to deactivate the plugin as it is creating a fatal error on every page that has a CF7 shortcut. If I add id’s to every page that has a form will that correct this fatal error issue?

    Hi @pjmorgan622

    I’ve just fixed this issue on my own site. You’ll have to edit the shortcode that calls the form.

    Until now, I have had a subscribe form with an ID of 1066 but my shortcode had been calling 938, like this:

    do_shortcode('[contact-form-7 id="938" title="Subscribe Form"]')

    But since the id is wrong, the shortcode was then relying on the “title” to find a form. But now that CF7 no longer supports this, the shortcode couldn’t find the right form, and broke the page. It’s best to remove the title attribute altogether and make sure the id you’re calling is correct.

    Thank’s @jayahn4 you are men))) , work for me fine

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Error After Latest Update’ is closed to new replies.