Yo,

great modules but after clearing the cache, there's an error:

warning: Invalid argument supplied for foreach() in /sites/all/modules/content_complete/content_complete.module on line 522.

Could you fix that?

Yannick

Comments

rhymeswithcamera’s picture

I am getting the same error as Yannick. Also getting the same error for line 537.

jerryitt’s picture

Hi
I am getting the exact same error as stated above when i try to import a content type.

Anybody have any ideas as to whats going on here?

w a r n i n g : I n v a l i d
a r g u m e n t s u p p l i e d
f o r f o r e a c h ( )
i n / s i t e s / a l l /
m o d u l e s /
c o n t e n t _ c o m p l e t e /
c o n t e n t _ c o m p l e t e . m o d u l e
o n l i n e 5 2 2.

w a r n i n g : I n v a l i d
a r g u m e n t s u p p l i e d
f o r f o r e a c h ( )
i n / s i t e s / a l l /
m o d u l e s /
c o n t e n t _ c o m p l e t e /
c o n t e n t _ c o m p l e t e . m o d u l e
o n l i n e 5 37...

pvhee’s picture

Status: Active » Fixed

I've added a check to see if these fields exist, I was expecting them to be there always: $type['extra'] should contain title, body and $type['fields'] should contain the CCK fields attached to the node. The code is committed to CVS, please reopen the issue if that doesn't solve it.

http://drupal.org/cvs?commit=433494

pvhee’s picture

Status: Fixed » Closed (fixed)