I added some fields to my audio content type, and when I try creating an audio node, I get this error:

warning: Cannot use a scalar value as an array in /mysite/modules/cck/content.module on line 587.

Not sure if this is an Audio or CCK module issue.

Comments

tj2653’s picture

I've isolated the field that's causing the problem. It's a single on/off CCK checkbox. Once I remove that from the Audio content type, I don't get the error when I add a new audio node or edit one. I use the same single on/off CCK checkbox in a different content type, but don't have any problems with the other content type.

mike.hobo’s picture

how very relevant.....

I am using Audio module with the single on/off CCK checkbox and have the exact same problem.

ferrangil’s picture

Me too.
I have 3 single on/off checkbox and the warning came up when I create a node.
The node is created and the file is playable and all works fine...
Any solution? Removing the fields is NOT a solution...

ferrangil’s picture

I had 4 Single on/off checkbox, just working great on other nodes, and I could remove 3 of them (they are not too important) from the Audio node type, but still have one that is mandatory.
I'm still getting an ugly

    * warning: Cannot use a scalar value as an array in /var/www/vhosts/lynxeds.com/subdomains/ibc/httpdocs/sites/all/modules/cck/content.module on line 621.
    * warning: Cannot use a scalar value as an array in /var/www/vhosts/lynxeds.com/subdomains/ibc/httpdocs/sites/all/modules/cck/content.module on line 622.

but at least it's only 2 lines (not 8!).
Any idea for solving that? I also tested checking the fields. It works, and when you come back to Edit they are checked in there too.

Jurjen de Vries’s picture

I have the same warning, but not with the audio module, but with the mollom module. So, the question is, is this an audio and/or mollom issue, or a CCK module issue?

ferrangil’s picture

Any progress on this?? Not from my side...