Topic: "No Images Specified in Gallery XML" after upgrading gallery

I've got about 100 SV galleries under an instance of svManager.

Original setup:
svManager version 1.7.8, build 110516
SimpleViewer-Pro v2.1.3

Target setup:
svManager version 1.8.1, build 120613
SimpleViewer-Pro v2.3.0

To upgrade svManager, I uploaded the new svManager directory over the old one and it looks fine.
To upgrade an SV gallery, I opened it in svBuilder Pro, clicked Publish, and Save.  Then I clicked 'Update' for it in the new svManager.

The result is that when I open that gallery, instead of images, I see "No Images Specified in Gallery XML"

Before upgrade: http://borderlandsbestgear.com/svmanager/g1/
After upgrade: http://borderlandsbestgear.com/svbackup/g1/

What am I missing?
Do I have to upgrade each of the 100 galleries in svBuilder Pro individually?
And is it an option to migrate them all to Juicebox?

Thanks!

Re: "No Images Specified in Gallery XML" after upgrading gallery

Happy to see you have a backup – very prudent!

Your workflow seems logical. It seems that your gallery settings are making it through to the new gallery.xml file but the image tags in the xml file are lost. Can you establish exactly which step in your workflow is losing the image tags by looking at the xml file every step of the way?

You could import the new galleries into svManager one at a time which ought to be safer but it would take longer and I would like to know why your method isn't working.

If you do try the import method note that the gallery embed code changed between SimpleViewer 2.1.3 and 2.3.0. You may have an index.php file with the old code in your gallery folder. Delete the old index.php file before you try the import and svManager will supply a new one.

Do I have to upgrade each of the 100 galleries in svBuilder Pro individually?

Let's see if we can get a working method first. Then if it's still too slow for you I'll have a think about any corners you might cut to speed things up.

And is it an option to migrate them all to Juicebox?

You could do that – you'd have to convert them one at a time in JuiceboxBuilder.

jack

Jack Hardie
SimpleViewer Support Team.

Re: "No Images Specified in Gallery XML" after upgrading gallery

Jack said:

Your workflow seems logical. It seems that your gallery settings are making it through to the new gallery.xml file but the image tags in the xml file are lost. Can you establish exactly which step in your workflow is losing the image tags by looking at the xml file every step of the way?

k-
here's the original gallery: http://borderlandsbestgear.com/svmanager/g2/
here's the post-upgrade gallery: http://borderlandsbestgear.com/svmanager/sv23try1/

I grabbed the gallery.xml file at four points in sv-builder pro.  It seems unchanged until I hit Save in the Publish screen; then bye bye images:

Before:

