'error' => 'Not a valid AJAX action' in package.module.ajax.php
-
– 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: OffAdditional 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 PopeHelpersThe required method path:
A_NextGen_AddGallery_Ajax extends Mixin
Mixin extends PopeHelpers
class PopeHelpersto reproduce: upload images via Dashboard -> Gallery -> Add Gallery/Images
- The topic ‘'error' => 'Not a valid AJAX action' in package.module.ajax.php’ is closed to new replies.