WordPress.org

Forums

Contact Form 7
Error on upgrade: Fatal error: Call to undefined function wpcf7_add_shortcode() (6 posts)

  1. emregan
    Member
    Posted 1 year ago #

    I just upgraded to the latest version, and now my front and back ends are totally whitescreened with the following error message:

    Fatal error: Call to undefined function wpcf7_add_shortcode() .... in functions.php

    I'm on wordpress 3.7.1

    Thanks!

    http://wordpress.org/plugins/contact-form-7/

  2. pharris324
    Member
    Posted 1 year ago #

    Mine too. Had to restore from a backup, delete 3.5.4 version plugin file, and recreate my forms on old plugin version. But would like to keep up to date. Any answers for us? Thanks.

  3. esmi
    Forum Moderator
    Posted 1 year ago #

    @pharris324: If you require assistance then, as per the Forum Welcome, please post your own topic.

  4. emregan
    Member
    Posted 1 year ago #

    So it seems the plugin got deactivated after I did an upgrade. I was able to resolve this by manually activating the plugin through a php script - since I couldn't do it through the admin.

    Now, however, it is working but with my debugger on I am getting the following error message:

    Warning: Missing argument 2 for wpcf7_add_shortcode() in ....../wp-content/plugins/contact-form-7/includes/shortcodes.php on line 179

  5. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    Try deactivating other plugins and theme which extend Contact Form 7's tag set. If it solves the issue, you need update of the extension plugin or theme.

    This topic may be helpful.
    http://wordpress.org/support/topic/after-update-undefined-function-wpcf7_add_shortcode

  6. elsclarysse
    Member
    Posted 8 months ago #

    Hi, I had the same problem and found this workaround (thanks to emregan's hint "it seems the plugin got deactivated"):
    first remove the wpcf7_add_shortcode function from functions.php, upgrade contact form 7 and reactivate. Then you can put back the function and the shortcode works. (i'm on wordpress 4.0 and contact form 3.9.3

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.