View Full Version : Images in DB - FPP adds .jpg
mediapod
02-22-2008, 12:07 PM
When I'm passing URLs to FPP like these...
http://vtours.calugo.com/index.php%3Fmedia%3Dpano%26id%3D74675
FPP returns the error
Load 0: http://vtours.calugo.com/index.php%3Fmedia%3Dpano%26id%3D74675.jpg
Error opening URL 'http://vtours.calugo.com/index.php%3Fmedia%3Dpano%26id%3D74675.jpg'
It's adding .jpg to the URL - how do I stop it doing this?
Thanks
Rob
zleifr
02-24-2008, 05:47 PM
I believe that the url you are trying to pass to FPP is for a panorama image file of some sort. If so, then you could trying explicitly setting the suffixes to "", or you could try explicitly setting image_f, image_b, etc.
mediapod
02-26-2008, 08:42 PM
Still having problems with this...
Maybe this will better help illustrate it
http://vtours.calugo.com/flash/XML_test3.html
Click the bottom right debug button and it calls the pano.swf with this...
xml_file=partial.xml&&panoName=partial
which successfully loads in a file called partial.jpg in the same dir as the flash file.
However, click one of the thumbnails in the Rooms tab and it calls pano with something like this...
xml_file=partial.xml&&panoName=http://vtours.calugo.com/index.php?media=pano%26id=77971
Which doesn't work.
But paste that into a browser and replace the %26 with a & and it works.
I'm totally fed up with this problem - please help!
Rob
cheathamlane
02-26-2008, 09:48 PM
Hi Rob:
* Can you make the call with an & instead of the URL encoding?
* I receive the below error when I access your presentation.
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at MethodInfo-302()
* Have you tried using a fully qualified XML file (with hotspot, global, pano elements)? Second to that, have you tried including "hotspots.swf"? Maybe it is necessary. I have had issues with my dropdown menu plugin, due to hotspots.swf not being present.
mediapod
02-27-2008, 09:35 AM
Thanks Patrick,
But the & stops the URL being passed - it passes like this
http://vtours.calugo.com/index.php?media=pano
So it needs to be encoded (as far as I know)
I get the same Error #1009 but I'm pretty sure it's caused by this problem.
The pano.swf is embedded within the main flash movie - all it does is load a partial panorama - no hotspots or menus - Just plain dragging with an autorotator, customised loader, limits and the cylconverter. Everything else is within the main flash movie.
What I've been trying is using the input text at the bottom of the interface to change the loadpano string, encoding and escaping different characters to try and get it to load but it always fails.
Is there anyway of getting a more comprehensive error from the pano loader other than "loading failed"?
mediapod
02-27-2008, 03:28 PM
resolved it by hashing the images a la youtube
cheathamlane
02-28-2008, 03:00 AM
resolved it by hashing the images a la youtube
Cool -- what's an example line of code?
Curiously,
mediapod
02-28-2008, 12:40 PM
Instead of having a media and a pano variable in the URL, we now just use a single media one like this
http://vtours.calugo.com/index.php?media=67Z5Bu
For some reason we just couldn't get pano.swf to recognise anything after the first variable - or after the 1st & even when encoded or escaped.
But this method seemed to work fine until some bright spark looked at it in IE7...
Campaign for Microsoft to conform to standards complience anyone?
Thanks for your help Patrick!
Rob
cheathamlane
02-28-2008, 03:18 PM
Instead of having a media and a pano variable in the URL, we now just use a single media one like this
http://vtours.calugo.com/index.php?media=67Z5Bu
For some reason we just couldn't get pano.swf to recognise anything after the first variable - or after the 1st & even when encoded or escaped.
Ah, Gotcha -- Thanks for following up.
But this method seemed to work fine until some bright spark looked at it in IE7...
Campaign for Microsoft to conform to standards complience anyone?
ARGH!
I'll sign your petition...
Cheers Rob,
mediapod
03-03-2008, 08:23 AM
Still going round in circles with frkin IE...
Below is an extract from the server logs...
The line in red is only genereated by IE - firefox doesn't request it.
What's wierd is that the line before it is the same request without the mysterious '?1' added and it actually returns a successful response -
So, why does IE cause pano.swf to make a second request with a '1?' added to the URL causing it to 404, when it's just previously made a successful request with the correct URL?
What a ball ache!
Short Version...
"GET /index.php?media=3u08XU.jpg HTTP/1.1"
"GET /index.php?media=3u08XU.jpg?1 HTTP/1.1"
Long Version
87.114.151.111 - - [28/Feb/2008:17:19:11 +0000] "GET /flash/pano.swf?xml_file=partial.xml&panoName=http://vtours.calugo.com/index.php?media=3u08XU HTTP/1.1" 304 - "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
87.114.151.111 - - [28/Feb/2008:17:19:11 +0000] "GET /flash/pano.swf?xml_file=partial.xml&panoName=http://vtours.calugo.com/index.php?media=3u08XU HTTP/1.1" 304 - "http://vtours.calugo.com/flash/pano.swf?xml_file=partial.xml&panoName=http://vtours.calugo.com/index.php?media=3u08XU" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
87.114.151.111 - - [28/Feb/2008:17:19:11 +0000] "GET /flash/partial.xml HTTP/1.1" 304 - "http://vtours.calugo.com/flash/pano.swf?xml_file=partial.xml&panoName=http://vtours.calugo.com/index.php?media=3u08XU" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
87.114.151.111 - - [28/Feb/2008:17:19:11 +0000] "GET /flash/files/autorotator.swf HTTP/1.1" 304 - "http://vtours.calugo.com/flash/pano.swf?xml_file=partial.xml&panoName=http://vtours.calugo.com/index.php?media=3u08XU" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
87.114.151.111 - - [28/Feb/2008:17:19:11 +0000] "GET /flash/files/KliaMeter.swf HTTP/1.1" 304 - "http://vtours.calugo.com/flash/pano.swf?xml_file=partial.xml&panoName=http://vtours.calugo.com/index.php?media=3u08XU" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
87.114.151.111 - - [28/Feb/2008:17:19:11 +0000] "GET /flash/files/cylConverter.swf HTTP/1.1" 304 - "http://vtours.calugo.com/flash/pano.swf?xml_file=partial.xml&panoName=http://vtours.calugo.com/index.php?media=3u08XU" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
87.114.151.111 - - [28/Feb/2008:17:19:12 +0000] "GET /flash/files/limits.swf HTTP/1.1" 304 - "http://vtours.calugo.com/flash/pano.swf?xml_file=partial.xml&panoName=http://vtours.calugo.com/index.php?media=3u08XU" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
87.114.151.111 - - [28/Feb/2008:17:19:12 +0000] "GET /index.php?media=3u08XU.jpg HTTP/1.1" 200 72141 "http://vtours.calugo.com/flash/pano.swf?xml_file=partial.xml&panoName=http://vtours.calugo.com/index.php?media=3u08XU" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
87.114.151.111 - - [28/Feb/2008:17:19:17 +0000] "GET /index.php?media=3u08XU.jpg?1 HTTP/1.1" 404 - "http://vtours.calugo.com/flash/pano.swf?xml_file=partial.xml&panoName=http://vtours.calugo.com/index.php?media=3u08XU" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
87.114.151.111 - - [28/Feb/2008:17:19:17 +0000] "GET /flash/pano.swf?xml_file=partial.xml&panoName=http://vtours.calugo.com/index.php?media=3u08XU.jpg HTTP/1.1" 200 15177 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.