[Plugin: NextGEN Gallery] Slideshow doesn’t load images – found the bug
-
When the slideshow is requested, XML data is generated to give imagerotator.swf a list of images in XML format. The file which does this is nggextractXML.php and the first thing it does is go and look for wp-load.php or wp-config.php at this location.
$root = dirname(dirname(dirname(dirname(__FILE__))));
require_once($root.'/wp-load.php');
if your file path is like this:
/wordpress/wp-content/plugins/nggallery/nggextractXML.php
then everything will work perfectly, but if you choose to have your wp-config.php and/or your wp-content folder OUTSIDE the WordPress directory then the slideshow gets stuck.I’ve fixed it temporarily by just setting the absolute path to wp-load.php, but I’m sure WordPress must have a more elegant solution for developers?
- The topic ‘[Plugin: NextGEN Gallery] Slideshow doesn’t load images – found the bug’ is closed to new replies.