WordPress upgrade breaks your code – Fatal error: Call to undefined function wpcf7_add_tag_generator()

In Wordpress on July 8th, 2012

After upgrading WordPress to 3.4.1, NGGallery stopped working. It was throwing error like:

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

I got it right with following changes:

In ngg-config.php.
Find:

require_once( WP_LOAD_PATH . 'wp-load.php');

Replace with:

require_once( WP_LOAD_PATH . 'wp-admin/admin.php');
  • mike

    thanks – worked perfectly

Categories

Archives