Unlisted Picasa Gallery is not displayed

maynardsmith - February 3, 2009 - 16:38
Project:Brilliant Gallery
Version:6.x-3.4
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Issue tags:Novice
Description

I have installed version 6.x-3.0 of brilliant-gallery, and it is indeed very neat. I got the gallery to show with no trouble using the FTP upload method, just following the instructions.

However I can't get the Picasa method to work at all.
-- I have created a Picasa web album, and can see the RSS feed OK by pasting the link into my browser, which works.
-- I put this into the [bg|...] tag as described.
-- I have an Input Format with only the bg filter enabled, so nothing else should be interfering with it.
-- The page when displayed contains absolutely nothing where the bg tag was.

Is there some action I have to take to get it to upload the images from picassa?

Any other ideas on what to try?

Thanks, Tony.

#1

maynardsmith - February 6, 2009 - 20:29

I have found the immediate problem -- BG checks for http://picasaweb.google.com/ to identify a Picasa feed, and I have .co.uk.

Please change this test (brilliant_gallery.module line 523) so it picks up any valid URL.

-----

Now I just have to find why it fails to Get my URL correctly.

Tony

PS - Sorry for the duplicate post - not sure what happened there.

#2

maynardsmith - February 7, 2009 - 11:44
Category:support request» bug report

Two further comments:

1. As stated in the documentation, the Picasa album must be Public. Unfortunately, if one first tries to access the album while it is private, then changes it to Public, there is a problem. B_G creates its cache directory the first time, but can't fetch the pictures, so subsequent attempts just look in the cache, don't find anything, and carry on.

Perhaps if the cache directory is empty it should always go and try again. But this still won't fix the problem of synchronisation if the Picasa album contents are changed (which the documentation says will happen).

2. Line 23 of picasa.inc is exec('mkdir '.$mkdirek);. This does not work, and generates file open errors on each image. Replace with mkdir($mkdirek); which does work (at least on two systems I have tried it on).

Regards, Tony

#3

maynardsmith - February 7, 2009 - 11:46
Component:Miscellaneous» Code

#4

kwas - February 8, 2009 - 21:51

NOT work width 'http://picasaweb.google.com/.......'

#5

vacilando - February 10, 2009 - 18:33

Thanks, maynardsmith -- your point about differnet google TLDs is very valid, as is your point on exec.

I'll try to get to this asap, but there's so little time. I would most appreciate a patch. If you make one, alert me via my contact page and I'll apply it very quickly. Thanks.

#6

vacilando - February 10, 2009 - 19:07
Priority:normal» critical

#7

seangee - February 10, 2009 - 20:02

I had similar issues. Tried the suggestions above to no avail. The culprit was that I did not have the php curl lib installed. Now that I have installed this it works really well

#8

maynardsmith - February 19, 2009 - 14:59

I also had the curl lib problem, but sorted that.

Re. patches - I don't have the means to create formal patches, but the code change for #2 is as above.

For #1 I just shortened the test, so that Line 523 is if (substr($thisfolder,0,24) == 'http://picasaweb.google.') {

Regards, Tony

#9

nutkenz - February 22, 2009 - 14:15

I'm having a similar problem but CURL is enabled and I'm getting these errors:

warning: fopen(C:\Program Files\xampp\tmp/bg_picasa_9fdc0c891deec51c93d2a9cda254afe7/dsc02587.jpg) [function.fopen]: failed to open stream: No such file or directory in D:\Webs\Drupal 6\sites\all\modules\brilliant_gallery\picasa.inc on line 62.
warning: fwrite(): supplied argument is not a valid stream resource in D:\Webs\Drupal 6\sites\all\modules\brilliant_gallery\picasa.inc on line 64.
warning: fclose(): supplied argument is not a valid stream resource in D:\Webs\Drupal 6\sites\all\modules\brilliant_gallery\picasa.inc on line 65.

I'm using the sample gallery tag: [bg|http://picasaweb.google.com/data/feed/base/user/tjfulopp/albumid/5290148828710951169?alt=rss&kind=photo&hl=en_US]

#10

maynardsmith - February 24, 2009 - 16:40

As a non-expert in this module, it seems to be trying to use a temporary directory within your C:\Program Files. This does not look like a good idea. I think you need to set up a temporary directory within the website, and point at that.

Regards, Tony.

#11

bubbletea - March 6, 2009 - 05:05

Hi guys,

I'm no programmer and still a noob with Drupal. I've applied the suggestions / recommendations that have been said on this thread except for the php curl lib, which seems to be the only last hope I have to get the Picasa RSS link working with BG. If php curl lib will solve my problem displaying Picasa pics on BG, how do you install it?

#12

vacilando - July 3, 2009 - 15:45
Status:active» fixed

Hello everybody -- thanks for the feedback.

Just published version 3.1 which:
* uses mkdir() as suggested by @maynardsmith (seems to work fine but may need testing on various systems)
* fixes the problem of http://picasaweb.google.com/ vs http://picasaweb.google.co.uk/ and other variants
* replaces the need for cURL by using Drupal's standard fetcher drupal_http_request

Enjoy!

#13

System Message - July 17, 2009 - 15:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

#14

der_sensemann - September 3, 2009 - 20:01
Version:6.x-3.0» 6.x-3.4
Status:closed» needs work

hello,

it seems i've got the same (or a pretty similar) problem, but with version 3.4:

if i'm embedding the sample gallery [bg|http://picasaweb.google.com/data/feed/base/user/tjfulopp/albumid/5290148828710951169?alt=rss&kind=photo&hl=en_US] it works, but if i'm embedding my gallery [bg|http://picasaweb.google.de/data/feed/base/user/stamm371/albumid/5377333193659305969?alt=rss&kind=photo&authkey=Gv1sRgCK2HvOP_pJCGcg&hl=de] nothing is display.

It also won't change when i access it via picasaweb.google.com, nor when changing the album to public accessible.

do you have any idea where the difference might be?

johannes

#15

debru - October 7, 2009 - 20:47
Title:Can't get Picasa Images» Unlisted Picasa Gallery is not displayed
Component:Code» Miscellaneous
Priority:critical» normal
Status:needs work» active

I find the same problem with Brilliant Gallery 3.4! The sample gallery can be displayed and so can my galleries if I set the to PUBLIC. But my unlisted galleries are not shown. Since Tomas stated, that it should actually be possible, I am eager to find a solution. Since I'm not a programmer, I will need some support!

Thanks so much in advance!

#16

debru - October 9, 2009 - 02:20

Ok, since I'm still in the exploring phase and have lots to learn I reinstalled everything to make sure I haven't messed up anything in the prior installation - no luck. I'm really desperate for some advice here because I want to use THIS gallery it has everything I need - if I would get it working!

Help is really appreciated! Cheers folks

 
 

Drupal is a registered trademark of Dries Buytaert.