User map [Deleted]

Quite odd. I have the same version running here: https://www.landcruiserclub.net/community/map
After the upgrade, in ACP, clicking on Options, ACP should warning you that there are outdated templates. Did it do this?

The only way you're getting that error is if the template is not populating it.

Can you re-enable it and put it in a special group which I can see? Without seeing or understanding the error it's a struggle to work out what is actually broken.
 
Could it be a caching problem? The changes were in common.js. Sometimes the browser / server don't realise the files have changed.
I've also had CDNs like cloudflare cause some head scratching with files like that.
 
Hi @CrispinP i have noticed something quirky with the addon and thought it would be good to bring it to your attention
I am in the process of moving from shared hosting to a cloud server with dedicated resources, to test the new server environment i uploaded a backup of my site to check for functionality before moving the live there
As expected the usermap did not work as the test domain is not valid with google API but i am unable to enter profile posts, the only way i can enter profile posts if by disabling your addon then functionality returns as far as i can tell all other aspects of the site are working correctly.
Heres the SS of the error and the server log.
I know the addon will start working but am guessing ?? this error will correct itself when i move the correct domain over to the server but would like your thoughts on this before i try as would like to avoid errors if i can

Capture.webp

ErrorException: Argument 1 passed to XenForo_Model_ProfilePost::prepareProfilePost() must be of the type array, boolean given, called in /var/www/vhosts/t6forum.com/httpdocs/library/XenForo/ControllerPublic/Member.php on line 1403 and defined - library/XenForo/Model/ProfilePost.php:356
Generated By: Pauly, A moment ago
Stack Trace
#0 /var/www/vhosts/t6forum.com/httpdocs/library/XenForo/Model/ProfilePost.php(356): XenForo_Application::handlePhpError(4096, 'Argument 1 pass...', '/var/www/vhosts...', 356, Array)
#1 /var/www/vhosts/t6forum.com/httpdocs/library/XenForo/ControllerPublic/Member.php(1403): XenForo_Model_ProfilePost->prepareProfilePost(false, Array)
#2 /var/www/vhosts/t6forum.com/httpdocs/library/XenForo/FrontController.php(351): XenForo_ControllerPublic_Member->actionPost()
#3 /var/www/vhosts/t6forum.com/httpdocs/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#4 /var/www/vhosts/t6forum.com/httpdocs/index.php(13): XenForo_FrontController->run()
#5 {main}
Request State
array(3) {
["url"] => string(44) "http://******.t6forum.com/members/pauly.1/post"
["_GET"] => array(0) {
}
["_POST"] => array(6) {
["message"] => string(5) "test4"
["_xfToken"] => string(8) "********"
["simple"] => string(1) "1"
["_xfRequestUri"] => string(1) "/"
["_xfNoRedirect"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
 
Interesting find.

Could you do a test? In the google API, allow the new domain as a domain in the API. if it then works then it's obviously the problem.
I'll do the same test here too.

When the API fails it throws an error so it's logged in the server log. I guess there is no need for the user to see this too. It should not bubble up.

I'm about to release the next version this evening, I'll see if I can recreate what you're seeing and fix it.
 
Added new domain to API but maps not working on test site, not 100% sure why but test site is on different server/IP address to live site
I have waited 10-15 mins not sure what time if any is needed for google to update

added to API account via DNS CNAME entry instead of DNS txt entry
 
Both, API error looks like, sorry i really havent got time to play with this now gotta hit the road
FWIW i wouldnt really call it a bug or error im expecting it to work on the live site just thought i would let you know so if someone else gets an API error in the future and reports it you got a head start
Im away for 4 days will delve deeper when i get back, thanks for the quick response as always (y)
 
CrispinP updated User map with a new update entry:

Lots of changes and improvements

In this update lots of things have been improved, bugs have been fixed and new features have been added.

[New Features]
  1. Users can now see their map on their profile page
  2. Mass-update now has a daily-limit on it.
  3. Mass-update does last-updated (or never updated) first. You can now update all users.
  4. Loads of ACP options to manage the map

[Enhancements]

  1. Loads of refactoring to improve the code.
  2. Performance enhancements for larger member...

Read the rest of this update entry...
 
v2.9

Within ACP, I have "Map Link: Show "Member" Navigation Tab" selected/ticked. When I visit the map, no Members sub-navigation entries are shown, and the breadcrumb only shows home ...

Screen Shot 2016-07-30 at 23.39.30.webp
 
CrispinP updated User map with a new update entry:
  1. Mass-update now has a daily-limit on it.
  2. Mass-update does last-updated (or never updated) first. You can now update all users.
Could you give a little more narrative around this please?
The daily limit means that it will only do xx lookups? I still got a web server timeout error when trying to do /usermap/massupdate
And what's the methodology around the last-updated (or never updated), how is this working?
Thanks.
 
v2.9

Within ACP, I have "Map Link: Show "Member" Navigation Tab" selected/ticked. When I visit the map, no Members sub-navigation entries are shown, and the breadcrumb only shows home ...

View attachment 138380

That ACP option is to show it on the member's page. i.e. https://www.landcruiserclub.net/community/members/crispin.1/
When viewing my member info you can see me on the map.

Your screen print shows (I think) the normal map page (https://www.landcruiserclub.net/community/map/)
If the permissions are set then you should see two sub-menus called Map Overview and Your Position. Those are set within the permissions and dependant on you having a location set.
Can you confirm the perms are all on for your group?

As for why your breadcrumb is not showing - I don't know. I've never done anything for that but I see mine is working. I'll try work out what drives those.
 
Could you give a little more narrative around this please?
The daily limit means that it will only do xx lookups? I still got a web server timeout error when trying to do /usermap/massupdate
And what's the methodology around the last-updated (or never updated), how is this working?
Thanks.

Take a look at the FAQ - It might need updating if it's not clear?

The wording is a bit bad (I changed it in 3.0 last night actually) - it's not daily limit but more a "this-run" limit.
Google has a free daily limit of 2500 API calls. Previously the mass-update just started at the top and ran down. If you had more than 2500 members then this was almost pointless.

Now what happens is that each run will only attempt to do 2500 at a time. This means that if you have 25,000 users and your limit was 2500 it would take 10 runs - or ten days - to complete everything.
Each user which is attempted, be it successful or not, is time-stamped. Each run will start with the oldest time stamp first so it cycles around. This way you could do all your users over a few days without paying google.

The timeout you're seeing is most likely your CDN giving up. I have a sub-domain which bypasses the CDN for that purpose.
In time I will make it use the XF deferred method where this is no longer a problem.
 
Top Bottom