Closed (outdated)
Project:
Location
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Sep 2013 at 12:36 UTC
Updated:
20 Jul 2016 at 11:51 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
scjv commentedI have the same error:
Comment #2
didier misson commentedHello
Same error : update with Drush 6.0
Thanks
Comment #3
LittleRedHen commentedSame error here.
The problem seems to be that the location_update_6310() function in location.install should return an array, but doesn't actually return anything. The function does execute successfully, so this can be safely ignored.
Adding
return array();as the last line of that function makes the warning messages go away.Comment #4
urlisse commentedI believe the update function should look like something closer to this:
This should avoid the syntax error as well as database injection errors... I also brutally removed a few lines which appeared to add the country code and name to an array for no reason...
I've attached a patch. Please note that I am not a maintainer of this module. Apply at your own risks.
Comment #5
urlisse commentedPlease disregard the previous patch, which was untested and had a syntax error. Here's a replacement.
Comment #5.0
urlisse commentedUpdate to delet the internal path where modules are stored.
Comment #6
legolasboClosing old D6 issues as D6 is end of life