<?xml version="1.0" encoding="UTF-8"?>
<simpleviewergallery
 backgroundColor = "0xFFFFFF"
 maxImageWidth = "420"
 maxImageHeight = "290"
 frameWidth = "6"
 thumbRows = "3"
 thumbPosition = "RIGHT"
 title = "Pearlescent Samples"
 showOpenButton = "FALSE"
 showFullscreenButton = "FALSE"
 imageClickMode = "OPEN_URL"
 imageScaleMode = "NONE"
 imageDropShadow = "TRUE"
 imageVAlign = "BOTTOM"
 thumbWidth = "164"
 thumbHeight = "116"
 thumbPadding = "5"
 thumbVAlign = "TOP"
 changeImageOnHover = "TRUE"
 titlePosition = "NONE"
 captionPosition = "BOTTOM"
 floatCaption = "FALSE"
 watermarkURL = "http://borderlandsbestgear.com/svmanager/watermark.png"
 watermarkHAlign = "CENTER"
 watermarkVAlign = "CENTER"
 watermarkPadding = "0">
  <image imageURL="http://borderlandsbestgear.com/svmanager/g2/images/DVL590FearsomeBessie.jpg" thumbURL="http://borderlandsbestgear.com/svmanager/g2/thumbs/DVL590FearsomeBessie.jpg" linkURL="http://gearcalc.50webs.com/#tqstqklmuijjojklkfginghlimnpubcfjutnosrqixxxxabheutnppofltrrj" linkTarget="">
    <caption><![CDATA[]]></caption>
  </image>
  <image imageURL="http://borderlandsbestgear.com/svmanager/g2/images/AR520Deathly]PunishingAvenger.jpg" thumbURL="http://borderlandsbestgear.com/svmanager/g2/thumbs/AR520Deathly]PunishingAvenger.jpg" linkURL="http://gearcalc.50webs.com/#vsuvsknopilltjmmqfilngjnmmpstbeikurnpspnkxxxxadkhurnqplmktpoo" linkTarget="">
    <caption><![CDATA[]]></caption>
  </image>
  <image imageURL="http://borderlandsbestgear.com/svmanager/g2/images/ZPR1200UFrenzied]HuntersJackal.jpg" thumbURL="http://borderlandsbestgear.com/svmanager/g2/thumbs/ZPR1200UFrenzied]HuntersJackal.jpg" linkURL="http://gearcalc.50webs.com/#urturkmnpikkmjllofhhngiilmoosusopzxxssqqnxxxxacckusoopnhmtqqk" linkTarget="">
    <caption><![CDATA[]]></caption>
  </image>
  <image imageURL="http://borderlandsbestgear.com/svmanager/g2/images/b5AR5902GloriousSerpens.jpg" thumbURL="http://borderlandsbestgear.com/svmanager/g2/thumbs/b5AR5902GloriousSerpens.jpg" linkURL="http://gearcalc.50webs.com/#urturkmomikkrjllqfhkmgimnmorwbdhjzxuosqolxxxxusmmusmlpmnftqpq" linkTarget="">
    <caption><![CDATA[]]></caption>
  </image>
  <image imageURL="http://borderlandsbestgear.com/svmanager/g2/images/TMP8DoubleStalker.jpg" thumbURL="http://borderlandsbestgear.com/svmanager/g2/thumbs/TMP8DoubleStalker.jpg" linkURL="http://gearcalc.50webs.com/#tqstqklmpijkjjkkqfghoghjnmnovutpozyxrxxxxeffkabefutpnpooltrqo" linkTarget="">
    <caption><![CDATA[]]></caption>
  </image>
  <image imageURL="http://borderlandsbestgear.com/svmanager/g2/images/uRWL760Devastating]SteelUndertaker.jpg" thumbURL="http://borderlandsbestgear.com/svmanager/g2/thumbs/uRWL760Devastating]SteelUndertaker.jpg" linkURL="http://gearcalc.50webs.com/#vsuvsknouillujmmvfilqgjommptsurmlzwsrspngxxxxadljurmkpmietpon" linkTarget="">
    <caption><![CDATA[]]></caption>
  </image>
  <image imageURL="http://borderlandsbestgear.com/svmanager/g2/images/b5HX530CobaltTsunami.jpg" thumbURL="http://borderlandsbestgear.com/svmanager/g2/thumbs/b5HX530CobaltTsunami.jpg" linkURL="http://gearcalc.50webs.com/#urturkmnuikkqjlltfhjlgiljmoqqbdgezxvssqpmxxxxusmqusmppnjhtqpr" linkTarget="">
    <caption><![CDATA[]]></caption>
  </image>
  <image imageURL="http://borderlandsbestgear.com/svmanager/g2/images/b5TK5FulguratingNemesis.jpg" thumbURL="http://borderlandsbestgear.com/svmanager/g2/thumbs/b5TK5FulguratingNemesis.jpg" linkURL="http://gearcalc.50webs.com/#urturkmnrikkojllsfhimgiknmoptbdfgzxwqxxxxegglusolusokpnkftqqj" linkTarget="">
    <caption><![CDATA[]]></caption>
  </image>
  <image imageURL="http://borderlandsbestgear.com/svmanager/g2/images/b4AX300PearlAries.jpg" thumbURL="http://borderlandsbestgear.com/svmanager/g2/thumbs/b4AX300PearlAries.jpg" linkURL="http://gearcalc.50webs.com/#urturkmnsikkljllmfhijgijomoppbdegzxwwsqqjxxxxusnousnnpnjntqql" linkTarget="">
    <caption><![CDATA[]]></caption>
  </image>
</simpleviewergallery>

After:

