Can someone please tell me how to correct this cac_lite error? I get it in every site I've put up with the category module. Drupal 4.7. I Disabled taxonomy and taxonomy_access in one site, and still get the error. Thanks!

warning: Invalid argument supplied for foreach() in /var/www/html/drupal/includes/form.inc on line 641

-ron

Comments

venkat-rk’s picture

Try disabling cac_lite module itself and see if you still get the error. You won't solve it by disabling taxonomy or tac.

splash112’s picture

Hi Ron,

You probably shouldn't have disabled Taxonomy module, but wrap it. Try to enable it and use the wrappers in admin / settings / category.

Please try if this helps.

Dave Cohen’s picture

What makes you think its a cac_lite error?

venkat-rk’s picture

Exactly.

somebodysysop’s picture

I get this error from admin>>access_control>>cac_lite>>settings page. If something else could cause it, I'd appreciate any help in how I would go about troubleshooting. Right now, I'm just lost.

warning: Invalid argument supplied for foreach() in /var/www/html/drupal/includes/form.inc on line 641

I enabled, activated and wrapped taxonomy_access (and book, for that matter). I get the same error.

If I disable cac_lite and then re-enable it, I get the same error.

If it helps, the modules currently enabled are:

basicevent
blog
blogapi
book
cac_lite
category
category_bulkedit
category_display
category_export
category_legacy
category_menu
category_outliner
category_transform
category_views
comment
event
eventrepeat
filter
help
menu
node
og
og_basic
page
story
system
taxonomy
taxonomy_access
user
views
views_ui
watchdog

Thanks for any advice!

Dave Cohen’s picture

Have you created any categories? While cac_lite should not cause this error under any circumstances, I believe if you create one or more categories the problem will go away for you. And when I say "categories" I mean a Category module category, not a Taxonomy module category.

Try creating a category called "Privacy", then return to the cac_lite page and see if it looks right. Select the Privacy category and submit. Then add terms like "public" and "private" to that category.

-Dave

Drupal_’s picture

I was also getting that error. Once you create a containter/category.. that error goes aways.

somebodysysop’s picture

I created a container, and the error went away. Thanks so much to all of you!