When I enable Meta Tag Node Type, on my site, and go to edit a content type I receive the following warning:

warning: Invalid argument supplied for foreach() in /usr/local/pem/vhosts/202834/webspace/httpdocs/mysite.com/includes/form.inc on line 1205.

When I disable the module and go into editing a content type the warning goes away.

Any ideas on how I can resolve this issue?

Comments

hanoii’s picture

Sorry to come to this issue late, are you still experiencing this? What about with the new version?

tboornaz’s picture

I installed the new version and ran the update script. I still get the error when I go to edit a content type. I, again, had to uninstall the module in order to prevent the error from displaying. Apparently the new version has not fixed the error.

hanoii’s picture

Can you try the following?

Go to the content type edit screen in which you get the warning, and, press the save settings button (no need to change anything) and see if that fixes the warning. I believe that some configuration variable might be holding an incorrect type of value from some older version (just wild guessing here).

If this doesn't work, you may want to try selecting some robots from the checkbox, saving them, and then unselected, but this should be in the same line as the previous suggestion which I hope it'll work.

aaron’s picture

I had the same problem, and saving the node type edit screen worked for me. Updated from DRUPAL-6--1-1 to DRUPAL-6--1-6.

hanoii’s picture

Status: Active » Closed (works as designed)

So this seems to be some kind of conflict with an old variable type saved to the variables table instead of the new one expected. As explained above, re-saving the config on the content type edit page appears to fix the problem.

There's not a particular thing to fix in the code.