Warning: array_key_exists(): The second argument should be either an array or an object in /home/mypath/includes/module.inc on line 89

This is a warning message I get with a fresh install (no upgrade), when I look at the "home" page. What could be the reason?

CommentFileSizeAuthor
#1 module_1.patch366 byteskilles@www.drop.org
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

killes@www.drop.org’s picture

Assigned: Unassigned » killes@www.drop.org
Category: support » bug
FileSize
366 bytes

A small glitch, nothing serious. Here is a patch.

stephenhendry’s picture

How exactly wouild you apply the patch?

Dries’s picture

Committed to DRUPAL-4-5. Assuming you are using Linux, this patch can be applied using: patch -p0 < module_1.patch.

Dries’s picture

stephenhendry’s picture

And if we cant get to a command line what could we do?

ñull’s picture

I did it manually. The syntax of the patch file is not that difficult to understand.

Anonymous’s picture

Anonymous’s picture

The syntax of the patch is exactly the same as what is already there in mudule.inc (the location of my error. See below...)

Warning: array_key_exists(): The second argument should be either an array or an object in /home/karlrhoa/public_html/includes/module.inc on line 89

I manually put it in and still get this error message. Additionally, I also get the following error message(s)...

Warning: Cannot modify header information - headers already sent by (output started at /home/karlrhoa/public_html/includes/module.inc:256) in /home/karlrhoa/public_html/includes/bootstrap.inc on line 258

Warning: Cannot modify header information - headers already sent by (output started at /home/karlrhoa/public_html/includes/module.inc:256) in /home/karlrhoa/public_html/includes/bootstrap.inc on line 259

Warning: Cannot modify header information - headers already sent by (output started at /home/karlrhoa/public_html/includes/module.inc:256) in /home/karlrhoa/public_html/includes/bootstrap.inc on line 275

kdr22’s picture

I'm sorry, I forgot to log in before I replied...

I'm using v4.5.1 and the error is in module.inc. I applied the patch, but as I mentioned in my "anonymous" reply, the patch matches what is aready there - so manually applying the patch was of no use, as I still get the same errror message. Any other fixes, suggestions?

Warning: array_key_exists(): The second argument should be either an array or an object in /home/karlrhoa/public_html/includes/module.inc on line 89

Warning: array_key_exists(): The second argument should be either an array or an object in /home/karlrhoa/public_html/includes/module.inc on line 89

Warning: array_key_exists(): The second argument should be either an array or an object in /home/karlrhoa/public_html/includes/module.inc on line 89

Warning: array_key_exists(): The second argument should be either an array or an object in /home/karlrhoa/public_html/includes/module.inc on line 89

Warning: array_key_exists(): The second argument should be either an array or an object in /home/karlrhoa/public_html/includes/module.inc on line 89

Warning: Cannot modify header information - headers already sent by (output started at /home/karlrhoa/public_html/includes/module.inc:256) in /home/karlrhoa/public_html/includes/bootstrap.inc on line 258

Warning: Cannot modify header information - headers already sent by (output started at /home/karlrhoa/public_html/includes/module.inc:256) in /home/karlrhoa/public_html/includes/bootstrap.inc on line 259

Warning: Cannot modify header information - headers already sent by (output started at /home/karlrhoa/public_html/includes/module.inc:256) in /home/karlrhoa/public_html/includes/bootstrap.inc on line 275