Topic: No Images Found In Gallery XML

The idea: I'm attempting to use PHP to dynamically generate XML for simpleviewer.

The issue: simpleviewer works great in one instance, but then when I try images in a subdirectory it breaks, giving the error "No images found in gallery XML."

The code that works:
http://www.webspecdesign.com/projects/r … p?do=index

The code that doesn't work:
http://www.webspecdesign.com/projects/r … &hid=1

I am 100% sure that the gallery links to the XML properly and that the images do indeed exist. I just can't figure out the issue. Thoughts?

Re: No Images Found In Gallery XML

Have you tried using relative URLs instead of absolute URLs in the one you are having issues with? What is the URL of the page that has the troubled gallery embedded in to it?

Mike Richards
SimpleViewer Support Team.

Re: No Images Found In Gallery XML

I've tried using all sorts of different relative URLs, and here's the page:

http://www.webspecdesign.com/projects/r … .php?hid=1

I've put the images in different directories and all sorts of things, but no luck!

Last edited by Entoros (2010-07-27 18:45:20)

Re: No Images Found In Gallery XML

The XML:

<simpleviewergallery 
 
    galleryStyle="COMPACT"
    title="Featured Property"
    textColor="FFFFFF"
    frameColor="FFFFFF"
    frameWidth="10"
    thumbPosition="RIGHT"
    thumbColumns="2"
    thumbRows="3"
    showOpenButton="FALSE"
    showFullscreenButton="TRUE"    
    maxImageWidth="500"
    maxImageHeight="300"
    useFlickr="false"
    flickrUserName=""
    flickrTags=""
    languageCode="AUTO"
    languageList=""    
    imagePath="images/"
 
><image imageURL="http://www.webspecdesign.com/projects/r-k-properties/images/house1_0001.JPG" linkURL="" linkTarget=""><caption></caption></image><image imageURL="http://www.webspecdesign.com/projects/r-k-properties/images/house1_laundry.JPG" linkURL="" linkTarget=""><caption></caption></image><image imageURL="http://www.webspecdesign.com/projects/r-k-properties/images/house1_top.JPG" linkURL="" linkTarget=""><caption></caption></image><image imageURL="http://www.webspecdesign.com/projects/r-k-properties/images/house1_main.JPG" linkURL="" linkTarget=""><caption></caption></image></simpleviewergallery>

I would add <?xml version="1.0" encoding="UTF-8"?> to top of the XML in your php gallery gen and also some \n to break it up onto multiple lines.

If that does not work as a test, go to your XMLgen php and copy the XML that is created into notepad save it as gallery.xml upload it to where your gallery is and point your embed code to it. Does it work?

Mike Richards
SimpleViewer Support Team.

Re: No Images Found In Gallery XML

Hmm, well the <?xml tag was in there initially but I did add some newlines, but to no avail.

And interestingly, when I link the gallery to a static xml file like you said it worked as it should.
Which means it's a problem with the PHP... but it works when the PHP generates the photos for a different gallery.
http://www.webspecdesign.com/projects/r … p?do=index

When linked to the above, simpleviewer works great.

Am I missing something obvious?