I'm getting Fatal error: Cannot use string offset as an array in /home/bodhi/dr/sites/all/modules/emfield/contrib/emthumb/emthumb.module on line 522

whenever i try to create an emvideo node.

using embedded media thumbnail and embedded video field

I tried using the latest dev but everything seemed to break using it.

Comments

oxford-dev’s picture

the line in question is:

if ($item['data']['emthumb']['filepath'])

The contents of data is a serialized object but still essentially a string at this point so you are trying to pull object variables out of a string which it dosnt like.

Event if I comment this out it still occurs elsewhere such as youtube.inc line 592

alex ua’s picture

Version: 6.x-1.9 » 6.x-2.0
Status: Active » Postponed (maintainer needs more info)

Can you try this with version 2.0 of the module and let me know if you still have a problem? Also, please make sure you specify the file path for thumbs in the field settings for the content type.