I'm trying to use a cck field to display a chart. I have it in a node with multiple other cck fields and am trying to display a simple 2D Column Chart. However, when I save the node I receive the errors below and a 'No Data to Display' message where the chart should be.

Please let me know if you need any more info.

* warning: Invalid argument supplied for foreach() in /home/veggie/public_html/sites/all/modules/fusioncharts/fusioncharts_cck/fusioncharts_cck.module on line 140.
* warning: Invalid argument supplied for foreach() in /home/veggie/public_html/sites/all/modules/fusioncharts/fusioncharts_cck/fusioncharts_cck.module on line 145.
* warning: Invalid argument supplied for foreach() in /home/veggie/public_html/sites/all/modules/fusioncharts/fusioncharts.module on line 252.

Comments

pinchg’s picture

I am on drupal 6.13 and have a similar issue - I get the chart displayed fine, however I get the error

warning: Invalid argument supplied for foreach() in /var/www/michaelpinch/modules/fusioncharts/fusioncharts_cck/fusioncharts_cck.module on line 145.

Thanks for the help

Poieo’s picture

I had something wrong with my setup. I can now view the charts just fine. But, as in comment #1 I still receive the error when I save the node.

danharper’s picture

I also have this error only when saving the node.

guigui_nyc’s picture

I still have the same issue: when I save the node, I get the error msg related to fusioncharts.module on line 252.
no value is saved in the CCK fields. Any clue?
thanks!

cvhicks’s picture

Same issue here (line 252) when trying to include more than one chart in a new content type. First one works fine, the others have no data, and get this error for each chart after the first.

cvhicks’s picture

Was able to do a workaround. There's a unique index on table 'fusionchart_cck_node_field' on the 'vid' field. When the fields are inserted into this table, the nid and vid values appear to be the same, so all fields after the first are rejected due to this unique constraint. Dropped the 'vid' index, and all is well. Obviously this will need to be fixed in the php code that creates the table. There's also a primary key (nid_vid) on nid+vid+field_name which is not an issue.

Zemo’s picture

First i must say sorry for my bad english.
I don't understand how to fix the error. I become only the error in the code line fusioncharts_cck.module on line 145.
Can someone help me to fix this?

Zemo’s picture

I have found the line 145 error. The colorpicker Modul must also be installed and activated.