Geocode Plug: Undefined variable, partial match

By Dave - January 16, 2018

Hi Rez, 

Thanks for reporting this.  Can you try changing line 142 from this: 

$isPartialMatch = @$response['results'][0]['partial_match']; 

To this:

$partialMatch = @$response['results'][0]['partial_match']; 

And let me know if that resolves the issue for you?

Dave Edis - Senior Developer
interactivetools.com

By rez - January 18, 2018 - edited: January 18, 2018

Hi Dave,

I was sidetracked by another project. I have made the change you suggested. I'm not seeing the error but the longitude and latitude still aren't being filled in when i save a new record or re-save a previous one.

The names of my 2 text fields match the geocoder.php file. 'latitude' and 'longitude'. I also have address, city, state, and zipcode text fields filled in.

These are restaurant locations. I always copy a working schema ini file from a latest working site and use it as a schemaPreset on a new site. So that preset, multi list, locations.ini.php was from CMSB v3.08 (Build 2120). I'm not sure if this is helpful. 

By Dave - January 18, 2018

Hi rez, 

Can you try setting this to true at the top of your plugin? 

$GLOBALS['GEOCODER_USE_PARTIAL_MATCHES']    = false;  

If that doesn't work, send me an email to dave@interactivetools.com with CMS/FTP login details and steps to recreate the issue and I can take a look.  Note: Don't post login details to the forum.

Thanks!

Dave Edis - Senior Developer
interactivetools.com

By rez - January 19, 2018

No luck. Email sent. Thanks!