Hi could please anyone help me?
I´m working with drupal 6 and wanted to install those modules
cck-6.x-2.1.tar.gz
Filefield-6.x-1.0-beta2.tar
Jq-6.x-1.0.tar
Jquery_media-6.x-1.2.tar

But the response is a failer called:

warning: Invalid argument supplied for foreach() in ...\cck\includes\views\content.views.inc on line 139.

The named line is:

function content_views_data() {
$data = array();

foreach (content_fields() as $field) {

$module = $field['module'];
$result = module_invoke($module, 'field_settings', 'views data', $field);
if (empty($result)) {
$result = content_views_field_views_data($field);

I don´t know how to handle this..
Could please anyone help me?

Thanks a lot!

Telea

Comments

yched’s picture

Maybe try cleaning your caches ?
(admin/settings/performance, 'Clear cached data' at the bottom of the page)

telea’s picture

Thanks for the tip, I tryed it, but it just didn´t work....
:(
Are there any other tips ?

lillywolf’s picture

I am also having this issue. It's been persistent - even after upgrading from D6.4 to 6.9 and reinstalling the most recent version of CCK for Drupal 6.

It's preventing me from using CCk at all.

lillywolf’s picture

Try running the database update script. (http://site.com/update.php)

For some reason, this wasn't showing as an option on my 'updates' page, so it took a fresh install and porting of databases to figure out it existed. But it fixed my problem.

kenorb’s picture

Got this error by using crumbs module:

Warning: Invalid argument supplied for foreach() in nodereference_class_CrumbsParentFinder::construct() (line 16 of crumbs/plugins/crumbs.nodereference.inc).

after enabling the module.

Code:

    foreach (content_fields() as $key => $info) {
      if ($info['type'] == 'nodereference' && $info['multiple'] == 0) {
        $result[$key] = new self($key, $info);
      }
    }

I don't know why.

kenorb’s picture

The same here:

Warning: Invalid argument supplied for foreach() in content_views_data() (line 141 of contrib/cck/includes/views/content.views.inc).

Code:

function content_views_data() {
  $data = array();
  foreach (content_fields() as $field) {
kenorb’s picture

Assigned: telea » Unassigned
Issue summary: View changes
Status: Active » Closed (outdated)

Drupal 6 is no longer officially supported. If you think this issue is still relevant for 8.x, feel free to re-open.