WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] Contact Form 7 breaks Nextgen Gallery Flash Upload (18 posts)

  1. Corse
    Member
    Posted 2 years ago #

    It seems that the most recent version of Contact Form 7 is breaking the flash upload function for Nextgen gallery.

    Hope this will be fixed asap.

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

  2. Daniel Payne
    Member
    Posted 2 years ago #

    Yes, I can confirm that the latest version of Contact Form 7 indeed throws a PHP error when Nextgen Gallery flash upload is being used.

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

    The only work around is to deactivate the Conctact Form 7 plugin while using NextGen Gallery, which is a real pain because I love to use both of these plugins on multiple client web sites.

  3. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 2 years ago #

  4. Daniel Payne
    Member
    Posted 2 years ago #

    Thank you for the quick reply, I've updated the issue in the NextGen file: ngg-config.php

    from:

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

    to:

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

    I can now upload photos in NextGen without seeing any error message from Contact Form 7.

  5. nicodup
    Member
    Posted 2 years ago #

    @Daniel payne :
    Thank you, it works fine !
    I posted your fix in the comments of the last update of the plugin on the author's blog.

  6. Daniel Payne
    Member
    Posted 2 years ago #

    It was Miyoshi's fix?

  7. nicodup
    Member
    Posted 2 years ago #

    yes

  8. Coccinelle Poitiers
    Member
    Posted 2 years ago #

    Yes it works... bug in ngg gallery ! Tanks !!!

  9. melobster
    Member
    Posted 2 years ago #

    @Daniel, how do I update the code as you mentioned above?
    Thank you!!

  10. Daniel Payne
    Member
    Posted 2 years ago #

    melobster,

    In WordPress click on: Plugins> Edit

    Select: NextGen Gallery

    Click the link for: ngg-config.php

    Make your edits, click: Save

  11. melobster
    Member
    Posted 2 years ago #

    @Daniel, Thank you for helping this amateur at WP code! It works now.

  12. Daniel Payne
    Member
    Posted 2 years ago #

    Glad to help out although 99% of the time we don't have to patch plugin code, we just choose it, install it, and use it.

  13. unionstudios
    Member
    Posted 2 years ago #

    Confirmed this fix works. A little too late for me though, I deleted contact form 7 and lost all my forms "SOAB"!!!! Back to creating the forms again.

  14. fychoong
    Member
    Posted 2 years ago #

    Brilliant!

    It works for me too :) Thanks guys!

  15. sneader
    Member
    Posted 2 years ago #

    Curious why either Contact Form 7 or Nextgen Gallery aren't pushing out an update to resolve this?

  16. first_last
    Member
    Posted 2 years ago #

    Guys, thank you A LOT. I wasted a lot of time trying to find the problem. And you've made my day!

    Thnx!

  17. marjons
    Member
    Posted 2 years ago #

    Thanks a lot! This fix works for me as well!
    Saved me a lot of time finding the problem.

  18. sneader
    Member
    Posted 2 years ago #

    Yay! NextGen fixed this problem in version 1.9.5 which was just released today! This is in the Changelog:

    Bugfix: Fixed compatibility issues with Contact Form 7 and other plugins by following WordPress Plugin conventions

    I am going to try to upgrade, then we will see if it's necessary to reverse the "fix" that we have all done.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic