Closed (fixed)
Project:
Flickr
Version:
7.x-1.1
Component:
flickr_block
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
15 Sep 2013 at 19:00 UTC
Updated:
28 Jun 2014 at 14:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
kinmen commentedHi.
I think that error is due to missing value vor variable media in the old flickr blocks. In the old Flickr module media didn't exist, and now, after the update, the module looks for it in the API code inserted in teh pages. Is that correct? It could be maybe solved by assigning a default value 'photos' when the variable is empty, or there's a better solution...
k.
Comment #2
lolandese commentedGood guess. I am struggling with the connection here. Once back online I'll have a look.
As a temporary workaround, can you recreate the block?
Thanks.
Comment #3
lolandese commentedHi kinmen,
Thanks for reporting. I replicated an upgrade with the block 'Recent photos' being configured and rendered. I confirm the issue.
It is easily fixed by re-saving the block settings. The error message disappears. This is the advice for others running into the same issue.
Leaving this issue active as it is not solved but has an easy fix. Furthermore I have added a note on the project page.
Thanks again.
Comment #4
kinmen commentedHi
Thank you for the fix, I confirm it works for me.
Thank you for your time & work
Kinmen
Comment #5
lolandese commentedMoving this to 'Task' as the module itself works as intended and the upgrade issue has an easy 'work-around' fix.
Comment #6
lolandese commentedIn preparation for a 7.x-1.6 release. Patch makes an upgrade from 7.x-1.0 to 7.x-1.x going smooth for all blocks. No more undefined index errors.
To test for a 7.x-1.5 to 7.x-1.x upgrade.
Comment #7
lolandese commentedPatch also aims to solve #2283179: PHP Fatal error: Cannot access empty property in /modules/field/field.attach.inc on line 324.
Comment #9
lolandese commentedSeparated the two issues as they are unrelated. The upgrade script seems to correctly create missing index keys on the block variable arrays.
http://cgit.drupalcode.org/flickr/commit/?id=93135bb
Comment #10
lolandese commentedAs the upgrade script touches indexes on block variables, it should live in the install file of the Flickr Block module instead of the main module.
Furthermore made the block descriptions in the admin UI a bit more logical.
Comment #11
lolandese commentedAlso the creation of the vocabulary flickr_tags could be included in the upgrade. Furthermore avoiding undefined index for 'gallery' and some other minor UX improvements.
Off topic:
While testing the upgrade we bumped into this apparently and hopefully temporary Flickr API bug:
https://www.flickr.com/groups/api/discuss/72157645030438164/#
It impacts user blocks and filter tags with Flickr tags. The temporary workaround is to set the filter to 'relevant' which seems to make it work "as normal".