• Resolved evermorian

    (@evermorian)


    I am having a problem adding images to galleries. I always get an error that says “there was a problem adding the images to your gallery.”

    I am able to upload images just fine. So, I don’t think there is a file permissions or ownership problem.

    I can set the featured image, make changes to the gallery config, etc. I just can’t add any images to it.

    This is a new, clean install of WP.

    I have MaxGalleria working on a different server with a very similar configuration. I even tried transplanting the entire working WP installation from the working server to the one where it is not working and, get the same error.

    I don’t see anything telling in the server logs.

    More details below.

    Any ideas?

    —– Begin System Info —–

    WordPress Version: 4.0
    PHP Version: 5.3.10-1ubuntu3.15
    MySQL Version: 5.5.40-0ubuntu0.12.04.1
    Web Server: Apache

    PHP cURL Support: Yes
    PHP GD Support: Yes
    PHP Memory Limit: 256M
    PHP Post Max Size: 100M
    PHP Upload Max Size: 100M

    WP_DEBUG: Disabled
    Multi-Site Active: No

    Operating System: Mac
    Browser: Mozilla Firefox 32.0
    User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:32.0) Gecko/20100101 Firefox/32.0

    Active Theme:
    – Twenty Fourteen 1.2
    https://www.ads-software.com/themes/twentyfourteen

    Active Plugins:
    – Contact Form 7 4.0.1
    https://contactform7.com/

    – Limit Login Attempts 1.7.1
    https://devel.kostdoktorn.se/limit-login-attempts

    – MaxGalleria 2.3
    https://maxgalleria.com

    – SSH SFTP Updater Support 0.4
    https://phpseclib.sourceforge.net/wordpress.htm

    —– End System Info —–

    https://www.ads-software.com/plugins/maxgalleria/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter evermorian

    (@evermorian)

    A little more info here:

    I can see the request and response using Firebug.

    On the working server, add_media_library_images_to_gallery sends a request to admin-ajax.php, which responds 264.

    On the non-working server, a similar request gets a response of 0.

    I am assuming that the 0 is a failure code.

    Cursory research suggests that it means either that the action is not set (in the ajax data) or that the action’s callback function cannot be found (i.e., an issue in MaxGalleria when making the call). I’m not sure why this would be true on one server but, not another.

    I don’t know if admin-ajax.php does or can do any logging. I don’t really have the time or energy on this project to dive into the WP developer docs, sort out how MaxGalleria works or, hack logging into it to see what is going wrong in more detail.

    Thread Starter evermorian

    (@evermorian)

    Ok, I sorted this out.

    This probably isn’t particularly likely to help anyone else but, just in case:

    This was caused by a typo in the IP for the hostname’s entry in the /etc/hosts file. Once corrected, MaxGalleria started working properly.

    Plugin Author maxfoundry

    (@maxfoundry)

    Thanks Evermorian for the fix.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can't Add Images to Galleries’ is closed to new replies.