Topic: [Fix] "Gallery XML Not Found" when using non-default upload directory

The plugin breaks when you aren't using the default "wp-content/uploads" directory for media.

The bug lies within the shortcode_handler function in wp-simpleviewer.php. $gallery_file_name doesn't use wp_upload_dir() to get the directory, but assumes that the default is being used. This can be fixed by using the following code instead:

$upload_dir = wp_upload_dir();
$gallery_file_name = $upload_dir['baseurl'] . "/$gallery_id.xml";

Re: [Fix] "Gallery XML Not Found" when using non-default upload directory

Thanks. we'll take a look for the next version.

Felix Turner
SimpleViewer Support Team.