Closed (fixed)
Project:
Field Slideshow
Version:
7.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Jan 2011 at 02:05 UTC
Updated:
15 Feb 2011 at 19:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
Jackinloadup commented2 line patch. Please review
Comment #2
jdanthinne commentedThanks.
Committed to dev.
Comment #3
Jackinloadup commentedIn the patch I provided in #1 I included a fix to convert the $items that come from Media into arrays like Core. Now Media is in the process of changing its $items from objects to arrays.
#1005642: $items[$delta] is sometimes an object when Field API requires array. Causes WSOD when previewing multi-valued media field.
When this issue above is closed the patch provided should be applied to get rid of the antiquated code.
Comment #4
jdanthinne commentedOk, committed to dev.
Comment #5
Jackinloadup commentedComment #6
nfavrod commentedHi,
I've got the follwind message when I try to add a new node with a multimedia asset field:
Fatal error: Cannot use object of type stdClass as array in /var/www/foo/sites/all/modules/field_slideshow/field_slideshow.module on line 195
I just installed the media module, plus the patch: http://drupal.org/node/1015580#comment-3987098
(Sorry to re-open this topic)
Comment #7
jdanthinne commentedWas it happening without the patch?
Media is still under beta as well, so every time they change something, it can break compatibility…
Comment #8
Jackinloadup commentedThe patch in #3 needs to be reverted until the issue I listed is closed.
#1005642: $items[$delta] is sometimes an object when Field API requires array. Causes WSOD when previewing multi-valued media field.
Comment #9
jdanthinne commentedReverted to DEV.