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

bcobin’s picture

Status: Active » Closed (fixed)

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!

skt’s picture

Version: 6.x-1.9 » 6.x-1.12
Priority: Normal » Critical
Status: Closed (fixed) » Active

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!

skt’s picture

Category: support » bug
Priority: Critical » Normal

I got this working. The workaround was to recreate the photoset in Flickr.

aaron’s picture

Status: Active » Postponed (maintainer needs more info)

try with the latest dev release, please.

shaneonabike’s picture

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.

darkodev’s picture

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 ...
steinmb’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

2-3 year old. Going to close this. Pls. reopen this issue if it is not fixed and still a issue.