<?xml version="1.0" encoding="UTF-8"?>

<simpleviewergallery 

    backgroundColor="0xFFFFFF"
    maxImageWidth="420"
    maxImageHeight="290"
    frameWidth="6"
    thumbRows="3"
    thumbPosition="RIGHT"
    title="Pearlescent Samples"
    showOpenButton="FALSE"
    showFullscreenButton="FALSE"
    imageClickMode="OPEN_URL"
    imageScaleMode="NONE"
    imageDropShadow="TRUE"
    imageVAlign="BOTTOM"
    thumbWidth="164"
    thumbHeight="116"
    thumbPadding="5"
    thumbVAlign="TOP"
    changeImageOnHover="TRUE"
    titlePosition="NONE"
    captionPosition="BOTTOM"
    floatCaption="FALSE"
    watermarkURL="http://borderlandsbestgear.com/svmanager/watermark.png"
    watermarkHAlign="CENTER"
    watermarkVAlign="CENTER"
    watermarkPadding="0"
    useFlickr="false"
    resizeOnImport="true"
    cropToFit="false"/>

What should I do next?

btw:

1. I bought Juicebox builder but apparently it can't do this kind of grid thumbnail arrangement or mouseover control so that's out (although I am using Juicebox for something else).

2. After upgrading svManager to 1.8.1 I can no longer clone galleries without messing them up - the layout changes and the thumbnails all get resized into squares.  Also the word 'simpleviewer' shows up in the preload and the corner as if I'm using the free version.  I have a backup of everything under svManager 1.7.8 which worked fine, but I'd like to get this simpleviewer upgrade all sorted out now that Juicebox isn't an option for most of my stuff.

Thanks!

Re: "No Images Specified in Gallery XML" after upgrading gallery

It seems unchanged until I hit Save in the Publish screen; then bye bye images:

So the problem seems to be in svBuilder rather than svManager – yes?

I notice a right-bracket character in some of your file names ']'. I would get rid of these before you do anything else. If that doesn't work then you'd be best to post in the SimpleViewer Pro forum.

Also the word 'simpleviewer' shows up in the preload and the corner as if I'm using the free version.

When you create new galleries or clone them, SvManager will use the version of SimpleViewer in its master folder: svmanager/plugins/simpleviewer2/sv2master/svcore. Replace the whole svcore folder and its contents by the folder in your SimpleViewer Pro download or from your backup.

jack

Jack Hardie
SimpleViewer Support Team.

Re: "No Images Specified in Gallery XML" after upgrading gallery

So the problem seems to be in svBuilder rather than svManager – yes?

indeed

I notice a right-bracket character in some of your file names ']'. I would get rid of these before you do anything else. If that doesn't work then you'd be best to post in the SimpleViewer Pro forum.

*gulp* Removing the right brackets would be problematic since they exist in 99% of filenames across 100 galleries.  I'll give it a try...

When you create new galleries or clone them, SvManager will use the version of SimpleViewer in its master folder: svmanager/plugins/simpleviewer2/sv2master/svcore. Replace the whole svcore folder and its contents by the folder in your SimpleViewer Pro download or from your backup.

awesome - I guess I forgot about that : P  That fixed more stuff than I expected - thanks!

Re: "No Images Specified in Gallery XML" after upgrading gallery

*gulp* Removing the right brackets would be problematic since they exist in 99% of filenames across 100 galleries.  I'll give it a try...

I don't know if that's the answer – I'm just guessing but it would be worth trying in one gallery.

jack

Jack Hardie
SimpleViewer Support Team.

Re: "No Images Specified in Gallery XML" after upgrading gallery

k I took out all the pictures with left brackets and the same thing happened:

Before hitting save in SVbuilder pro:

