Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.16
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Dec 2011 at 17:30 UTC
Updated:
20 Dec 2011 at 21:00 UTC
I upgrade from views 6.x-2.12 to 6.x-2.16. I cleared the cache twice. When I checked the log I have two separate errors:
Invalid argument supplied for foreach() in /var/www/health/includes/common.inc on line 927.
strtr() [function.strtr]: The second argument is not an array. in /var/www/health/includes/common.inc on line 944.
Can someone give me some ideas on how to troubleshoot. Everything worked fine before the views upgrade.
Comments
Comment #1
dawehnerMh nearly everything could have produced that. Can you reproduce that on the live site?
Comment #2
beyond67 commentedThe only change I made to the site was the upgrade in the views module. Everything was ok before.
I do not want to use this on the live site since Im not sure if there are any negative effects.
My test server is a mirror of the live site.
Any clues?
Comment #3
merlinofchaos commentedYou might try adding a dsm(debug_backtrace()) at those lines in the code to see where this is coming from. This requires some moderate PHP knowledge to do, though.
Comment #4
dawehnerMaybe place something like a backtrace() in the broken functions to see what is calling that. You know things like this are often caused by some broken custom/contrib code. If views would be the root of evil many more users would report it
Comment #5
beyond67 commentedIt seems the issue was with the Views Watchdog module. I upgraded it to the recently released version and now those errors are no longer present. So things are looking good so far. Thanks for the help!
Comment #6
dawehnerSo update status.