WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Contact Form 7] Call to undefined function wpcf7_add_tag_generator() error

[Resolved] [Plugin: Contact Form 7] Call to undefined function wpcf7_add_tag_generator() error

  • Delete Me
    Member

    @lincolnadams

    Getting this error after updating to the latest version:

    Fatal error: Call to undefined function wpcf7_add_tag_generator() in /home/xxxx/public_html/wp-content/plugins/contact-form-7/modules/text.php on line 152

    It happens when I click on a Flickr button on my edit screen to add photos (powered by the Flickpress plugin.)

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

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author Takayuki Miyoshi
    Participant

    @takayukister

    Try development version.

    Actually there is a problem in Flickpress’s code loading WordPress core files inappropriately. My fix is just a workaround. Note that it is possible to cause another trouble unless Flickpress’s problem is fixed.

    stephane LP
    Participant

    @passimal

    Hello , I think there are errors if I use Nextgen gallery …with CF7 3.2 …
    http://wordpress.org/support/topic/plugin-nextgen-gallery-conflict-with-contact-form-7?replies=4

    Getting the same error as the original poster while trying to add images in Nextgen Gallery. I had to re-download CF7 v3.1.2 to get things working again with NGG. You can download it here — http://downloads.wordpress.org/plugin/contact-form-7.2.4.6.zip

    kiwi_de
    Participant

    @kiwi_de

    Same problem here, WP 3.3.2 with latest NGG and latest WP Contact Form 7

    NextGen file: ngg-config.php
    from: require_once( WP_LOAD_PATH . ‘wp-load.php’);
    to: require_once( WP_LOAD_PATH . ‘wp-admin/admin.php’);

    Problem solved 🙂

    Thanks liquid50, that worked like a charm.

    After updating to version 3.2 I’m also getting this error with another plug-in that we use on our site: dsIDXpress

    Fatal error: Call to undefined function wpcf7_add_tag_generator() in /home/xxxxx/public_html/wp-content/plugins/contact-form-7/modules/text.php on line 152

    I’m unsure how to install a previous (or the developer) version of Contact Form 7 without losing the contact forms we have created. Is that possible?

    I would update to the latest version.

    I am happy to look at it if you like. Email me kyle@liquid50.com.

    Kyle

    I have the same issue. It happens when I try to add a new download to WordPress Download Monitor:

    Fatal error: Call to undefined function wpcf7_add_tag_generator() in /var/www/www.domain.com/wp-content/plugins/contact-form-7/modules/text.php on line 152

    I had to downgrade to Contact Form 7 version 3.1.2 and now the error doesn’t occur anymore…

    Can you please add a fix for this problem soon? Thanks in advance! 🙂

    i don’t know if this works for you, but try this :
    open your contact-form-7/modules/text.php & add this function :

    // remember to check function existance first
    if ( ! function_exists( ‘wpcf7_add_tag_generator’ ) ) {
    function wpcf7_add_tag_generator( $name, $title, $elm_id, $callback, $options = array() ) {
    global $wpcf7_tag_generators;

    $name = trim( $name );
    if ( ” == $name )
    return false;

    if ( ! is_array( $wpcf7_tag_generators ) )
    $wpcf7_tag_generators = array();

    $wpcf7_tag_generators[$name] = array(
    ‘title’ => $title,
    ‘content’ => $elm_id,
    ‘options’ => $options );

    if ( is_callable( $callback ) )
    add_action( ‘wpcf7_admin_footer’, $callback );

    return true;
    }
    }

    note :
    you can get function wpcf7_add_tag_generator from contact-form-7/includes/taggenerator.php in your plugin folder

    but that will be lost with the next update?!

    btw. I forgot to mention, that this error only occurs when I try to add the download within the edit screen of a post (via the icon above the editor)…

    I’ve tried the developer version. That solved the issue. Will this fix also be in the next regular release?

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘[Resolved] [Plugin: Contact Form 7] Call to undefined function wpcf7_add_tag_generator() error’ is closed to new replies.