10 replies [Last post]
bhallnc's picture
Offline
Joined: 03/23/2009
Juice: 81
Was this information Helpful?

I just added a new product class, and once I added my first product with that product class I got the following:

-When I go to edit screen it is white

-No product images are not showing

-Error message stating: warning: Invalid argument supplied for foreach() in /var/www/vhosts/withthisfavor.com/httpdocs/sites/all/modules/cck/includes/content.admin.inc on line 604.

Please help, I appreciate it!

Brian

victoria_b's picture
Offline
Joined: 03/28/2009
Juice: 30
Error Message: Invalid argument supplied for foreach()

The error message "Invalid argument supplied for foreach() in website/sites/all/modules/cck/includes/content.admin.inc on line 604" appears when I try to edit the Display Fields in a Product Class.

Doesn't seem to be breaking any content as when the node is viewed all the information is present.

When a change is made a second "Invalid argument supplied for foreach() in website/sites/all/modules/cck/includes/content.admin.inc on line 604" error message appears.

Any ideas or help aapreciated.

Thank you.

Victoria

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: Error Message: Invalid argument supplied for foreach()

Drupal 5 or Drupal 6? Are there any other CCK modules you are using that might cause this? I have a D5 and D6 site setup with Product Classes and haven't seen this happen.

--
Help directly fund development: Donate via PayPal!

victoria_b's picture
Offline
Joined: 03/28/2009
Juice: 30
Drupal Modules

Hi,

I'm running Drupal V6.10. 3rd Party CCK modules are:

Content Taxonmy
Email
Filefield
Image Crop
Image Field
Location

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: Drupal Modules

The latest Imagefield requires ImageAPI - I would first make sure you have the latest versions of them.

Also, you might try disabling - one at a time - the Location and Image Crop modules. They might be interfering with the way CCK is trying to show your images.

--
Help directly fund development: Donate via PayPal!

victoria_b's picture
Offline
Joined: 03/28/2009
Juice: 30
Thank you. Will take the

Thank you.

Will take the above onboard!

Victoria

victoria_b's picture
Offline
Joined: 03/28/2009
Juice: 30
Update

Rolled back my site to yesterday's build where the above error isn't showing. This version uses the the last but one versions of ImageApi / ImageField and doesn't use Location. Image Crop is working fine.

I then create my first Product Class and then proceed to click Display Fields and the error appears. On further checking this same error also appears when I go into Product and click Display Fields.

Sad

victoria_b's picture
Offline
Joined: 03/28/2009
Juice: 30
Also...

Took onboard your advice about updating the ImageApi and ImageField modules. Did so on a rolled back version then created a Product Class. Same error appeared!

victoria_b's picture
Offline
Joined: 03/28/2009
Juice: 30
Possible Error

Seems my error might be linked to this: http://drupal.org/node/402860 as my image widget types don't display anything.

kalanit's picture
Offline
Joined: 04/11/2009
Juice: 2
chiming in

me too.
i'm at a loss. going to wipe my dev site and start over.

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: chiming in

Consider using the latest beta6 of Ubercart, as they hopefully have resolved the issues with Images... although if there are other Image Display widgets that have issues or conflicts, the problem isn't an Ubercart problem and you should consider posting at the module's page on Drupal.org instead. Smiling

--
Help directly fund development: Donate via PayPal!