Closed (duplicate)
Project:
Location
Version:
7.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2011 at 16:59 UTC
Updated:
5 Nov 2015 at 11:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
olmyr commentedsimple fix for me
Comment #2
tuwebo commentedSame issue here.
Notice that my settings are as follows:
------------------------------------------------------------
Location name: Allow
Street Location: Do not collect
Additional: Do not collect
City: Do not collect
State/Province: Do not collect | Autocomplete
Postal Code: Do not collect
Country: Allow
Coordinate Chooser: Allow
------------------------------------------------------------
Changing State/Province:
From:
Do not collect | Autocomplete
To:
Do not collect | Dropdown
Will solve the error message (wich is the expected behavior since dropdown doesn't need ajax, isn't it?), but doesn't solve the issue. This is just a work around.
Comment #3
euginewm commentedI also got this problem. Your solution helped me
Comment #4
ankur commentedFixed in 7.x-3.x. Thanks for the report.
Comment #5
tamerzg commentedNo this is not fixed, or maybe it got broken again!
Additionally its not saving any data for me.
Comment #6
matulis commentedNotice still there. Here is patch, thanks to mirgorod_a #1
Comment #7
antonyanimator commentedReceived this error also after saving a location field
Notice: Undefined index: province in _location_country_ajax_callback() (line 1149 of /home/e-smith/files/ibays/sota4/html/sites/all/modules/location/location.module).Comment #8
mxr576Me too.
Comment #9
yce commentedIt looks like, if you set the State/Province field to 'Do not collect' and widget to 'autocomplete', then after Country selection it throws the mentioned error. Try to set the widget to 'dropdown', it fixed for me.
Comment #10
jippie1948 commentedThe #9 suggestion did not work for me.
Comment #11
tuchoThe patch from #1346932-6: Notice: Undefined index: province in _location_country_ajax_callback() doesn't apply anymore.
I attach the patch for the current dev. It applies to the 7.x-3.3 version too.
Comment #12
fliwatuet commentedSetting the widget to 'dropdown' is not working for me. The above patch ist also not working for me, I am always getting this notice.
Comment #13
DrCord commentedThe patch in #11 kinda applies to the latest dev, but only part of the patch, as part of it is already implemented...only
from the end of the patch is needed.
Comment #14
DrCord commentedafter another update to the module, the change that actually works in the latest dev version (7.x-5.x-dev) to patch this is:
change
to
Comment #15
zeezhao commentedFyi - still an issue in 7.x-3.x-dev
Comment #16
jay.lee.bio commentedIt looks like this is mostly a duplicate of https://www.drupal.org/node/1997658. A recent patch provided there (#24) might work, which I haven't tried yet.
Comment #17
jay.lee.bio commentedI just tried the patch and it does work, so I'm closing this issue as duplicate.
Comment #18
rudiedirkx commented