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

jeeba’s picture

I have the same message when assigning permissions to User Roles. Gonna test your solution and see what happens

jeeba’s picture

Well it's seems to fix the error.

wwalc’s picture

Status: Needs review » Fixed

It'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:

if (!empty($menuitem['page_arguments']) && is_array($menuitem['page_arguments'])) {

thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.