Ajax loading not working anymore
-
Hello,
We’ve just updated the Nextgen Gallery plugin from V2.0.66.29 to V2.1.26 and ajax loading has stopped working. The console reports the following error:
Object {html: "[nggallery id=306 template=thumbs]", overviewHtml: "[nggallery id=306 template=overview]"} Uncaught Error: Syntax error, unrecognized expression: [nggallery id=306 template=thumbs]Piece of php that returns this:
// Start forging like the true blacksmith we are. $forgedHtml = array('html'=>do_shortcode('[nggallery id='.$gid.' template=thumbs]'), 'overviewHtml'=>do_shortcode('[nggallery id='.$gid.' template=overview]')); // Output galleries return $forgedHtml;As far as I can see the shortcodes aren’t being loaded. They are working when going back to V2.0.66.29. I noticed the new version has some old Ajax legacy support removed, but the documentation is says that this should already be removed in V2.0.66.29. Also using the new shortcodes isn’t helping much. They are working when accessing the page directly. So this problem is only when loading a page using Ajax.
Currently active plugins:
– Adminimize
– Advanced Custom Fields
– Contact form 7
– Contact form DB
– NextGEN Custom Fields
– NextGEN Gallery by Photocrati (this plugin)
– Search Meter
– WP Search Suggest
– Yoast SEOEverything is up-to-date, MySQL above 5.0. PHP is above 5.4. php safe mode is off. Theme is our own custom made theme. (not much special)
Any help here? 🙂
The topic ‘Ajax loading not working anymore’ is closed to new replies.