Jump to:
| Project: | Picasa |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hi,
First thanks to the author for this module, I'm looking for a long time now for a simple, easy to use image gallery management, and a Picasa integration is probably the best solution for that.
However I can't make this module work, I installed all modules provided by this package, registered and filled the Google Ajax API key under admin/settings/picasa and created a web album with some photos.
Now, when I want to add an album in my drupal website, I click on add content > Picasa Album. I'm redirected on a google page that require an access validation, I click authorize button.
Then I'm redirected to the node creation page with a first "Authentication with Google has failed. Please try again." (don't know why, I followed all step with the API key...) No matter, I try to continue and click to "Import an existing Picasa album". I'm redirected to another google page that require access, I click authorize and, when I'm redirected again to the drupal node creation form I get a message :
* Authentication with Google has failed. Please try again.
* You have no Picasa Albums available for import.
* Authentication with Google has failed. Please try again.
And, below that, a php error
<?php
warning: Invalid argument supplied for foreach() in sitesallmodulespicasapicasa_albumpicasa_album.module on line 97.
?>Did I do something wrong ? Can somebody help me to configure it ?
Thanks
zmove
Comments
#1
I'm getting a similar error and I'm not sure why. I got a new API key and saved it in the module settings, so I am not getting the authentication errors you are, but I do get the
error, as well as a
warning: Invalid argument supplied for foreach() in /root/sites/all/modules/picasa/picasa_album/picasa_album.module on line 97.I know this is a dev release, but I feel like I am overlooking something. Any advice is greatly appreciated.
#2
Matt can you give me a few more details: What version of php and os are you running? What is your picasa username (I want to see the public albums your trying to import)?
#3
Thanks for the quick follow up!
I'm running PHP Version 5.2.6 on an Xserve (Apple OS X server).
The gallery is here: http://picasaweb.google.com/balloonfiesta08 and it is public.
#4
{
warning: Invalid argument supplied for foreach() in sitesallmodulespicasapicasa_albumpicasa_album.module on line 97.
}
I did get the same message after I accidently removed my site from authorized sites in my google account. I had to delete my browsing history in my browser to get it working again.
I hope this will help someone with the same issue.
BTW great module. The only thing I am now looking into is how to get not the full size photo, but a resized from picasa (like the s800) when clicking on a photo in the album, so it will fit better on my page layout and to make it faster.
Maurice
#5
I'm sorry, but I don't understand what this means. Are you talking about the API keys, or is there some sort of preference pane in picasaweb that I am not seeing?
#6
Sorry if I wasn't clear, when you first access the picasa api by adding ie an album, you will get a popup from google that you can allow your site to access your google account. These sites will be listed under your google account. Log into google and look at My account --> Security --> Change authorized websites
It should be under change password and Change security question. If the link isn't there, you will have not allowed any sites to access your google account (picasa pages). It seems there is also not an easy direct link from google to restore this. The only time you can add a site to the authorized pages is when google asks you too. Well I accidently removed my site from authorized sites, but before I got another popup from google to ask me if I should add my site again, I had to clear my history and cookies of my browser.
This has nothing todo with the api keys. So if you want to access a picasa album from an account that you don't own, you will have to ask permission of the owner to add your site to his authorized sites. I think this is a very good thing.
Maurice
#7
Thank you for explaining, Maurice! I see now that my site isn't listed as authorized, which must be the root of the problem. I will try clearing cookies to see if I can get the pop-up again.
#8
I am trying to use this module. But everytime I try to get a photo or an album my request is denied because my site isn't allowed access.
When I try go to: My account --> Security --> Change authorized websites, I don't find the 'Change authorized websites' link. Even the Google help file staes this link should be available.
Coockies cannot be the problem: I did try it with a browser I never used to access picasa.
Does anyone know where to define which site(s) can access my albums?