I encounter this problem on any node whenever CKEditor is not used, e.g. when I logged in and go to the /register link. It shows this warning:
warning: Invalid argument supplied for foreach() in ckeditor.module line 998
I search for a solution and found a workaround.
I changed line 997;
if (!empty($menuitem['page_arguments'])) {
into
if (is_array($menuitem['page_arguments'])) {
that seems to remove the problem, I don't know if this have side effects to CKEditor in nodes I allowed to show.
It shows both in my FF and Google Chrome browsers (I'm not using IE)
Comments
Comment #1
jeeba commentedI have the same message when assigning permissions to User Roles. Gonna test your solution and see what happens
Comment #2
jeeba commentedWell it's seems to fix the error.
Comment #3
wwalc commentedIt's strange because actually it should always be an array according to http://api.drupal.org/api/function/menu_get_item/6
Anyway, I have committed it to CVS, double checking shouldn't cause any harm there:
thanks!