• Resolved Spenser Hale

    (@spenserhale)


    – WordPress up to date?
    Yes, Version 4.2.2
    – NextGEN up to date?
    Yes, Version 2.1.0
    – What version of NextGEN Gallery did you upgrade from? (i.e. I had 1.9.13, then upgraded to 2.0.61)
    2.0.77.3 to 2.1.0

    (please confirm the following, with your server host tech) :
    – MySQL up to date (at least 5.0)?
    MySQL Database Version : 5.5.30
    – PHP up to date (at least 5.2.4)?
    PHP Version: 5.4.13
    – The mod_rewrite Apache module activated?
    Yes
    – PHP Safe Mode OFF?
    PHP Safe Mode: Off

    Additional information that will help us find a solution:
    – Who are you hosted with?
    MediaTemplate
    – What theme are you running?
    Infusion (Custom Created for Client)
    – Which plugins do you have installed and activated?
    NextGEN Gallery by Photocrati
    NextGEN Gallery Voting
    NextGEN Gallery Voting Premium
    WP Super Cache
    – Does this error still occur if you switch your theme to a WordPress Twenty series theme and deactivate all plugins except NextGEN Gallery? (please be sure to clear your browser cache and reload your site after deactivating)
    No error doesn’t occur when switched.

    The problem is in the back end when trying to upload new images.

    The error is happening because the ajax call/ code is telling wordpress to take the action “upload_image_action” which is a method of another class. Its using the $this variable which I believe isn’t scope to have access to correct method. When the code cannot find the function/ method requested it replies with “Not a valid AJAX action”.

    The class in question:
    C_Ajax_Controller extends C_MVC_Controller
    C_MVC_Controller extends C_Component
    C_Component extends ExtensibleObject
    ExtensibleObject extends PopeHelpers
    class PopeHelpers

    The required method path:
    A_NextGen_AddGallery_Ajax extends Mixin
    Mixin extends PopeHelpers
    class PopeHelpers

    to reproduce: upload images via Dashboard -> Gallery -> Add Gallery/Images

    https://wordpress.org/plugins/nextgen-gallery/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @spenserhale – Does this continue to happen if you only have NextGEN Gallery active and not other plugins (or caching in effect)?

    – Cais.

    Hi Cais,

    I’m actually working on the same client Spenser was before (but is no longer). I have tested the plugin with all others disabled. It works. Turns out it’s iThemes Security that is causing the problem. I am attempting to find a way of writing an exception for the plugin.

    If you have any advice or guidance on this it would be most appreciated.

    Plugin Contributor photocrati

    (@photocrati)

    @josiahrooney – Thanks for following up. We do not have anything specific to suggest for the iThemes plugin except to recommend you contact them on how to create a “work-around” for what it is doing to break NextGEN Gallery.

    It’s even possible they may be planning an update that will correct this matter as well.

    Thanks, again!

    – Cais.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘'error' => 'Not a valid AJAX action' in package.module.ajax.php’ is closed to new replies.