By fuzzycasserole on
After creating some custom content types for my site, it now displays the following error at the top of the Content Types page: "warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/drupal/sites/all/modules/cck/content.module on line 178."
Anyone know what this means? How would I go about fixing this?
Thanks!
Comments
Are you sure it says line
Are you sure it says line 178? I looked in my currently-downloaded version of the content module and line 178 doesn't have a foreach statement...
Open the file content.module, look at line 178. Maybe paste it here with the commands before and after it so I can help. It is tere you can see what it's looking for. Often when this error comes up, it's because the first argument in the foreach statement isn't an array. You can then trace the problem back to what ever is causing the problem.
I just got this exact same
I just got this exact same error. Doing the exact same steps.
Is what I've got in the content.module for line 178 and after...
You're going to have to
You're going to have to specify which version of Drupal/CCK you're using, and if there's a bug it might be more appropriate to search for prior reports and/or post your report in the CCK issue tracker.
----------------------
Drupal by Wombats | Current Drupal project: http://www.ubercart.org