<?xml version="1.0" encoding="UTF-8"?>
<simpleviewergallery
 maxImageWidth = "420"
 maxImageHeight = "290"
 frameWidth = "6"
 thumbPosition = "RIGHT"
 title = "Best Explosive Stockless Assault Shotguns"
 showOpenButton = "FALSE"
 imageClickMode = "OPEN_URL"
 imageScaleMode = "NONE"
 imageDropShadow = "TRUE"
 imageVAlign = "BOTTOM"
 thumbWidth = "164"
 thumbHeight = "116"
 thumbPadding = "5"
 thumbVAlign = "TOP"
 changeImageOnHover = "TRUE"
 showNavButtons = "TRUE"
 showAutoPlayButton = "TRUE"
 titlePosition = "TOP"
 captionPosition = "BOTTOM"
 floatCaption = "FALSE"
 watermarkURL = "http://borderlandsbestgear.com/svmanager/watermark.png"
 watermarkHAlign = "CENTER"
 watermarkVAlign = "CENTER"
 watermarkPadding = "0">
  <image imageURL="http://borderlandsbestgear.com/svmanager/g4/images/b4ZPR433AngryCrux.jpg" thumbURL="http://borderlandsbestgear.com/svmanager/g4/thumbs/b4ZPR433AngryCrux.jpg" linkURL="http://gearcalc.50webs.com/#tqstqklmlijjqjkkmfggmghhjmnnpbccizyytsrrnxxxxabbgxwuupojjtssm" linkTarget="">
    <caption><![CDATA[]]></caption>
  </image>
  <image imageURL="http://borderlandsbestgear.com/svmanager/g4/images/b4ZPR433BlastShotgun.jpg" thumbURL="http://borderlandsbestgear.com/svmanager/g4/thumbs/b4ZPR433BlastShotgun.jpg" linkURL="http://gearcalc.50webs.com/#tqstqklmlijjqjkkmfggmghhjmnnpbccizyytsrrnxxxxabcexwuupomgtssk" linkTarget="">
    <caption><![CDATA[]]></caption>
  </image>
  <image imageURL="http://borderlandsbestgear.com/svmanager/g4/images/b4ZPR43V3BlastShotgun.jpg" thumbURL="http://borderlandsbestgear.com/svmanager/g4/thumbs/b4ZPR43V3BlastShotgun.jpg" linkURL="http://gearcalc.50webs.com/#sprspkklkiijijjjlffflgggnmmmobbbhzzzusssoxxxxaabdxxuwppnhtttl" linkTarget="">
    <caption><![CDATA[]]></caption>
  </image>
  <image imageURL="http://borderlandsbestgear.com/svmanager/g4/images/b4ZPR43v3BlastHammer.jpg" thumbURL="http://borderlandsbestgear.com/svmanager/g4/thumbs/b4ZPR43v3BlastHammer.jpg" linkURL="http://gearcalc.50webs.com/#tqstqklmlijkjjkkmfggmghhomnnpbccizyytsrrnxxxxabbhxwtvpomgtssl" linkTarget="">
    <caption><![CDATA[]]></caption>
  </image>
  <image imageURL="http://borderlandsbestgear.com/svmanager/g4/images/b5ZPR433BlastDeath.jpg" thumbURL="http://borderlandsbestgear.com/svmanager/g4/thumbs/b5ZPR433BlastDeath.jpg" linkURL="http://gearcalc.50webs.com/#vsuvsknonillsjmmofiiogjjlmpprbeelzwwrspplxxxxadegxusspmketqqn" linkTarget="">
    <caption><![CDATA[]]></caption>
  </image>
  <image imageURL="http://borderlandsbestgear.com/svmanager/g4/images/b5ZPR43v3BlastShotgun.jpg" thumbURL="http://borderlandsbestgear.com/svmanager/g4/thumbs/b5ZPR43v3BlastShotgun.jpg" linkURL="http://gearcalc.50webs.com/#vsuvsknonilmljmmofiiogjjqmpprbeelzwwrspplxxxxadegxurtpmketqqi" linkTarget="">
    <caption><![CDATA[]]></caption>
  </image>
</simpleviewergallery>

After hitting save:

<?xml version="1.0" encoding="UTF-8"?>

