Closed (works as designed)
Project:
Meta tags Node Type
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Nov 2009 at 10:41 UTC
Updated:
6 Jan 2010 at 18:09 UTC
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
Comment #1
hanoiiSorry to come to this issue late, are you still experiencing this? What about with the new version?
Comment #2
tboornaz commentedI 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.
Comment #3
hanoiiCan 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.
Comment #4
aaron commentedI 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.
Comment #5
hanoiiSo 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.