Hello,
The coordinates of the initial registration informations (address) are submitted correctly.
But once they have to be updated, the user gets 255.000000 255.000000 coordinates.
It seems that no $data is processed over here:
models/profile
public function updateLocationData($userid)
{
$usermodel = CFactory::getModel('user');
$user = CFactory::getUser($userid);
// Build the address string
$address = CMapsHelper::getAddress($userid);
// Store the location
$data = CMapping::getAddressData($address);
// reset it to null;
$latitude = COMMUNITY_LOCATION_NULL;
$longitude = COMMUNITY_LOCATION_NULL;
if($data){
if($data->status == 'OK')
{
$latitude = $data->results[0]->geometry->location->lat;
$longitude = $data->results[0]->geometry->location->lng;
}
}else{
}
$usermodel->storeLocation($user->id, $latitude, $longitude);
return $this;
}
Hi, Steve.
Thank you for contacting us.
I assign developer to investigate this issue further.
At the moment he's on holidays and will contact you at Monday.
Hi Michal,
thanks for the info!
Hint:
After some research it seems to be because of
$address = CMapsHelper::getAddress($userid);
Hi, Steve.
I assign our developer to take a look into this.
He'll contact you at Monday ;)
Hi Steve,
Thank you for your information, you right, this is valid bug.
thank you!
Hi Dimas,
You're welcome :)
Is there a bugfix?
I just bought your MembersMap module, and of course not all the user are shown because of 2 different country fields.
It would be nice to use the default JS country field!
Many thanks in advance!
Hi Steve,
Not yet, our developer still on holiday, i will let you know once its done.
thank you
I just got the fix, open this file
components/com_community/helpers/maps.php
find this code :
$obj->country = $user->getInfo( $config->get('fieldcodecountry') );
$obj->country = JText::_($user->getInfo( $config->get('fieldcodecountry') ));
Hi,
thanks for the bug fix - I already tried this.
But the coordinates are not update properly!
I still get these 255.00000
It would be better to locate the users with saved coordinates instead of making new Google Map requests each time!
Another hint? :)
Hi Steve,
Please you try to truncate the location cache on this table "#__community_location_cache"
If still doesnt work, I need access to your backend and FTP.. you can send it via Message on our Community page
thank you!
Hi Steve,
Thank you for FTP access, but I need the full access on that FTP account so I can modify all files on your server..
And what is your phpmyadmin access? seems you missed it :)
thank you!
Thank you for the phpmyadmin, but its hard to connect since Its need server address..seems you missed it :)