<simpleviewergallery 

    maxImageWidth="420"
    maxImageHeight="290"
    frameWidth="6"
    thumbPosition="RIGHT"
    title="Best Explosive Stockless Assault Shotguns"
    showOpenButton="FALSE"
    imageClickMode="OPEN_URL"
    imageScaleMode="NONE"
    imageDropShadow="TRUE"
    imageVAlign="BOTTOM"
    thumbWidth="164"
    thumbHeight="116"
    thumbPadding="5"
    thumbVAlign="TOP"
    changeImageOnHover="TRUE"
    showNavButtons="TRUE"
    showAutoPlayButton="TRUE"
    titlePosition="TOP"
    captionPosition="BOTTOM"
    floatCaption="FALSE"
    watermarkURL="http://borderlandsbestgear.com/svmanager/watermark.png"
    watermarkHAlign="CENTER"
    watermarkVAlign="CENTER"
    watermarkPadding="0"
    useFlickr="false"
    resizeOnImport="true"
    cropToFit="false"/>

next step is to just head to the simpleviewer pro forum?

Re: "No Images Specified in Gallery XML" after upgrading gallery

I think the problem lies with the imageURLs and thumbURLs in your gallery's XML file being expressed as absolute URLs.
When opening the gallery in svBuilder-Pro, the images are not local (on your computer) so svBuilder-Pro cannot load them, resize them or create thumbnails from them. You will probably see, when opening the gallery in svBuilder-Pro, that the 'Images' tab is blank.
When re-saving the gallery on the 'Publish' tab, the gallery's XML file is rebuilt and all the current <image> tags are removed because, as far as svBuilder-Pro is concerned, they refer to images which are no longer part of the gallery (as they are not listed on the 'Images' tab).
The solution would be to save the paths as 'Relative' in svManager's 'Advanced' panel (though you would also need to have the gallery's images on your computer as well as online when editing the gallery using svBuilder-Pro).

Steven Speirs
SimpleViewer Support Team.

Re: "No Images Specified in Gallery XML" after upgrading gallery

that did it - thanks Steven!

once I set relative paths on everything is there a more automated way to do the upgrades or is it just a matter of opening and saving 100+ galleries individually?

Re: "No Images Specified in Gallery XML" after upgrading gallery

A couple of users in the Juicebox-Pro Support forum have created their own tools which you may find useful for:
(1) Converting multiple galleries from SimpleViewer to Juicebox: http://juicebox.net/forum/viewtopic.php?id=59
(2) Batch updating 'jbcore' folders (which you may be able to adapt to swap 'svcore' folders to 'jbcore' if converting SimpleViewer galleries to Juicebox): http://juicebox.net/forum/viewtopic.php?id=147
(3) Batch updating multiple XML files: http://juicebox.net/forum/viewtopic.php?id=153

However, please note that none of these tools were written by ourselves and I have not personally tested any of them.
If you choose to use any of them, you do so at your own risk.
Please ensure that you have a full backup of your web site before using any of these tools.

With that disclaimer in mind, you may find that they are useful to you and save you a lot of time.

Steven Speirs
SimpleViewer Support Team.

Re: "No Images Specified in Gallery XML" after upgrading gallery

Thanks Steven, however:

I bought Juicebox builder but apparently it can't do this kind of grid thumbnail arrangement or mouseover control so that's out (although I am using Juicebox for something else).

Hence, I'd be going from  SimpleViewer-Pro v2.1.3 to SimpleViewer-Pro v2.3.0.  Does that sound any easier?

Last edited by brasmasus (2012-08-03 17:36:54)

Re: "No Images Specified in Gallery XML" after upgrading gallery

If each gallery has its own 'svcore' folder (which will be the case if all the galleries were all created with svManager), then you could modify and use (2) above to upgrade all the 'svcore' folders on your web server. Swapping over the 'svcore' folders is all that is required to upgrade your galleries from v2.1.3 to v2.3.0.
You could also use (3) above (again, with modifications) to change all the XML files in one go. (Depending on the changes to the configuration options you wish to make, you may have to run this script a number of times.)
Please note that both (2) and (3) above are Python scripts and, therefore, require that your web server has Python installed.

Steven Speirs
SimpleViewer Support Team.

Re: "No Images Specified in Gallery XML" after upgrading gallery

Swapping over the 'svcore' folders is all that is required to upgrade your galleries from v2.1.3 to v2.3.0.

oh ok sweet - even if I don't automate that's way more straightforward than I was expecting!