picasa plugin problem?

Creating and modifying plugins.
Hotgun
Regular
Posts: 7
Joined: Fri Nov 02, 2007 8:13 pm

Post by Hotgun »

new morning, new errors.
Don't know what happend but this morning I finally received an error message.
My current problem is the path to my gallery.
If I enter the file-path (e.g /var/www/myweb/htdocs/picasa) in the plugin-config, the filenames of my gallery are being displayed in my posting. But the links to the images are wrong (e.g. htttp://www.myweb.de/var/www/myweb/htdocs/picas ... /image.jpg).
If I enter a relative path (e.g. /picasa/) in the plugin-config, I recieve the error "Picasa Plugin: Index Datei des Albums nicht gefunden".

Any Ideas? :roll:
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

I believe the plugin only works if the "picasa" directory is within the current seredindipity directory, as a subfilder like "picasa". So if your blog is on http://myblog.com/, picasa needs to be on "http:/mybloc.com/picasa", and youneed to configure "picasa/" as the directory.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Hotgun
Regular
Posts: 7
Joined: Fri Nov 02, 2007 8:13 pm

Post by Hotgun »

YES! It works.
obviously the directory can also reside in <blogdir>/uploads/picasa if you set the path in the plugin-config to "uploads/picasa" without first or trailing slashes.

Thanks for your help! :lol:
SMut
Regular
Posts: 7
Joined: Sun Jul 03, 2011 8:41 am
Location: Karlsruhe
Contact:

Re: picasa plugin problem?

Post by SMut »

I have a problem, which occours because of the automatic linking to the 'picasa' folder in the weblog, this part seems buggy to me.
I tried several types of links in the admin-section of the plugin, http://blog.tld/picasa did not work due to security restrictions, same with the absolute path like /var/www/blog/htdocs/picasa.

The working one would be:
picasa
but here is a bug in the plugin which links to the pictures like this:
http://weltenbummler.ws/archives/picasa ... c_1100.jpg
the correct link should look like this:
http://weltenbummler.ws/picasa/Venedig2 ... c_1100.jpg

Maybe someone got an idea how to get rid of this non existant folder 'archives' in the automatic link creation of the plugin.

Kind regards,
Steffen
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: picasa plugin problem?

Post by garvinhicking »

Hi!

I think you need to enter "/picasa"...?!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
SMut
Regular
Posts: 7
Joined: Sun Jul 03, 2011 8:41 am
Location: Karlsruhe
Contact:

Re: picasa plugin problem?

Post by SMut »

garvinhicking wrote: I think you need to enter "/picasa"...?!
Er - no.
Not on my system, really. If I do this, I get this message back:
Picasa Plugin: Index Datei des Albums nicht gefunden (/picasa/Venedig2011)

The problem, I found out today and complained in a PM to you about it (where you politely redirected me to this forum) is -
- in one word: mod_rewrite.

If I set the option at "Konfiguration/Design&Optionen/URL-Formung" to 'disable URL-rewriting'
everything works fine, exept the URLs are ugly, which I would like to change (with your help...)
So, the album actually works, have a peek:
http://weltenbummler.ws/
and the URLs to the pictures look like this:
http://weltenbummler.ws/picasa/Venedig2 ... c_1124.jpg
but if you wand to read the extended article (and mod_rewrite is on) the links break, because the link to the big-size pictures look like this:
http://weltenbummler.ws/archives/picasa ... c_1104.jpg
or when using an overview with categories you get a link like this:
http://weltenbummler.ws/categories/pica ... c_1112.jpg
the sourcecode in the html-file delivered by s9y looks like this:

Code: Select all

<a href="picasa/Venedig2011/images/dsc_1098.jpg"onClick="window.open('picasa/Venedig2011/images/dsc_1098.jpg', 'picasa', 'height=449, width=660, resizable=no, scrollbars=no, toolbar=no, status=no, menubar=no, location=no');"target="picasa"><img border="0" src="picasa/Venedig2011/thumbnails/dsc_1098.jpg" height="64" width="90" alt="dsc_1098.jpg"></a>
with mod_rewrite ON

Code: Select all

<a href="picasa/Venedig2011/images/dsc_1098.jpg"onClick="window.open('picasa/Venedig2011/images/dsc_1098.jpg', 'picasa', 'height=449, width=660, resizable=no, scrollbars=no, toolbar=no, status=no, menubar=no, location=no');"target="picasa"><img border="0" src="picasa/Venedig2011/thumbnails/dsc_1098.jpg" height="64" width="90" alt="dsc_1098.jpg"></a>
with mod_rewrite OFF
to me, those links look absolutely the same, but the browser 'thinks' of beeing somewhere else...

What I really need is a mod_rewrite rule that maps to the picasa folder where it really and always is:
in doc_root of the homepage. If the urls would have an '/' before the beginning everything would be fine...

Kind regards and thanks for your help,
Steffen
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: picasa plugin problem?

Post by garvinhicking »

Hi!

Hm, it seems that the actual path/image links come straight out of your picasa album file. This one only contains "picasa". Can you make picasa write "/picasa" into that file there? This would fix the issue.

Adjusting the rewriteRule is actually not a solution. The solution is to either fixup the plugin to insert a hardcoded prefix to the path (which would IMHO fix the symptom at a wrong place), or (better) to fixup the picasa generated file so that it actually contains a path "relative" to the server's root directory, so that it can be included/referred to from any domain.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Riipa
Regular
Posts: 6
Joined: Thu Sep 16, 2010 12:43 pm

Re: picasa plugin problem?

Post by Riipa »

Hi,

My problem with this plugin is, that each time I export an album the second last picture is displayed twice instead of displaying each pic.

My blog

XML from one of the albums.

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<album>
<albumItemCount>10</albumItemCount>
<images>
<image>
<isFirstImage>true</isFirstImage>
<isPrevImage>false</isPrevImage>
<isLastImage>false</isLastImage>
<isNextImage>true</isNextImage>
<firstImage>DSC_0348.JPG</firstImage>
<itemLargeImage>DSC_0348.JPG</itemLargeImage>
<nextImage>DSC_0354.JPG</nextImage>
<nextThumbnail>DSC_0354.thumb.JPG</nextThumbnail>
<prevImage></prevImage>
<prevThumbnail></prevThumbnail>
<lastImage>DSC_0641.JPG</lastImage>
<lastThumbnail>DSC_0641.thumb.JPG</lastThumbnail>
<itemWidth>1024</itemWidth>
<itemHeight>686</itemHeight>
<itemThumbnailImage>DSC_0348.thumb.JPG</itemThumbnailImage>
<itemThumbnailWidth>110</itemThumbnailWidth>
<itemThumbnailHeight>74</itemThumbnailHeight>
<itemName>DSC_0348.JPG</itemName>
<itemNumber>0</itemNumber>
<itemOriginalPath></itemOriginalPath>
<itemNameOnly></itemNameOnly>
<itemCaption>DSC_0348.JPG</itemCaption>
<itemSize></itemSize>
</image>
<image>
<isFirstImage>false</isFirstImage>
<isPrevImage>true</isPrevImage>
<isLastImage>false</isLastImage>
<isNextImage>true</isNextImage>
<firstImage>DSC_0348.JPG</firstImage>
<itemLargeImage>DSC_0354.JPG</itemLargeImage>
<nextImage>DSC_0361.JPG</nextImage>
<nextThumbnail>DSC_0361.thumb.JPG</nextThumbnail>
<prevImage>DSC_0348.JPG</prevImage>
<prevThumbnail>DSC_0348.thumb.JPG</prevThumbnail>
<lastImage>DSC_0641.JPG</lastImage>
<lastThumbnail>DSC_0641.thumb.JPG</lastThumbnail>
<itemWidth>1024</itemWidth>
<itemHeight>686</itemHeight>
<itemThumbnailImage>DSC_0354.thumb.JPG</itemThumbnailImage>
<itemThumbnailWidth>110</itemThumbnailWidth>
<itemThumbnailHeight>74</itemThumbnailHeight>
<itemName>DSC_0354.JPG</itemName>
<itemNumber>1</itemNumber>
<itemOriginalPath></itemOriginalPath>
<itemNameOnly></itemNameOnly>
<itemCaption>DSC_0354.JPG</itemCaption>
<itemSize></itemSize>
</image>
<image>
<isFirstImage>false</isFirstImage>
<isPrevImage>true</isPrevImage>
<isLastImage>false</isLastImage>
<isNextImage>true</isNextImage>
<firstImage>DSC_0348.JPG</firstImage>
<itemLargeImage>DSC_0361.JPG</itemLargeImage>
<nextImage>DSC_0381.JPG</nextImage>
<nextThumbnail>DSC_0381.thumb.JPG</nextThumbnail>
<prevImage>DSC_0354.JPG</prevImage>
<prevThumbnail>DSC_0354.thumb.JPG</prevThumbnail>
<lastImage>DSC_0641.JPG</lastImage>
<lastThumbnail>DSC_0641.thumb.JPG</lastThumbnail>
<itemWidth>686</itemWidth>
<itemHeight>1024</itemHeight>
<itemThumbnailImage>DSC_0361.thumb.JPG</itemThumbnailImage>
<itemThumbnailWidth>74</itemThumbnailWidth>
<itemThumbnailHeight>110</itemThumbnailHeight>
<itemName>DSC_0361.JPG</itemName>
<itemNumber>2</itemNumber>
<itemOriginalPath></itemOriginalPath>
<itemNameOnly></itemNameOnly>
<itemCaption>DSC_0361.JPG</itemCaption>
<itemSize></itemSize>
</image>
<image>
<isFirstImage>false</isFirstImage>
<isPrevImage>true</isPrevImage>
<isLastImage>false</isLastImage>
<isNextImage>true</isNextImage>
<firstImage>DSC_0348.JPG</firstImage>
<itemLargeImage>DSC_0381.JPG</itemLargeImage>
<nextImage>DSC_0382.JPG</nextImage>
<nextThumbnail>DSC_0382.thumb.JPG</nextThumbnail>
<prevImage>DSC_0361.JPG</prevImage>
<prevThumbnail>DSC_0361.thumb.JPG</prevThumbnail>
<lastImage>DSC_0641.JPG</lastImage>
<lastThumbnail>DSC_0641.thumb.JPG</lastThumbnail>
<itemWidth>686</itemWidth>
<itemHeight>1024</itemHeight>
<itemThumbnailImage>DSC_0381.thumb.JPG</itemThumbnailImage>
<itemThumbnailWidth>74</itemThumbnailWidth>
<itemThumbnailHeight>110</itemThumbnailHeight>
<itemName>DSC_0381.JPG</itemName>
<itemNumber>3</itemNumber>
<itemOriginalPath></itemOriginalPath>
<itemNameOnly></itemNameOnly>
<itemCaption>DSC_0381.JPG</itemCaption>
<itemSize></itemSize>
</image>
<image>
<isFirstImage>false</isFirstImage>
<isPrevImage>true</isPrevImage>
<isLastImage>false</isLastImage>
<isNextImage>true</isNextImage>
<firstImage>DSC_0348.JPG</firstImage>
<itemLargeImage>DSC_0382.JPG</itemLargeImage>
<nextImage>DSC_0397.JPG</nextImage>
<nextThumbnail>DSC_0397.thumb.JPG</nextThumbnail>
<prevImage>DSC_0381.JPG</prevImage>
<prevThumbnail>DSC_0381.thumb.JPG</prevThumbnail>
<lastImage>DSC_0641.JPG</lastImage>
<lastThumbnail>DSC_0641.thumb.JPG</lastThumbnail>
<itemWidth>1024</itemWidth>
<itemHeight>686</itemHeight>
<itemThumbnailImage>DSC_0382.thumb.JPG</itemThumbnailImage>
<itemThumbnailWidth>110</itemThumbnailWidth>
<itemThumbnailHeight>74</itemThumbnailHeight>
<itemName>DSC_0382.JPG</itemName>
<itemNumber>4</itemNumber>
<itemOriginalPath></itemOriginalPath>
<itemNameOnly></itemNameOnly>
<itemCaption>DSC_0382.JPG</itemCaption>
<itemSize></itemSize>
</image>
<image>
<isFirstImage>false</isFirstImage>
<isPrevImage>true</isPrevImage>
<isLastImage>false</isLastImage>
<isNextImage>true</isNextImage>
<firstImage>DSC_0348.JPG</firstImage>
<itemLargeImage>DSC_0397.JPG</itemLargeImage>
<nextImage>DSC_0407.JPG</nextImage>
<nextThumbnail>DSC_0407.thumb.JPG</nextThumbnail>
<prevImage>DSC_0382.JPG</prevImage>
<prevThumbnail>DSC_0382.thumb.JPG</prevThumbnail>
<lastImage>DSC_0641.JPG</lastImage>
<lastThumbnail>DSC_0641.thumb.JPG</lastThumbnail>
<itemWidth>1024</itemWidth>
<itemHeight>669</itemHeight>
<itemThumbnailImage>DSC_0397.thumb.JPG</itemThumbnailImage>
<itemThumbnailWidth>110</itemThumbnailWidth>
<itemThumbnailHeight>72</itemThumbnailHeight>
<itemName>DSC_0397.JPG</itemName>
<itemNumber>5</itemNumber>
<itemOriginalPath></itemOriginalPath>
<itemNameOnly></itemNameOnly>
<itemCaption>DSC_0397.JPG</itemCaption>
<itemSize></itemSize>
</image>
<image>
<isFirstImage>false</isFirstImage>
<isPrevImage>true</isPrevImage>
<isLastImage>false</isLastImage>
<isNextImage>true</isNextImage>
<firstImage>DSC_0348.JPG</firstImage>
<itemLargeImage>DSC_0407.JPG</itemLargeImage>
<nextImage>DSC_0415.JPG</nextImage>
<nextThumbnail>DSC_0415.thumb.JPG</nextThumbnail>
<prevImage>DSC_0397.JPG</prevImage>
<prevThumbnail>DSC_0397.thumb.JPG</prevThumbnail>
<lastImage>DSC_0641.JPG</lastImage>
<lastThumbnail>DSC_0641.thumb.JPG</lastThumbnail>
<itemWidth>1024</itemWidth>
<itemHeight>686</itemHeight>
<itemThumbnailImage>DSC_0407.thumb.JPG</itemThumbnailImage>
<itemThumbnailWidth>110</itemThumbnailWidth>
<itemThumbnailHeight>74</itemThumbnailHeight>
<itemName>DSC_0407.JPG</itemName>
<itemNumber>6</itemNumber>
<itemOriginalPath></itemOriginalPath>
<itemNameOnly></itemNameOnly>
<itemCaption>DSC_0407.JPG</itemCaption>
<itemSize></itemSize>
</image>
<image>
<isFirstImage>false</isFirstImage>
<isPrevImage>true</isPrevImage>
<isLastImage>false</isLastImage>
<isNextImage>true</isNextImage>
<firstImage>DSC_0348.JPG</firstImage>
<itemLargeImage>DSC_0415.JPG</itemLargeImage>
<nextImage>DSC_0447.JPG</nextImage>
<nextThumbnail>DSC_0447.thumb.JPG</nextThumbnail>
<prevImage>DSC_0407.JPG</prevImage>
<prevThumbnail>DSC_0407.thumb.JPG</prevThumbnail>
<lastImage>DSC_0641.JPG</lastImage>
<lastThumbnail>DSC_0641.thumb.JPG</lastThumbnail>
<itemWidth>1024</itemWidth>
<itemHeight>686</itemHeight>
<itemThumbnailImage>DSC_0415.thumb.JPG</itemThumbnailImage>
<itemThumbnailWidth>110</itemThumbnailWidth>
<itemThumbnailHeight>74</itemThumbnailHeight>
<itemName>DSC_0415.JPG</itemName>
<itemNumber>7</itemNumber>
<itemOriginalPath></itemOriginalPath>
<itemNameOnly></itemNameOnly>
<itemCaption>DSC_0415.JPG</itemCaption>
<itemSize></itemSize>
</image>
<image>
<isFirstImage>false</isFirstImage>
<isPrevImage>true</isPrevImage>
<isLastImage>false</isLastImage>
<isNextImage>true</isNextImage>
<firstImage>DSC_0348.JPG</firstImage>
<itemLargeImage>DSC_0447.JPG</itemLargeImage>
<nextImage>DSC_0641.JPG</nextImage>
<nextThumbnail>DSC_0641.thumb.JPG</nextThumbnail>
<prevImage>DSC_0415.JPG</prevImage>
<prevThumbnail>DSC_0415.thumb.JPG</prevThumbnail>
<lastImage>DSC_0641.JPG</lastImage>
<lastThumbnail>DSC_0641.thumb.JPG</lastThumbnail>
<itemWidth>1024</itemWidth>
<itemHeight>686</itemHeight>
<itemThumbnailImage>DSC_0447.thumb.JPG</itemThumbnailImage>
<itemThumbnailWidth>110</itemThumbnailWidth>
<itemThumbnailHeight>74</itemThumbnailHeight>
<itemName>DSC_0447.JPG</itemName>
<itemNumber>8</itemNumber>
<itemOriginalPath></itemOriginalPath>
<itemNameOnly></itemNameOnly>
<itemCaption>DSC_0447.JPG</itemCaption>
<itemSize></itemSize>
</image>
<image>
<isFirstImage>false</isFirstImage>
<isPrevImage>true</isPrevImage>
<isLastImage>true</isLastImage>
<isNextImage>false</isNextImage>
<firstImage>DSC_0348.JPG</firstImage>
<itemLargeImage>DSC_0641.JPG</itemLargeImage>
<nextImage></nextImage>
<nextThumbnail></nextThumbnail>
<prevImage>DSC_0447.JPG</prevImage>
<prevThumbnail>DSC_0447.thumb.JPG</prevThumbnail>
<lastImage>DSC_0641.JPG</lastImage>
<lastThumbnail>DSC_0641.thumb.JPG</lastThumbnail>
<itemWidth>1024</itemWidth>
<itemHeight>686</itemHeight>
<itemThumbnailImage>DSC_0641.thumb.JPG</itemThumbnailImage>
<itemThumbnailWidth>110</itemThumbnailWidth>
<itemThumbnailHeight>74</itemThumbnailHeight>
<itemName>DSC_0641.JPG</itemName>
<itemNumber>9</itemNumber>
<itemOriginalPath></itemOriginalPath>
<itemNameOnly></itemNameOnly>
<itemCaption>DSC_0641.JPG</itemCaption>
<itemSize></itemSize>
</image>
</images>
</album>
Your help would be very much appreciated!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: picasa plugin problem?

Post by garvinhicking »

Hi!

Hm, that's odd. It might be related to ome XML parsing error. Could you add some code so that we could check that?

In serendipity_event_picasa.php in the function picasa_album() at line 460 you should see:

Code: Select all

$xmlData = $xh->xmlParse($album);
change that to:

Code: Select all

$xmlData = $xh->xmlParse($album);
return print_r($xmlData, true);
this should reveal a array structure of the parsed XML on your blog, and please copy/paste that here. If the second to last image is contained twice there, we'll further need to investigate why it's happening; if the image is not in there twice, there's some other place where its misbehaving.

Do you have in the config of the plugin turned on Smarty parsing? That uses a different code for the output, so you might want to try to use the other option than the one currently enabled. Especially, if you use smarty parsing, your template could "screw up" on the iteration.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Riipa
Regular
Posts: 6
Joined: Thu Sep 16, 2010 12:43 pm

Re: picasa plugin problem?

Post by Riipa »

Hi Garvin,

Here's what the array structure looked like after inserting the code:

Code: Select all

Array ( [albumItemCount] => 10 [images] => Array ( [0] => Array ( [isFirstImage] => true [isPrevImage] => false [isLastImage] => false [isNextImage] => true [firstImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0348.JPG [itemLargeImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0348.JPG [nextImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0354.JPG [nextThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0354.thumb.JPG [prevImage] => ./Bilder/Picasauploads/nurburg2011/ [prevThumbnail] => ./Bilder/Picasauploads/nurburg2011/ [lastImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0641.JPG [lastThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0641.thumb.JPG [itemWidth] => 1024 [itemHeight] => 686 [itemThumbnailImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0348.thumb.JPG [itemThumbnailWidth] => 110 [itemThumbnailHeight] => 74 [itemName] => DSC_0348.JPG [itemNumber] => 0 [itemOriginalPath] => [itemNameOnly] => [itemCaption] => DSC_0348.JPG [itemSize] => ) [1] => Array ( [isFirstImage] => false [isPrevImage] => true [isLastImage] => false [isNextImage] => true [firstImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0348.JPG [itemLargeImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0354.JPG [nextImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0361.JPG [nextThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0361.thumb.JPG [prevImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0348.JPG [prevThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0348.thumb.JPG [lastImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0641.JPG [lastThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0641.thumb.JPG [itemWidth] => 1024 [itemHeight] => 686 [itemThumbnailImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0354.thumb.JPG [itemThumbnailWidth] => 110 [itemThumbnailHeight] => 74 [itemName] => DSC_0354.JPG [itemNumber] => 1 [itemOriginalPath] => [itemNameOnly] => [itemCaption] => DSC_0354.JPG [itemSize] => ) [2] => Array ( [isFirstImage] => false [isPrevImage] => true [isLastImage] => false [isNextImage] => true [firstImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0348.JPG [itemLargeImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0361.JPG [nextImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0381.JPG [nextThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0381.thumb.JPG [prevImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0354.JPG [prevThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0354.thumb.JPG [lastImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0641.JPG [lastThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0641.thumb.JPG [itemWidth] => 686 [itemHeight] => 1024 [itemThumbnailImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0361.thumb.JPG [itemThumbnailWidth] => 74 [itemThumbnailHeight] => 110 [itemName] => DSC_0361.JPG [itemNumber] => 2 [itemOriginalPath] => [itemNameOnly] => [itemCaption] => DSC_0361.JPG [itemSize] => ) [3] => Array ( [isFirstImage] => false [isPrevImage] => true [isLastImage] => false [isNextImage] => true [firstImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0348.JPG [itemLargeImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0381.JPG [nextImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0382.JPG [nextThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0382.thumb.JPG [prevImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0361.JPG [prevThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0361.thumb.JPG [lastImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0641.JPG [lastThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0641.thumb.JPG [itemWidth] => 686 [itemHeight] => 1024 [itemThumbnailImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0381.thumb.JPG [itemThumbnailWidth] => 74 [itemThumbnailHeight] => 110 [itemName] => DSC_0381.JPG [itemNumber] => 3 [itemOriginalPath] => [itemNameOnly] => [itemCaption] => DSC_0381.JPG [itemSize] => ) [4] => Array ( [isFirstImage] => false [isPrevImage] => true [isLastImage] => false [isNextImage] => true [firstImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0348.JPG [itemLargeImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0382.JPG [nextImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0397.JPG [nextThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0397.thumb.JPG [prevImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0381.JPG [prevThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0381.thumb.JPG [lastImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0641.JPG [lastThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0641.thumb.JPG [itemWidth] => 1024 [itemHeight] => 686 [itemThumbnailImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0382.thumb.JPG [itemThumbnailWidth] => 110 [itemThumbnailHeight] => 74 [itemName] => DSC_0382.JPG [itemNumber] => 4 [itemOriginalPath] => [itemNameOnly] => [itemCaption] => DSC_0382.JPG [itemSize] => ) [5] => Array ( [isFirstImage] => false [isPrevImage] => true [isLastImage] => false [isNextImage] => true [firstImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0348.JPG [itemLargeImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0397.JPG [nextImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0407.JPG [nextThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0407.thumb.JPG [prevImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0382.JPG [prevThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0382.thumb.JPG [lastImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0641.JPG [lastThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0641.thumb.JPG [itemWidth] => 1024 [itemHeight] => 669 [itemThumbnailImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0397.thumb.JPG [itemThumbnailWidth] => 110 [itemThumbnailHeight] => 72 [itemName] => DSC_0397.JPG [itemNumber] => 5 [itemOriginalPath] => [itemNameOnly] => [itemCaption] => DSC_0397.JPG [itemSize] => ) [6] => Array ( [isFirstImage] => false [isPrevImage] => true [isLastImage] => false [isNextImage] => true [firstImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0348.JPG [itemLargeImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0407.JPG [nextImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0415.JPG [nextThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0415.thumb.JPG [prevImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0397.JPG [prevThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0397.thumb.JPG [lastImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0641.JPG [lastThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0641.thumb.JPG [itemWidth] => 1024 [itemHeight] => 686 [itemThumbnailImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0407.thumb.JPG [itemThumbnailWidth] => 110 [itemThumbnailHeight] => 74 [itemName] => DSC_0407.JPG [itemNumber] => 6 [itemOriginalPath] => [itemNameOnly] => [itemCaption] => DSC_0407.JPG [itemSize] => ) [7] => Array ( [isFirstImage] => false [isPrevImage] => true [isLastImage] => false [isNextImage] => true [firstImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0348.JPG [itemLargeImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0415.JPG [nextImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0447.JPG [nextThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0447.thumb.JPG [prevImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0407.JPG [prevThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0407.thumb.JPG [lastImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0641.JPG [lastThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0641.thumb.JPG [itemWidth] => 1024 [itemHeight] => 686 [itemThumbnailImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0415.thumb.JPG [itemThumbnailWidth] => 110 [itemThumbnailHeight] => 74 [itemName] => DSC_0415.JPG [itemNumber] => 7 [itemOriginalPath] => [itemNameOnly] => [itemCaption] => DSC_0415.JPG [itemSize] => ) [8] => Array ( [isFirstImage] => false [isPrevImage] => true [isLastImage] => false [isNextImage] => true [firstImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0348.JPG [itemLargeImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0447.JPG [nextImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0641.JPG [nextThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0641.thumb.JPG [prevImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0415.JPG [prevThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0415.thumb.JPG [lastImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0641.JPG [lastThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0641.thumb.JPG [itemWidth] => 1024 [itemHeight] => 686 [itemThumbnailImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0447.thumb.JPG [itemThumbnailWidth] => 110 [itemThumbnailHeight] => 74 [itemName] => DSC_0447.JPG [itemNumber] => 8 [itemOriginalPath] => [itemNameOnly] => [itemCaption] => DSC_0447.JPG [itemSize] => ) [9] => Array ( [isFirstImage] => false [isPrevImage] => true [isLastImage] => true [isNextImage] => false [firstImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0348.JPG [itemLargeImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0641.JPG [nextImage] => ./Bilder/Picasauploads/nurburg2011/ [nextThumbnail] => ./Bilder/Picasauploads/nurburg2011/ [prevImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0447.JPG [prevThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0447.thumb.JPG [lastImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0641.JPG [lastThumbnail] => ./Bilder/Picasauploads/nurburg2011/DSC_0641.thumb.JPG [itemWidth] => 1024 [itemHeight] => 686 [itemThumbnailImage] => ./Bilder/Picasauploads/nurburg2011/DSC_0641.thumb.JPG [itemThumbnailWidth] => 110 [itemThumbnailHeight] => 74 [itemName] => DSC_0641.JPG [itemNumber] => 9 [itemOriginalPath] => [itemNameOnly] => [itemCaption] => DSC_0641.JPG [itemSize] => ) ) [album] => ) 
Smarty use off, tried to switch on and this worked as a workaround for me (template is "noalbumtitle" if that is of any importance), thanks for your suggestion Garvin!

Best,

matti.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: picasa plugin problem?

Post by garvinhicking »

Hi!

Maybe you could instead replace it with:

Code: Select all

$xmlData = $xh->xmlParse($album);
return '<pre>' . print_r($xmlData, true) . '</pre>;
This would allow me to actually read the output *g*

Good to know that it's the non-smarty parsing branch of the code that's misbehaving. The only offender I can possibly see is this, just a few lines down:

Code: Select all

        foreach($xmlData['images'] as &$ii) {
             $ii['itemCaption'] = htmlspecialchars($ii['itemCaption'], ENT_QUOTES, false);
        }
could you try to replace that with:

Code: Select all

        foreach($xmlData['images'] as $ikey => $ivalue) {
             $xmlData['images'][$ikey]['itemCaption'] = htmlspecialchars($ivalue['itemCaption'], ENT_QUOTES, false);
        }
and see if that makes a change?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Riipa
Regular
Posts: 6
Joined: Thu Sep 16, 2010 12:43 pm

Re: picasa plugin problem?

Post by Riipa »

Hi Garvin,

There is possibly an error in the ode part that should make the output readable. I get an "Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING on line 466" when using that lines.

I also tried the code change and it worked for me. All pictures are shown. :)

Again, thanks for your help, highly appreciated!

Best,

matti.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: picasa plugin problem?

Post by garvinhicking »

Hi!

Great to hear that! Then I've committed the change. Hope you have fun using serendipity :)
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply