User map [Deleted]

v1.6 is producing a few errors in server log ...

Code:
Server Error Log
Error Info
ErrorException: Undefined index: map_location - library/Crispin/UserMap/ControllerPublic/UserMap.php:17
Generated By: user, Yesterday at 23:39
Stack Trace
#0 library/Crispin/UserMap/ControllerPublic/UserMap.php(17): XenForo_Application::handlePhpError(8, 'Undefined index...', '...', 17, Array)
#1 library/XenForo/FrontController.php(351): Crispin_UserMap_ControllerPublic_UserMap->actionIndex()
#2 library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#3 index.php(13): XenForo_FrontController->run()
#4 {main}
Request State
array(3) {
  ["url"] => string(47) "/usermap?viewuser=49070/"

and

Code:
Server Error Log
Error Info
ErrorException: Undefined index: map_location - library/Crispin/UserMap/ControllerPublic/UserMap.php:66
Generated By: user, Yesterday at 23:38
Stack Trace
#0 library/Crispin/UserMap/ControllerPublic/UserMap.php(66): XenForo_Application::handlePhpError(8, 'Undefined index...', '...', 66, Array)
#1 library/XenForo/FrontController.php(351): Crispin_UserMap_ControllerPublic_UserMap->actionViewFollowing()
#2 library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#3 index.php(13): XenForo_FrontController->run()
#4 {main}
Request State
array(3) {
  ["url"] => string(46) "/usermap/ViewFollowing/"

... I suspect this condition is occurring if the user accessing the map does not have permission to do so (View User Map if own location blank?)
 
Last edited:
I still can't get the Mass Update to work.

New users that register and leave the "map location" field blank, they get a pin on the map, no problem.

I went in the ACP and chose an existing user that had a location filled in, in this case "Mexico City" and no location in the Map location field, didn't change anything, and just saved him and he popped up on the map.

Just running /usermap?massupdate does nothing at all, did I miss something? ACP option for allowing Mass Update is checked.
 
I still can't get the Mass Update to work.
Yes, I also reported this a few days ago.
I have almost 20k records (users with a location) for it to process, but the page reloads almost instantly - certainly not taking time that I think it would need to process 20k records with Google API.
 
When saving Account Personal Details ( /account/personal-details ) the map will use the Location field, if the Map Location field is blank.
Thus, users that don't want to be displayed on the map are forced to either have no Location or fill it with something Google Maps doesn't recognise.

If usergroup permission 'View User Map if own location blank?' applies, then the map should only geolocate from the Map Location field (it will currently geolocate from both the Location and the Map Location fields). Otherwise the situation arises where the user is displayed on the map (geolocate from the Location field) but they cannot see the map.
 
Last edited:
When editing a user ( admin ACP, or user themself) if you clear both the Map Location and Location, the user pin is still showing on the map.
Appears it's not removing pins if the Google Maps API doesn't get a match?
 
Request: If i) User State is not Valid (eg. changed due to email bouncing), or ii) Banned - please don't display them on the map.
 
Just wanted to install, and was irritated by an "images" folder to be installed in the root. It should be in an extra folder in the "styles" or "data" folders to be in conformity with XenForo structure.
 
Last edited:
It would be great if this would have ACP option checkmarks to have the map in different locations (multiple choice):
  1. Main Nav Tab ("Member Map")
  2. "Members" --> Sub Nav Tab (as proposed by @Mouth )
  3. User's Profile (As "Profile Tab") (With user pin centered)
(and of course remove it from the "Forums" tab, because it has nothing to do with forums)
 
Last edited:
Server Error while watching the map

Code:
Server Error Log
Error Info
ErrorException: Undefined index: map_location - library/Crispin/UserMap/ControllerPublic/UserMap.php:17
Generated By: XXXX XXXXX, 3 minutes ago
Stack Trace
#0 /var/www/clients/client180/web812/web/library/Crispin/UserMap/ControllerPublic/UserMap.php(17): XenForo_Application::handlePhpError(8, 'Undefined index...', '/var/www/client...', 17, Array)
#1 /var/www/clients/client180/web812/web/library/XenForo/FrontController.php(351): Crispin_UserMap_ControllerPublic_UserMap->actionIndex()
#2 /var/www/clients/client180/web812/web/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#3 /var/www/clients/client180/web812/web/index.php(13): XenForo_FrontController->run()
#4 {main}
Request State
array(3) {
  ["url"] => string(51) "https://www.xxxxxxxxxx.com/usermap?viewuser=1/"
  ["_GET"] => array(1) {
    ["viewuser"] => string(2) "1/"
  }
  ["_POST"] => array(0) {
  }
}
 
Recently reported this to @CrispinP ... wth the suggestion that it occurs when using the viewuser URL parameter and the user loading the page doesn't have permission to see the map. Maybe you could check if that's your scenario too?
I have this with only two users on the map and both have the permissions
 
Back
Top Bottom