I'm getting a "warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /home/public_html/includes/common.inc on line 1667." message using the newest gmap 5.x-1.dev release. Gmap worked find before this version. We're running in php 5. Any ideas?
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | gmap_2.patch | 657 bytes | webchick |
| #4 | gmap_1.patch | 876 bytes | webchick |
Comments
Comment #1
poolplayr commentedSame problem as well!
Comment #2
fm commentedme too!
Comment #3
webchickSame. I've narrowed it down to the following line:
If you comment that out, it works, but I assume that line is necessary for something. ;)
Comment #4
webchickI *think* this fixes it?
Comment #5
bdragon commentedDOH! I see what we're getting at here.
OK, the problem was that there are no options for the unmanaged case. For some reason, my site doesn't complain about this and just sends NULL.
So, I should do an empty() check and use array() instead in this case... That should work.
Comment #6
bdragon commentedOK, committed a workaround to use array() for a case where there are no settings.
Also fixed a bug that was causing location chooser to not work, but that's another bug.
Please test the next snapshot.
Thanks!
Comment #7
webchickThat did fix the error on my install, however now there is another error when you very first go to the GMap settings page (to reproduce, click the "Reset to defaults" button):
As soon as you save the form, it goes away.
This seems to fix it.
Comment #8
bdragon commentedOK. Committed.
Comment #9
webchickWorks for me!
Comment #10
(not verified) commented