Topic-icon [BUG] No coordinates generated at save

  • tali
  • tali's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
29 Oct 2015 22:16 - 30 Oct 2015 08:02 #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:
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
if (isset($geoData->$state)) $this->state = $geoData->$state;
(and, in fact, the same for the other properties)
Last edit: 30 Oct 2015 08:02 by tali.

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

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.
Copyright © 2021 Nordmograph - Joomla extensions. All Rights Reserved.
Joomla! is Free Software released under the GNU General Public License.
Browser of the future