[BUG] No coordinates generated at save

More
8 years 5 months ago - 8 years 5 months ago #30237 by tali
The documentation claims that
" Fill in these fields with your CB user address fields. Fields are not mandatory"
But this is wrong in our case.

If you do not give a field name for the State you get the following error:
Code:
Fatal Error: Cannot access empty property in components/com_comprofiler/plugin/user/plug_geommunitygeocoder/geommunitygeocoder.php on line 31
State is relevant only for certain countries and irrelevant for others.

Having already so many fields, we deleted the state field. Hence the error.

To avoid this, in this particular case, line 31 should read
Code:
if (isset($geoData->$state)) $this->state = $geoData->$state;
(and, in fact, the same for the other properties)
Last edit: 8 years 5 months ago by tali.

Please Log in or Create an account to join the conversation.

Time to create page: 0.300 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.