Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, I tried to install the Node Locations and got this error:
Notice: Undefined index: province in template_preprocess_location() (line 1590 of
/public_html/sites/all/modules/location/location.module)
I've literally just run the updates for the Location module, so the versions should be the latest.
I've also checked the version of the location.module file; v 1.284.
I've uninstalled all location modules and slowly reinstall one module at a time and this error message only came about right after I've installed the Node Locations module.
Any pointers? Thanks!
Comments
Comment #1
alladdin CreditAttribution: alladdin commentedI applied manually a patch from here - http://drupal.org/node/931526?mode=2&sort=2
And this error has gone
Comment #2
ccheu CreditAttribution: ccheu commentedAlladdin, thanks very much for the information. But isn't this patch for 6.x-3.x-dev? I'm on version 7.x-4.x-dev. Can this patch be applied?
Comment #3
alladdin CreditAttribution: alladdin commentedyou should add it manually (search for lines and replace them). I can send you new module file if you need.
Comment #4
macman91 CreditAttribution: macman91 commentedHi
I am new to drupal and have this problem.
How do you patch a module or is it possible to download a patched module?
Any help would be much appreciated.
Thanks.
Comment #5
rooby CreditAttribution: rooby commentedMarked #1036926: Undefined index: province_name in template_preprocess_location as a duplicate of this issue.
Comment #6
rooby CreditAttribution: rooby commentedActually I fixed this in all versions the other day for another issue.
Marking this as a duplicate of #931526: Notice: Undefined index: province in template_preprocess_location() .
Comment #7
ccheu CreditAttribution: ccheu commentedRoger that, Rooby. Thanks!