Cannot use a scalar value as an array

tj2653 - January 7, 2008 - 01:40
Project:Audio
Version:5.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

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.

#1

tj2653 - January 7, 2008 - 02:03

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.

#2

mike.hobo - March 14, 2008 - 05:09

how very relevant.....

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

#3

ferrangil - February 6, 2009 - 13:06

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...

#4

ferrangil - February 11, 2009 - 15:58

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.

#5

Jurjen de Vries - June 28, 2009 - 22:17

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?

#6

ferrangil - September 9, 2009 - 08:17

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

 
 

Drupal is a registered trademark of Dries Buytaert.