First of all, I love this module but I cannot seem to get the block to work correctly. I believe that it is something wrong with the code. When I add the bookmarks block to my drupal site and then use the 'quick link' link to add a bookmark to my block I get the following errors:
warning: array_merge() [function.array-merge]: Argument #1 is not an array in ./includes/menu.inc on line 352.
warning: Cannot modify header information - headers already sent by (output started at ./includes/common.inc:384) in ./includes/common.inc on line 192.
These errors cause my page just to show a blank page with just the errors. The link does eventually get added though to the block...
The first one is printed out because the following is not set: $menu['items'][$mid]['callback arguments'] in ./includes/menu.inc. The second I found that this bit of code causes it on line 173ish in bookmarks.module:
drupal_goto("bookmarks/$user->uid");
If I comment out that line, then I can at least see my site after I add a quick link. Not entirely sure what it does though.
Please fix these errors so I can use this module. It is exactly what I need.
Thanks,
Mark
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | bookmarks_0.module | 10.08 KB | watermark |
Comments
Comment #1
watermark commentedWhelp, it took forever because I have never worked with drupal's api before now, but I got my problems solved. I don't want to go through much details so here is a diff of the attached file and the original bookmarks.module.
Cheers,
Mark
Comment #2
Steve Simms commentedI'm pretty sure this has gotten fixed somewhere along the line -- I'm not seeing the problem, in any case. If you still are in Drupal 4.7, please reopen.