warning: array_merge() [function.array-merge]: Argument #1 is not an array in /Web/cybertrib.com/..../includes/menu.inc on line 349.

(I am using PHP 5 :)

CommentFileSizeAuthor
#4 comment_16.patch828 byteskilles@www.drop.org
#2 menu.inc_2.patch596 bytestownxelliot
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

townxelliot’s picture

Title: array-merge() error thrown » array-merge() error thrown (issue when rolling back node revisions)
FileSize
596 bytes

As far as I can tell, this bug is still not fixed in the latest (as of today) CVS version. I've attached a patch for it (diff -Nur, as I couldn't work out what the preferred patch format for Drupal is). I found the error occurred when running under PHP 5 and attempting to rollback to a previous revision of a node.

Dries’s picture

I think we can avoid having to do the array_merge() in this case. Would be nice if you could a slightly cleaner solution. It might be possible.

killes@www.drop.org’s picture

Component: menu system » comment.module
Assigned: Unassigned » killes@www.drop.org
Status: Needs review » Reviewed & tested by the community
FileSize
828 bytes

this is a bug somewhere else. A menu entry defines callback arguments that are not wrapped in an array. Either a contrib module or comment module. Patch attached.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks.

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Status: Fixed » Closed (fixed)