Announcement

  •  » Extensions
  •  » Problem with Panorama plugin

#1 2013-09-16 01:31:56

pewe
Member
2012-03-16
439

Problem with Panorama plugin

Evening all ;-)

I have uploaded some panorama photos and am having a problem with the plugin to view them.

- I named all photos as 'photoname_180.jpg'
- I uploaded with ftp
- I synchronised
- I went into Batch manager and replaced all the '_' signs in the photo names (they were removed on synchronising)

But when I view the photos, no thumbnail appears at the bottom of the viewport, and there is no picture in the viewport all I see is the photoname scrolling from left to right.

I know I am getting on a bit, and my brain is slowing down, but what am I missing???

UPDATE:
Using FF Inspect element option I find that the link to the image for the panorama is showing as
".photographs/Panoramas/photoname_180.JPG" instead of "/photographs/Panoramas/photoname_180.JPG"

Where has this "." come from? How do I correct it. Is it something I am missing in the configuration, or is it a bug in the plugin.

Last edited by pewe (2013-09-16 03:37:31)

Offline

 

#2 2013-09-16 06:23:02

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: Problem with Panorama plugin

Hi :-)

The _180 must be in 'name' in piwigo


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#3 2013-09-16 09:52:00

pewe
Member
2012-03-16
439

Re: Problem with Panorama plugin

Hi ddtddt.

I have the -180 as part of the file name and the title of the photo.
Is that what you are referring to when you say 'must be in the name'?

Offline

 

#4 2013-09-16 10:18:50

flop25
Piwigo Team
2006-07-06
7037

Re: Problem with Panorama plugin

Could you post a link to the problem? thx


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#5 2013-09-16 11:58:43

pewe
Member
2012-03-16
439

Re: Problem with Panorama plugin

Hi Flop.

I have sent a PM re the link - it is a family site and I'd prefer not to publicise it more than necessary.
The link is to the Panorama Album - the first 5 photos have had the name changes, the rest are as they were after they were synchronised.

Offline

 

#6 2013-09-16 15:48:08

pewe
Member
2012-03-16
439

Re: Problem with Panorama plugin

I have investigated a bit further.

I installed the Panorama plugin and the same photos on another site - and it worked.

So I compared plugins and disabled all plugins on the site with the problem that were not on the working site - still no photo in the viewport.

So I disabled ALL plugins (except Panorama) on the problem site - still no photo in the vieport and the scrip is still loading with a "." instead of "/"

Offline

 

#7 2013-09-16 15:52:59

flop25
Piwigo Team
2006-07-06
7037

Re: Problem with Panorama plugin

didn't check yet, but could upload the files of the plugin and Piwigo too, by ftp, by overwriting everything


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#8 2013-09-16 20:36:27

pewe
Member
2012-03-16
439

Re: Problem with Panorama plugin

Have tried that now. Re-uploaded all Piwigo files and all Panorama files manually.

Made no difference - problem still there.

UPDATE
- Removed Panorama plugin
- Removed all Panorama Photos
- Deactivated all Plugins
- Re-uploaded Piwigo
- Re-uploaded one Panorama Photo
- Re-uploaded Panorama
- Re-activated Panorama (now only plugin running)
- Re-named Photo (_180)

Problem still there.

So only place left - database?????

Last edited by pewe (2013-09-16 21:02:12)

Offline

 

#9 2013-09-16 22:44:42

flop25
Piwigo Team
2006-07-06
7037

Re: Problem with Panorama plugin

Hmm unfortunately I can only confirm what you said
Btw great debug

do you have ant local config


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#10 2013-09-16 23:59:15

pewe
Member
2012-03-16
439

Re: Problem with Panorama plugin

Hmmm. Nothing in the database that looks like it is affecting the plugin.

Time for further thought.

flop25 wrote:

do you have ant local config

Not sure I understand what you are asking ;-)

Offline

 

#11 2013-09-17 03:54:02

pewe
Member
2012-03-16
439

Re: Problem with Panorama plugin

I think I found the problem.

It arises because I have my photos outside of the Piwigo directory in a parallel directory

In the database the link for the panorama directory is
  ../photostore/albumname/Panoramas/P1010418_180.JPG
note the two .. before the / (because the directory is outside the main Piwigo directory).

If I now place the same photo in a subdirectory of the 'galleries' directory inside the Piwigo directory the database link is now
  ./galleries/panoramas2/P1010418_180.JPG
note the one . before the /

THIS WORKS!! and the only difference between the two is the use of an additional . in the database record.

Now the question is, can this be corrected I wonder?????

Offline

 

#12 2013-10-03 17:15:16

flop25
Piwigo Team
2006-07-06
7037

Re: Problem with Panorama plugin

I'm checking the plugin to see how it handles the paths


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#13 2013-10-03 17:43:19

flop25
Piwigo Team
2006-07-06
7037

Re: Problem with Panorama plugin

very bad code spotted http://piwigo.org/dev/browser/extension … ma.php#L28

that's why there is a . because it removes './' in ../   :-/


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#14 2013-10-03 18:03:15

flop25
Piwigo Team
2006-07-06
7037

Re: Problem with Panorama plugin

could you try to replace that line
    $content = "<img src=\"".str_replace( "./", "", $image['path'])."\" width=\"".$image['width']."\" height=\"".$image['height']."\" alt=\"".$image['file']."\" id=\"theMainImage\"></img>";

by


    $content = "<img src=\"". $image['element_url']."\" width=\"".$image['width']."\" height=\"".$image['height']."\" alt=\"".$image['file']."\" id=\"theMainImage\"></img>";


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#15 2016-05-31 10:49:29

WuppiGER
Member
Germany
2016-05-31
38

Re: Problem with Panorama plugin

2013? "Bug" ist still available ...

Problem is this setting: $conf['question_mark_in_urls'] = false;

If you use this SEO-URLs, you must replace in

AS_Panorama.php

$content = "<img src=\"".str_replace( "./", "", $image['path'])."\" width=\"".$image['width']."\" height=\"".$image['height']."\" alt=\"".$image['file']."\" id=\"theMainImage\"></img>";

with

$content = "<img src=\"". $image['element_url']."\" width=\"".$image['width']."\" height=\"".$image['height']."\" alt=\"".$image['file']."\" id=\"theMainImage\"></img>";

No fix from Extension-Developer?

Offline

 
  •  » Extensions
  •  » Problem with Panorama plugin

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact