Closed (fixed)
Project:
Node Gallery
Version:
7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Jul 2013 at 15:51 UTC
Updated:
28 Oct 2013 at 19:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
clipps commentedI encountered the same issue on the manage page and also on the upload new item tab.
Comment #2
llehotsky commentedSame issue here. Appears also in beta-3 release.
I am relatively newbie to Drupal, so correct me if I'm wrong. Solved by putting
file_view((object) $file, 'node_gallery_api_admin_thumbnail')fromdrupal_render(file_view((object) $file, 'node_gallery_api_admin_thumbnail'));into separate variable and only then rendering it, as suggested in the original post.Hence code on line 59 of theme.inc changed from
to
Same principle applies to row 232, with the exception that variable has to be outside of array.
Comment #3
zero2one commentedI created a patch that fixes the strict warnings.
Comment #4
zengenuity commentedLooks good. Committed. http://drupalcode.org/project/node_gallery.git/commit/c8b8697
Thanks for the patch!
Comment #5.0
(not verified) commentedUpdate to mention same error in theme_node_gallery_api_manage_items_form()