By jgodfrey on
I was curious about this error. This error has been showing up in our error logs. Please advise about this error and what might be causing this.
Details
Type php
Date Thursday, May 24, 2007 - 10:26
User user1
Location http://site/index.php?q=search/node/firmware
Referrer http://site/index.php?q=node/471
Message Invalid argument supplied for foreach() in D:\clients\site\modules\taxonomy\taxonomy.module on line 1305.
Severity error
Hostname IP address
Thanks in advance for your help with this.
- John -
Comments
Searching
This error appears to only show up when users are trying to perform a search on the content. We do not see the error any other time. Please reply if you can help.
Thanks again and have a great day.
Make sure your term still exists
Make sure your term still exists and is correctly pointed to from the term_node table. (Here's a hint: Site documentation module)
Nancy W.
Drupal Cookbook (for New Drupallers)
Adding Hidden Design or How To notes in your database
NancyDru
Term was never present
Hi,
Thank you for the recent posting and the hints where to look. Unfortunately, we do not use Taxonomy and it has been disabled through the life of the site. I am not for sure where else to look or how to proceed with this further.
Do you have any other ideas or suggestions? Any further help would be greatly appreciated.
Thanks again and have a great day.
- John -
Hmm...
One more person who can prove that hooks can be called in disabled modules... That's the hook_nodeapi code.
Have you made theme changes recently? It might be the $links code in the theme.
Nancy W.
Drupal Cookbook (for New Drupallers)
Adding Hidden Design or How To notes in your database
NancyDru
Solution
I was doing some more digging and it appears that initial research indicates that some of our troubles may be related to this issue.
http://drupal.org/node/132237
I have updated it and am looking at testing it further. I will post more as it becomes available. I hope this helps anyone else that is seeing this issue.
Thanks.
- John -
Still not working
After further testing with the updated theme, it appears that we are still seeing the same issue in the logs. This is also preventing the search from working for some users. When the user tries to search for something it throws an access denied message on their screen. Further, in the logs it throws the error about taxonomy. I double checked in the table for the db and there is nothing in the taxonomy node or terms table.
I am still looking for ideas if anyone has any. Please advise.
Thank you in advance for your help with this and have a great day.
- John -
Me Too
We are having the same problem, and it occurs as I programatically create nodes and attach nodes to taxonomy. I get the same error on several files.
# warning: Invalid argument supplied for foreach() in /sites/all/modules/cck/fieldgroup.module on line 395.
# warning: Invalid argument supplied for foreach() in /modules/taxonomy/taxonomy.module on line 1305.
Any help would be great.
Any Other Ideas?
Does anyone else have any more ideas or suggestions for this? Any help that could be provided would be greatly appreciated.
Thank you in advance for your help with this and have a great day.
- John -
Exactly the same error
I use taxonomy in order to use the Taxonomy Access Module. I got the erreor when i first make a research and after it is OK. I have the same problem with the clone module. Any help would be very appreciate !
Same Problem - Any resolve?
I'm using Taxonomy and a custom user profile and received this error.
I uninstalled all of the user profile information that I had updated and this error still shows on my front page and also on my user profile.
Any resolution? Ideas would be great.
Thanks.
Heather
UPDATE: I disabled the fieldgroup module under CCK in my admin section and the error went away. Only problem is, I can no longer group fields, but have a rather lengthy list of uncategorized fields under my content types.
For the record, to create the custom profile I'm using CCK 5.x-1.5, Views 5.x-1.5, Taxonomy, Panels 5.x-2.0-alpha4, Pageroute 5.x-1.0, Token 5.x-1.7, Contemplate 5.x-1.1 and Automatic Nodetitles 5.x-1.0.