Last week, I updated my wordpress to the latest update and all my plugins as part of my monthly maintenance for the site. After that when I tried to upload an image using the nextgen gallery I encountered an error saying “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” so what I did is I downloaded the text.php and investigate. I couldn’t see any error there since that function was defined correctly so I looked for possible solution.
When I tried to open the ngg-config.php it includes wp-load.php which loads wordpress and all plugins which is not correct. So I open the previous version of ngg-config.php and there I saw that wp-load.php was not included but instead it includes wp-admin/admin.php.
What I did is I change the line with:
require_once( WP_LOAD_PATH . ‘wp-load.php’);
require_once( WP_LOAD_PATH . ‘wp-admin/admin.php’);
when I tried to upload again using the nextgen gallery it fixes the error. What I don’t know yet is the effect of what I did on nextgen gallery, but as of now I don’t see any error on nextgen gallery and contact 7. They are both working properly and I think the conflict between Nextgen Gallery And Contact 7.