Closed (fixed)
Project:
Bookmarks
Version:
4.6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Mar 2006 at 17:57 UTC
Updated:
2 Aug 2006 at 15:09 UTC
Every time I try to save an edit to an existing bookmark, I get the following error:
warning: array_merge() [function.array-merge]: Argument #1 is not an array in C:\Inetpub\wwwroot\includes\menu.inc on line 351.
System:
Win2000 SP4
Apache/2.0.48 (Win32)
PHP/5.0.0
MySQL 4.0.13
bookmarks.module dated 02/02/2006 (downloaded 3/24/2006)
Comments
Comment #1
agentrickardThis is a known PHP5 issue and has been filed previously. http://drupal.org/node/43543
The fix is to add 'callback arguments' to the menu function. Since this is currently blank, PHP5 (which is VERY strict on arrays) gives your error.
Code is below, pending review:
Comment #2
Steve Simms commentedHi,
I just took over maintainership of this module, and am going through all the open issues.
I don't have PHP5, so I can't reproduce this. However, this doesn't seem to be a bookmarks bug to me. The documentation says that callback arguments are "an array of arguments to pass to the callback function", which the module doesn't use, so we shouldn't have to specify it, unless I'm missing something (quite possible -- please enlighten me if so).
Are you still getting the problem with the latest version of Drupal? If so, and if you do think that this is a bookmarks bug, please reopen and give more details.
Thanks,
Steve Simms