WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
Conflict with Google Doc Embedder - Can't Upload (9 posts)

  1. CreativeStudio
    Member
    Posted 3 years ago #

    Building a client's site and have installed by NGG and Google Doc Embedder. Now I can't upload using NGG. Known issue posted on the Google Doc Embedder support - NGG / GDE Conflict.

    Really like NGG but I can't expect the client to deactivate a plug-in every time they want to upload photos.

    Any resolution to this problem?

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

  2. k3davis
    Member
    Posted 3 years ago #

    Thanks for taking the time to review the documentation; there is indeed a conflict with NGG and GDE. Unfortunately it is one that appears to be on NGG's end and I'm unable to work around the problem.

    Last I tried (which admittedly was not recently) the error did not impeded functionality of NGG, but just showed an error message and I was still able to upload. If that is not the case anymore, perhaps further updates to NGG have worsened the issue. You are right not to expect the client to deactivate a plugin in order to use another. Unfortunately I've done everything I can conceive of to work around the issue without effect.

  3. CreativeStudio
    Member
    Posted 3 years ago #

    Thanks k3davis for the prompt reply. After reviewing your support forum for GDE and finding that the same fatal error results, I was hoping that someone at NGG had addressed the issue. Unfortunately, not at this point.

    Would love to see this resolved as I see great benefits to clients utilizing both plugins and rather not have to choose. It isn't a huge deal for me to deactivate/activate plugins until a fix is made. Clients on the other hand don't want to deal with the backend - that's why they hire someone to do it for them.

    NGG - we need a fix for this.

    Error: Parcel_96_photos_2.jpg
    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, "gde_conflict check" was given in /"path"/wordpress/wp-includes/plugin.php on line 395

    Fatal error: Call to undefined function gde_t() in /"path"/plugins/google-document-embedder/gviewer.php on line 173

  4. Alex Rabe
    Member
    Posted 3 years ago #

    I track down the main issue as follow :

    GDE includes functions at the top of gviewer.php:
    include_once('functions.php');

    Now, NGG has a couple of special AJAX calls (yes, will be rewritten in the future) to show a image (edit thumbnail) or upload a file, where it reload the WordPress functions via a second call (ngg-config.php), in this case all filter & action hooks will be executed again, but due to the fact that the "functions.php" are not yet loaded, PHP throw a error.

    A simple,intermediate solution is to move gde_conflict_check() and gde_t() to gviewer.php, then it should work fine.

    I need to recheck if it's not better to use here the action hook "plugins_loaded" , I think here is the main problem at my side

  5. k3davis
    Member
    Posted 3 years ago #

    Thanks for looking at this, Alex.

    I've put this workaround in 1.9.8 beta 1 of GDE, which you can download from your plugin list if you haven't disabled beta version checking. If anyone using NGG and GDE together wishes to test this out, please download and give feedback. Thank you!

  6. macombs
    Member
    Posted 3 years ago #

    An easy work around is to disable the flash uploader. You have to add the photos one at a time but it works and doesn't produce any errors.

  7. gfinch
    Member
    Posted 3 years ago #

    macombs - how do you disable the flash uploader? I've had a look and can't work it out.
    Thanks

  8. macombs
    Member
    Posted 3 years ago #

    When you go to add gallery/image and then upload images tab there should be a button right next to the upload images button that says "disable flash upload".

  9. gfinch
    Member
    Posted 3 years ago #

    Thanks for that! That worked for me and now I can upload images.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic