• Resolved leemon

    (@leemon)


    Hi!

    The latest version of Contact Form has deprecated the wpcf7_add_shortcode function, which your plugin uses.

    In case anyone is interested, the following line:

    wpcf7_add_shortcode( 'honeypot', 'wpcf7_honeypot_shortcode_handler', true );

    has to be changed to:

    wpcf7_add_form_tag( 'honeypot', 'wpcf7_honeypot_shortcode_handler', true );

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter leemon

    (@leemon)

    Also,

    Lines 91 and 131 must be changed from:

    $tag = new WPCF7_Shortcode( $tag );

    to:

    $tag = new WPCF7_FormTag( $tag );

    Ryan

    (@daobydesign)

    Cheers @leemon! Am working on an update that will roll in the new CF7 version 4.6 function depreciation changes. Watch for it later today.

    Thread Starter leemon

    (@leemon)

    Great! Thanks!

    What file(s) do I change those lines in?

    Ryan

    (@daobydesign)

    @agermanucf no need to change anything. Simply update the plugin with today’s release (v1.10).

    ok thanks! Just did…although my primary issue is not fixed (missing admin top bar when viewing pages/posts outside of dashboard), so I guess it’s not CF7. Although that’s the only thing that showed in the error log, so I guess I will keep investigating. Thanks

    Ryan

    (@daobydesign)

    Hmm, yeah, this wouldn’t fix whatever’s causing that, as this was simply a depreciation notice. Shouldn’t have had any affect on page loading (though a notice would have appeared if you have DEBUG set to true in your settings).

    On the outside chance that you haven’t, check your User Profile and confirm that you don’t have the admin bar disabled for that user.

    Thanks for the reply. I did turn on debugging as a last resort trying to find the issue. I went through the steps here https://www.howtosolutions.net/2016/09/wordpress-missing-admin-bar-toolbar/ and the user profile is the 1st step it mentions.

    I’m using a CF7, but it is giving message “Failed to send your message. Please try later or contact the administrator by another method”. and I have added condional logic for radio button (if clccked yes then text box is editable otherwise Read-only), on Submitting form it is giving validational error message as i have removed required for text box.
    Can anyone suggest me what to do.

    I’m using a CF7, but it is giving message “Failed to send your message. Please try later or contact the administrator by another method”. and I have added condtional logic for radio button (if clicked yes then text box is editable otherwise Read-only), on Submitting form it is giving validational error message as i have removed required for text box.
    Can anyone suggest me what to do.

    Ryan

    (@daobydesign)

    @siddharththorat, two things:

    1) Please always open a new thread — your message is unrelated to this thread.
    2) It sounds like your looking for CF7 support. This is not the CF7 support form.

    If you are using the CF7 Honeypot plugin and feel it might be the reason for the problems you are facing (i.e. you remove all your additional functionality, and still have problems only with a basic form and the honeypot field), please open a new support thread here.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Contact Form 4.6 deprecates the wpcf7_add_shortcode functio’ is closed to new replies.