simpleviewer gallery not found error
|
duke167
Joined: 2008-01-09
Posts: 1 |
Posted: Wed, 2008-01-09 04:03
|
|
i download the simpleviewer source module, configured and activated on my gallery2. i see the XML generator URL on the edit album tab e.g. then i download simplesource 1.8 and unzip the files. I only modify the index.html as per instruction. fo.addVariable("preloaderColor", "0xffffff"); when I refresh the index.html, i got the gallery not found error, i guess somehow simpleviewer didn't recognize the xmldatapath. Do u see any problem? I tried to load the xml on IE A semi colon character was expected. Error processing resource 'http://www.abc.com/g/main.php?g2_view=simpleviewerso... thumbPath='http://www.abc.com/g/main.php?g2_view=simpleviewersource.DownloadThumb&g2_itemId=' |
|
| Login or register to post comments |

Posts: 1209
There's a painfully obvious typo in your code that's most likely responsible for the "gallery not found" - spot the difference:
vs.
If you ask for an album that doesn't exist, you'll get the error message.
The XML error is because XML doesn't permit single quote - ' - characters, but since the XML parser in Flash reads them fine, and since the xml is not ever required to be read in a browser, there's no real problem. If you want to examine it in a browser, choose the "view page source" option.
Posts: 9
I get the gallery not found error too, and I do not have any errors in the gallery link. Did this issue ever get straightened out. Is anyone successfully using this?
Thanks
Posts: 1209
As far as I can tell this issue was a non-issue. And yes, I use it successfully on two websites.
Please post the the html you have embedded so I can look into it.
Posts: 9
Thanks for your reply. Here is my html code from the simpleviewer dir:
(the g2 installation is in a sub dir called ART, simpleviewersource module is in modules, and the simpleviewer files are in the sub dir called ART also. No modifications have been made to the XML doc. The config settings for simpleveiwersource have been made in the ROOT album of the G2 install on the tab. THANKS FOR YOUR HELP.
<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>SimpleViewer</title>
<!-- Download SimpleViewer at www.airtightinteractive.com/simpleviewer -->
<script type="text/javascript" src="swfobject.js"></script>
<style type="text/css">
/* hide from ie on mac \*/
html {
height: 100%;
overflow: hidden;
}
#flashcontent {
height: 100%;
}
/* end hide */
body {
height: 100%;
margin: 0;
padding: 0;
background-color: #181818;
color:#ffffff;
font-family:sans-serif;
font-size:20;
}
a {
color:#cccccc;
}
</style>
</head>
<body>
<div id="flashcontent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
<script type="text/javascript">
var fo = new SWFObject("viewer.swf", "viewer", "100%", "100%", "8", "#181818");
// SIMPLEVIEWER CONFIGURATION OPTIONS
// To use an option, uncomment it by removing the "//" at the start of the line
// For a description of config options, go to:
// http://www.airtightinteractive.com/simpleviewer/options.html
fo.addVariable("xmlDataPath", "http://mclaren.websitewelcome.com/~peytonwr/art/main.php?g2_view=simpleviewersource.XMLOut%26g2_itemId=7");
//fo.addVariable("firstImageIndex", "5");
//fo.addVariable("langOpenImage", "Open Image in New Window");
//fo.addVariable("langAbout", "About");
//fo.addVariable("preloaderColor", "0xFFFFFF");
fo.write("flashcontent");
</script>
</body>
</html>
the attachment is a screenshot of the path generated in the config tab
Posts: 1209
Hi,
Please log in to your gallery as administrator then enter this url:
http://mclaren.websitewelcome.com/~peytonwr/art/main.php?g2_view=simpleviewersource.XMLOut&g2_itemId=7
please post the error text that you get.
By the way, since your root gallery doesn't have any photographs in it you'll see an empty album (when simpleviewer loads properly) - so it might be wise either to upload a photograph or two there, or pick a different album to test with.
Posts: 9
Thanks again, I logged in and entered the url in my browser and got this error:
The action you attempted is not permitted.
Back to the Gallery
Error Detail -
Error (ERROR_BAD_PARAMETER) : /home/peytonwr/public_html/art/modules/simpleviewersource/XMLOut.inc
* in modules/core/classes/GalleryView.class at line 182 (gallerycoreapi::error)
* in main.php at line 318 (galleryview::loadview)
* in main.php at line 94
* in main.php at line 83
System Information
Gallery version 2.2.4
PHP version 4.4.4 cgi
Webserver Apache/1.3.39 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.30 OpenSSL/0.9.8b PHP-CGI/0.1b
Database mysqlt 4.1.22-standard
Toolkits ImageMagick, Thumbnail
Operating system Linux mclaren.websitewelcome.com 2.6.24.3-grsec #7 SMP Thu Mar 13 01:25:04 CDT 2008 i686
Browser Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.5) Gecko/20070713 Firefox/2.0.0.5
_____________________________
Brian Rembrandt
http://www.dirt.com
http://www.brianrembrandt.com
Posts: 1209
Brian,
Gallery is failing to find this file:
/home/peytonwr/public_html/art/modules/simpleviewersource/XMLOut.inc
which should be the whole filesystem path into the simpleviewersource module folder and the "XMLOut.inc" file in it. Please check on your file server that this file exists, and that this is the correct path at which it's located. Let me know what you find.
Posts: 9
Thanks for your help! That file must have not made it up to the server when I uploaded the module. I found it on my local drive and uploaded it and everything is working. I duplicated the index.html file in the simpleviewer dir, changed the album ID number to a sub album and have both pages working. Thank you so much for you help. Can I paypal you a token donation?
_____________________________
Brian Rembrandt
http://www.dirt.com
http://www.brianrembrandt.com