WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] Call to undefined function wpcf7_add_tag_generator() error (20 posts)

  1. Delete Me
    Member
    Posted 1 year ago #

    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/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. passimal
    Member
    Posted 1 year ago #

    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

  4. jdkrause
    Member
    Posted 1 year ago #

    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

  5. kiwi_de
    Member
    Posted 1 year ago #

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

  6. mslocum
    Member
    Posted 1 year ago #

  7. liquid50
    Member
    Posted 1 year ago #

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

  8. liquid50
    Member
    Posted 1 year ago #

    Problem solved :)

  9. alexo05
    Member
    Posted 1 year ago #

    Thanks liquid50, that worked like a charm.

  10. danielg8
    Member
    Posted 1 year ago #

    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?

  11. liquid50
    Member
    Posted 1 year ago #

    I would update to the latest version.

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

    Kyle

  12. owcv
    Member
    Posted 1 year ago #

    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! :-)

  13. scott6
    Member
    Posted 1 year ago #

    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

  14. owcv
    Member
    Posted 1 year ago #

    but that will be lost with the next update?!

  15. owcv
    Member
    Posted 1 year ago #

    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)...

  16. owcv
    Member
    Posted 1 year ago #

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

  17. Adriano
    Member
    Posted 1 year ago #

    I had the same issue mentioned by owcv, and the delevopment version solved it. Thank you Takayuki.

  18. jhesseman
    Member
    Posted 1 year ago #

    liquid50, thanks so much! fixed my photo upload problem!

  19. owcv
    Member
    Posted 1 year ago #

    Will this be fixed in an upcoming version?

  20. laptopkomputer
    Member
    Posted 1 year ago #

    this one same with my problem thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic