Closed (fixed)
Project:
Location
Version:
5.x-3.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Dec 2008 at 21:53 UTC
Updated:
17 Mar 2009 at 22:30 UTC
I upgraded today and get the following error when trying to create a node which references a location:
warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/bnewsome/public_html/modules/location/location.module on line 1385.
Interestingly this does not occur on another node type which also has a location.
Thoughts?
Comments
Comment #1
jdm843 commentedI'm having the same problem (above mentioned warning) with 5.x-3.0 running Drupal 5.14. It exists in all nodes in which I'm using location. When I try to change a location the address updates but the lat/long coordinates do not recalculate and are blank. I used the "delete" box to clear the previous location before inputting the new one. Clearing cache...reinstalling module have no effect.
Comment #2
nnn commentedI got the same problem. Then I opened the edit page for the content type that uses location, and re-submit the content type setting. After that, when I opened the edit page of the nodes of that content type, I saw no more of this error message.
Comment #3
yhzsailor commentedI found a solution at http://drupal.org/node/36408
As a result of this hint, I modified location.module line 1387 (at least that's the line in my modified location.module) to read something like this (extra lines for the complete function listed for context.)
The only change is the addition of (array) before each parameter in the call to array_merge on line 1387. That got rid of the error message and I'm presuming that this has fixed the issue and it is not silently failing.
Comment #4
mherchelSame issue with 5.x-3.0 & Drupal 5.14.
Making yhzsailor's changes fixed the issue for me.
Thanks Yhzsailor!
Comment #5
pmark23 commentedI suddenly started having these same problems, but the above patch worked.
Comment #6
bdragon commentedFixed this yesterday. It was attempting to blindly merge in form elements that had been tacked on.
Thanks for the report!
http://drupal.org/cvs?commit=163493
http://drupal.org/cvs?commit=163494
Comment #8
bdragon commentedMarking as master and changing to fixed again for visibility.
Comment #9
bdragon commentedDuplicates marked.
#356806: Fatal error and white screen of death. Location will not accept entry of location data
#362911: warning: array_merge() [function.array-merge]: Argument #1
#381498: Argument #1 is not an array... location.module on line 1409.