Posted by bcobin on March 13, 2011 at 5:58pm
5 followers
Jump to:
| Project: | Media: Flickr |
| Version: | 6.x-1.12 |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Issue Summary
I'm getting the following error message - I have this working on several other sites, but I can't get it to work here - any ideas? Is there a patch I forgot to apply or something? Thanks!
Fatal error: Cannot use string offset as an array in [site]/sites/all/modules/media_flickr/media_flickr.module on line 327
Comments
#1
Answered my own question - I don't know exactly what it was but creating an icon in Flickr, choosing a name, re-entering the API key and secret and clearing the cache seems to have done the trick.
Setting this to "fixed," but perhaps this will help somebody else.
Thanks for this fantastic module!
#2
I have been getting this error, and each time, much of the data for the node is also lost. I have tried generating & entering a fresh Flickr API key and secret, creating an icon in Flickr, and clearing the cache.
Stranger still, it's working for another node with another photoset. When I enter the URL for that photoset in the node that's giving me problems, it also works. So perhaps it's something to do with the photoset in Flickr?
I had inadvertently forgotten to make this set public at first, then subsequently changed it. Could that be the source of the problem?
Thank you!
#3
I got this working. The workaround was to recreate the photoset in Flickr.
#4
try with the latest dev release, please.
#5
Really strange. I flushed the cache and created a new set and things seemed to work again. i would note that my API wasn't created before I tried to create a node using this tool.
#6
Had this error when our client entered url for empty photo set, which cleared up once they populated it. A bunch of other fields went away as a result, so node revisions saved us.
In 6.x-1.12 we solved it by checking for array $photoset['photoset']['photo'] before looping.
media_flickr.module line 327
if (is_array($photoset['photoset']['photo'])) {
foreach ...