Support » Plugin: Contact Form 7 » ERROR wpcf7_remove_shortcode

  • Resolved mattemar

    (@mattemar)


    Hi there, the contact form in my client website all of the sudden stopped to work. If I deactivate the cf7 plugin the website is showing properly, if I activate it I gett this error:

    wpcf7_remove_shortcode is deprecated since Contact Form 7 version 4.6! Use wpcf7_remove_form_tag instead. in /home/prontoitaliano/public_html/wp-content/plugins/contact-form-7.bk/includes/functions.php on line 374

    Notice: wpcf7_remove_shortcode is deprecated since Contact Form 7 version 4.6! Use wpcf7_remove_form_tag instead. in /home/prontoitaliano/public_html/wp-content/plugins/contact-form-7.bk/includes/functions.php on line 374

    Could you please help me fixing it? Thanks

    • This topic was modified 12 months ago by mattemar.
Viewing 3 replies - 1 through 3 (of 3 total)
  • MrsJessicaSimpson

    (@mrsjessicasimpson)

    Googled it, and some interesting reading popped up: you may like to look at this one below as a starter.

    https://wordpress.org/support/topic/notice-wpcf7_remove_shortcode-is-deprecated/

    The general consensus from a quick scan, is that it may well be another mailer plugin that’s causing it, and not CF& at all.

    As I say, it may or may not help you.

    mattemar

    (@mattemar)

    Thanks Mrs,

    I’ve checked that link and I’ve noticed was the datepicker creating the issues. I edited the date.php file like it says in that topic and the error message disappeared, non completely though.

    Now fortunately the website and contact form are loading properly with the plugin active but on top of the contact for a error is been shown:

    Notice: WPCF7_Shortcode is deprecated since Contact Form 7 version 4.6! Use WPCF7_FormTag instead. in /home/prontoitaliano/public_html/wp-content/plugins/contact-form-7/includes/functions.php on line 374

    mattemar

    (@mattemar)

    Ok solution found, thanks to the first step.

    The contact form 7 developer stopped to use the name shortcode in their code

    They renamed this because the use of the term “shortcode” was confusing. It is actually a form-tag of the Contact Form 7 plugin, but sounds like a shortcode of WordPress itself. Those two concepts are similar, but fundamentally different.

    Why my issue came up? Because other add ons plugin made from third parties didn’t update their codes, so what I had to do was replacing all the these tags (in my case in the datepicker – date.php):

    WPCF7_Shortcode
    WPCF7_ShortcodeManager
    wpcf7_add_shortcode()
    wpcf7_scan_shortcode())

    whith these:

    WPCF7_FormTag
    WPCF7_FormTagsManager
    wpcf7_add_form_tag()
    pcf7_scan_form_tags()

    Hope it helps!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘ERROR wpcf7_remove_shortcode’ is closed to new replies.