Fatal error: Unsupported operand types in /*****/*****/sites/all/modules/emfield/contrib/emaudio/emaudio.module on line 23

module disabled
upon confirming uninstall under the uninstall tab I am presented with the error above

Comments

socialnicheguru’s picture

I get a similar error

Fatal error: Unsupported operand types in /sites/all/modules/emfield/contrib/emaudio/emaudio.module on line 388

when I am installing the fusion charts module. there is a confirmed name space problem with one of the include files there. I am wondering if there is something going on with the emaudio module too?

pixelpreview@gmail.com’s picture

yes same problem for me

emaudio\emaudio.module on line 388 ...

the embedded media field breaks my site ! I must delete this module physicaly via ftp !!! ... If I don't do that, I have a white screen of death with my site !

drupal 6.9
emfield laste version

wrburgess’s picture

subscribing, same problem

oweno’s picture

what version Drupal ?
trying to reproduce, using 6.10. seems to uninstall cleanly, but few other modules are enabled.

chrissearle’s picture

I see the same error for all of Embedded Audio Field, Embedded Video Field and Embedded Image Field (Embedded Media Field uninstalled cleanly).

Drupal 6.10

I can leave the module files in place (just not enabled) - so if there is any testing you'd like me to try - let me know.

alex ua’s picture

Status: Active » Closed (fixed)

This seems to have been fixed- I can't reproduce.

kmonty’s picture

Status: Closed (fixed) » Active

This is occurring for me still.

jdwfly’s picture

Nope this is not fixed.

Line 23

$items += module_invoke('emfield', 'provider_menus', 'emaudio');

I am not quite sure but I am pretty sure you can't use the += assignment operator with arrays. It needs to be

$items[] = module_invoke('emfield', 'provider_menus', 'emaudio');

I found this when I was uninstalling the module.

Edit
I changed it to the brackets and I was able to uninstall fine.

Carlos Miranda Levy’s picture

Problem remains, manual fix on #8 has to be implemented. Edit emaudio.module manually in the meantime.

DavidWhite’s picture

Subscribe. Problem remains in newest version of module, 6.x-1.2. I'll try out the manual fix on #8 over the weekend, and if it works, build a patch for the community's use.

aaron’s picture

Status: Active » Fixed

Thanks; changed emfield to use array_merge and rewrote the various hook_menus to do this properly.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.