Support » Plugin: WordPress Gallery Plugin - NextGEN Gallery » [Plugin: NextGEN Gallery] Conflict with Contact Form 7?

  • Resolved jcmilton

    (@jcmilton)


    I just updated (automatically) to Contact Form 7 version 3.2 and I’m using the latest NextGEN version of 1.9.3. After updating Contact Form 7 to 3.2 now all of a sudden I cannot upload images using NextGEN Gallery.

    When I try to upload I get this error:

    ERROR: sample-image.jpg:
    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

    The end result is that no images are uploaded. But if I disable the Contact Form 7 plugin, the NextGEN Gallery upload works again. So there is a conflict in there somewhere with the latest version of Contact Form 7.

    Is this happening to anyone else?

    Any help would be appreciated!

    Thanks!

    http://wordpress.org/extend/plugins/nextgen-gallery/

Viewing 11 replies - 46 through 56 (of 56 total)
  • I have contacted the developers of both plug-ins to clarify what the position is. If a solution isn’t in the pipeline, I’ll just have to abandon CF7 and switch to an alternative I guess. But that would be a real shame as both plug-ins are fantastic.

    Takayuki Miyoshi has kindly confirmed that ‘The new owner of NextGEN who acquired it recently seems to be trying to fix it now. https://twitter.com/NextGENGallery/status/219856828245356544’ so I’m going to hang on for the next update and keep my fingers crossed. In the meantime, my users are disabling the Flash Upload option for NextGEN Gallery.

    ‘Hopefully available within the next week or so :)’

    IMHO, it is the fault of NextGEN gallery for improperly loading the WordPress bootstrap. It loads the non-admin bootstrap instead of the admin bootstrap. I’m glad that you say that NextGEN is working on the problem.

    My fix from page 1:
    Change the last line in NextGen’s ngg-config.php file from
    require_once( WP_LOAD_PATH . 'wp-load.php');
    to:
    require_once( WP_LOAD_PATH . 'wp-admin/admin.php');

    Try that for now josh.

    mslocum wrote “IMHO, it is the fault of NextGEN gallery for improperly loading the WordPress bootstrap. It loads the non-admin bootstrap instead of the admin bootstrap. I’m glad that you say that NextGEN is working on the problem.”

    However, there also seems to be a problem in TML. TML causes problems when paired with other plugins. I wouldn’t lay this entirely on the feet of NGG.

    True, bugs are everywhere. From digging through a bunch of code, the reason that Contact Form 7 is trowing a fatal error is because CF7 is only including certain php files depending on which bootstrap is loaded. In my mind this is good programming to not load every file in your plugin on every page load, but instead only load files that are needed. NextGEN is doing an image upload which is a wp-admin task so the admin bootstrap should be loaded, and not the front end bootstrap.

    Sorry if this is a dumb question: What is TML?

    This issue has now been reportedly resolved by the recently released update to NextGEN Gallery 1.9.5. See http://www.nextgen-gallery.com/.

    deactivate your current contact form 7. And install this version
    [Plugin: NextGEN Gallery] Conflict with Contact Form 7

    I don’t use Contact Form 7 … but have the same problem 🙁

    i am also still getting a conflict with CF7 latest install and NGG latest.. and as soon as CF7 disabled, NGG works fine.
    i too would love the 2 developers to work together on this, as both plugins are great.
    If it is NGG, could photocrati please see enough people have this issue, and attend to it asap as keeping both plugins going would be ideal.

    jcmilton

    (@jcmilton)

    I haven’t seen any other updates to this issue.

    Is anyone using the most recent versions of these plugins?

    Contact Form 7 ver 3.3.2
    NextGEN Gallery ver 1.9.10

Viewing 11 replies - 46 through 56 (of 56 total)
  • The topic ‘[Plugin: NextGEN Gallery] Conflict with Contact Form 7?’ is closed to new replies.