[DBTech] DragonByte Member Map

[DBTech] DragonByte Member Map 3.0.1

No permission to download
The map displayed says for developmental purposes only, is this normal?
I just noticed mine was doing the same. I believe one of the DBTECH updates removed the Google Maps API from settings. You'll have to add it back...

Hmmm. I have the latest version installed - I believe so anyway... And you do need to input the Google Maps API in the settings as per the screencap:
2019-07-16_19-50-30.webp

I've just checked btw... And I have version 2.3.2 installed. So perhaps an update may have wiped out the API settings?
IDK...

HTH anyway.

J.
 
I just noticed mine was doing the same. I believe one of the DBTECH updates removed the Google Maps API from settings. You'll have to add it back...

The weird thing is it is hit and miss so sometimes it is a normal map and others it's the developmental purposes map. I'll check the settings when I get home tomorrow and verify the API string... And I'm not in the latest version yet, I was going to update and see if that fixes it.
 
DragonByte Tech updated [DBTech] DragonByte Member Map with a new update entry:

2.3.5

Update highlights

This version makes changes to the way API lookups are handled in order to protect against invalid responses from APIs.

The new privacy-focused API calls made the response data more susceptible to invalid data being parsed, but hopefully these changes should resolve that permanently.


Complete Change Log

Change: Add protection from invalid responses from various API lookups

Read the rest of this update entry...
 
We started to get an error last night on the Member Map:
  • InvalidArgumentException: Attempted to convert NULL to float [dbtech_membermap_lat]
  • src/XF/Mvc/Entity/Entity.php:740
Let me know if you need more information on the error :)
 
We started to get an error last night on the Member Map:
  • InvalidArgumentException: Attempted to convert NULL to float [dbtech_membermap_lat]
  • src/XF/Mvc/Entity/Entity.php:740
Let me know if you need more information on the error :)
I'll also need the stack trace.
 
I'll also need the stack trace.
Sure:

Stack trace
#0 src/XF/Mvc/Entity/Entity.php(618): XF\Mvc\Entity\Entity->_castValueToType(NULL, 'dbtech_memberma...', 3, Array)
#1 src/XF/Mvc/Entity/Entity.php(720): XF\Mvc\Entity\Entity->set('dbtech_memberma...', NULL, Array)
#2 src/addons/DBTech/MemberMap/Repository/GeoIp.php(95): XF\Mvc\Entity\Entity->bulkSet(Array)
#3 src/addons/DBTech/MemberMap/Cron/GeoIp.php(23): DBTech\MemberMap\Repository\GeoIp->scanUsers()
#4 [internal function]: DBTech\MemberMap\Cron\GeoIp::scanIps(Object(XF\Entity\CronEntry))
#5 src/XF/Job/Cron.php(35): call_user_func(Array, Object(XF\Entity\CronEntry))
#6 src/XF/Job/Manager.php(253): XF\Job\Cron->run(G)
#7 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#8 src/XF/Job/Manager.php(79): XF\Job\Manager->runJobEntry(Array, G)
#9 job.php(42): XF\Job\Manager->runQueue(false, 8)
#10 {main}

Previous InvalidArgumentException: Attempted to convert NULL to float - src/XF/Mvc/Entity/ValueFormatter.php:148
#0 src/XF/Mvc/Entity/Entity.php(736): XF\Mvc\Entity\ValueFormatter->castValueToType(NULL, 3, Array)
#1 src/XF/Mvc/Entity/Entity.php(618): XF\Mvc\Entity\Entity->_castValueToType(NULL, 'dbtech_memberma...', 3, Array)
#2 src/XF/Mvc/Entity/Entity.php(720): XF\Mvc\Entity\Entity->set('dbtech_memberma...', NULL, Array)
#3 src/addons/DBTech/MemberMap/Repository/GeoIp.php(95): XF\Mvc\Entity\Entity->bulkSet(Array)
#4 src/addons/DBTech/MemberMap/Cron/GeoIp.php(23): DBTech\MemberMap\Repository\GeoIp->scanUsers()
#5 [internal function]: DBTech\MemberMap\Cron\GeoIp::scanIps(Object(XF\Entity\CronEntry))
#6 src/XF/Job/Cron.php(35): call_user_func(Array, Object(XF\Entity\CronEntry))
#7 src/XF/Job/Manager.php(253): XF\Job\Cron->run(G)
#8 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#9 src/XF/Job/Manager.php(79): XF\Job\Manager->runJobEntry(Array, G)
#10 job.php(42): XF\Job\Manager->runQueue(false, 8)
#11 {main}

Request state
array(4) {
["url"] => string(10) "/f/job.php"
["referrer"] => string(99) "https://afflift.com/f/threads/may-2019-challenge-propellerads-clickdealer-walmart-offer.1828/page-2"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 
Sure:

Stack trace
#0 src/XF/Mvc/Entity/Entity.php(618): XF\Mvc\Entity\Entity->_castValueToType(NULL, 'dbtech_memberma...', 3, Array)
#1 src/XF/Mvc/Entity/Entity.php(720): XF\Mvc\Entity\Entity->set('dbtech_memberma...', NULL, Array)
#2 src/addons/DBTech/MemberMap/Repository/GeoIp.php(95): XF\Mvc\Entity\Entity->bulkSet(Array)
#3 src/addons/DBTech/MemberMap/Cron/GeoIp.php(23): DBTech\MemberMap\Repository\GeoIp->scanUsers()
#4 [internal function]: DBTech\MemberMap\Cron\GeoIp::scanIps(Object(XF\Entity\CronEntry))
#5 src/XF/Job/Cron.php(35): call_user_func(Array, Object(XF\Entity\CronEntry))
#6 src/XF/Job/Manager.php(253): XF\Job\Cron->run(G)
#7 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#8 src/XF/Job/Manager.php(79): XF\Job\Manager->runJobEntry(Array, G)
#9 job.php(42): XF\Job\Manager->runQueue(false, 8)
#10 {main}

Previous InvalidArgumentException: Attempted to convert NULL to float - src/XF/Mvc/Entity/ValueFormatter.php:148
#0 src/XF/Mvc/Entity/Entity.php(736): XF\Mvc\Entity\ValueFormatter->castValueToType(NULL, 3, Array)
#1 src/XF/Mvc/Entity/Entity.php(618): XF\Mvc\Entity\Entity->_castValueToType(NULL, 'dbtech_memberma...', 3, Array)
#2 src/XF/Mvc/Entity/Entity.php(720): XF\Mvc\Entity\Entity->set('dbtech_memberma...', NULL, Array)
#3 src/addons/DBTech/MemberMap/Repository/GeoIp.php(95): XF\Mvc\Entity\Entity->bulkSet(Array)
#4 src/addons/DBTech/MemberMap/Cron/GeoIp.php(23): DBTech\MemberMap\Repository\GeoIp->scanUsers()
#5 [internal function]: DBTech\MemberMap\Cron\GeoIp::scanIps(Object(XF\Entity\CronEntry))
#6 src/XF/Job/Cron.php(35): call_user_func(Array, Object(XF\Entity\CronEntry))
#7 src/XF/Job/Manager.php(253): XF\Job\Cron->run(G)
#8 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#9 src/XF/Job/Manager.php(79): XF\Job\Manager->runJobEntry(Array, G)
#10 job.php(42): XF\Job\Manager->runQueue(false, 8)
#11 {main}

Request state
array(4) {
["url"] => string(10) "/f/job.php"
["referrer"] => string(99) "https://afflift.com/f/threads/may-2019-challenge-propellerads-clickdealer-walmart-offer.1828/page-2"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
I'll add protection against that in the next version, thanks!
 
DragonByte Tech updated [DBTech] DragonByte Member Map with a new update entry:

2.3.6

Update highlights

This version is a quick maintenance update to fix some reported bugs, as well as improved compliance with the XenForo Resource Guidelines.


Complete Change Log

Change: Updated internal data path references to better support CDNs
Fix: Fixed a potential server error if the coordinates returned are incorrect

Read the rest of this update entry...
 
@DragonByte Tech ,

2 things: are there any limitations present? I only get around 5.000 members into the map. Does the map only fetch users active in the last X days or something like that?

The other thing: MaxMind has stopped the free download of the database: https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases/ . Everyone using it has to register and obtain a (free) license. Seems that they provide a download script, so their DB still could be used when implementing the script into the add-on. Mind having a look, Fillip? May be you could consider, that your add-on can use the MaxMind DB that is/can be installed (and automaticly updated) on dedicated servers.

Oh, and as I can see - your already in 2020 while I am in 2019, so happy new year! See you on the other side ;)
 
DragonByte Tech updated [DBTech] DragonByte Member Map with a new update entry:

2.3.8

Update highlights

This version is a follow-up to the previous version, in order to address an issue where another change in the download format prevented the GeoIP2 database file from being read properly after it was downloaded.


Complete Change Log

Change: Updated GeoIP reader
Fix: Fixed an issue that would prevent a valid GeoIP database file from being downloaded

Read the rest of this update entry...
 
I just update on my testsite from 2.3.6 to 2.3.8
And get this error


  • UnexpectedValueException: [MemberMap] Error updating GeoIP: internal corruption of phar "/var/www/html/testforum/www/forums/internal_data/temp/GeoLite2-City.tar.gz" (__HALT_COMPILER(); not found)
  • src/addons/DBTech/MemberMap/Repository/GeoIp.php:134

  • Generiert von: teletubbi
  • 16. Jan 2020 um 18:32

Stack-Trace

#0 src/addons/DBTech/MemberMap/Repository/GeoIp.php(134): PharData->__construct('/var/www/html/t...')
#1 src/addons/DBTech/MemberMap/Setup.php(190): DBTech\MemberMap\Repository\GeoIp->geoIpUpdate()
#2 src/XF/AddOn/AddOn.php(574): DBTech\MemberMap\Setup->postUpgrade(2030570, Array)
#3 src/XF/Job/AddOnInstallBatch.php(378): XF\AddOn\AddOn->postUpgrade(Array)
#4 src/XF/Job/AddOnInstallBatch.php(98): XF\Job\AddOnInstallBatch->stepFinalize(Object(XF\Timer))
#5 src/XF/Job/Manager.php(253): XF\Job\AddOnInstallBatch->run(G)
#6 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#7 src/XF/Job/Manager.php(111): XF\Job\Manager->runJobEntry(Array, G)
#8 src/XF/Admin/Controller/Tools.php(120): XF\Job\Manager->runByIds(Array, 8)
#9 src/XF/Mvc/Dispatcher.php(350): XF\Admin\Controller\Tools->actionRunJob(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(261): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Tools), NULL)
#11 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Tools), NULL)
#12 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#13 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#14 src/XF.php(391): XF\App->run()
#15 admin.php(13): XF::runApp('XF\\Admin\\App')
#16 {main}

Status der Anfrage

array(4) {
["url"] => string(31) "/forums/admin.php?tools/run-job"
["referrer"] => string(60) "https://test.pattayaforum.net/forums/admin.php?tools/run-job"
["_GET"] => array(1) {
["tools/run-job"] => string(0) ""
}
["_POST"] => array(3) {
["_xfRedirect"] => string(96) "https://test.pattayaforum.net/forums/admin.php?add-ons/install-from-archive-complete&batch_id=25"
["_xfToken"] => string(8) "********"
["only_ids"] => string(4) "1825"
}
}
 
I just update on my testsite from 2.3.6 to 2.3.8
And get this error


  • UnexpectedValueException: [MemberMap] Error updating GeoIP: internal corruption of phar "/var/www/html/testforum/www/forums/internal_data/temp/GeoLite2-City.tar.gz" (__HALT_COMPILER(); not found)
  • src/addons/DBTech/MemberMap/Repository/GeoIp.php:134

  • Generiert von: teletubbi
  • 16. Jan 2020 um 18:32

Stack-Trace

#0 src/addons/DBTech/MemberMap/Repository/GeoIp.php(134): PharData->__construct('/var/www/html/t...')
#1 src/addons/DBTech/MemberMap/Setup.php(190): DBTech\MemberMap\Repository\GeoIp->geoIpUpdate()
#2 src/XF/AddOn/AddOn.php(574): DBTech\MemberMap\Setup->postUpgrade(2030570, Array)
#3 src/XF/Job/AddOnInstallBatch.php(378): XF\AddOn\AddOn->postUpgrade(Array)
#4 src/XF/Job/AddOnInstallBatch.php(98): XF\Job\AddOnInstallBatch->stepFinalize(Object(XF\Timer))
#5 src/XF/Job/Manager.php(253): XF\Job\AddOnInstallBatch->run(G)
#6 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#7 src/XF/Job/Manager.php(111): XF\Job\Manager->runJobEntry(Array, G)
#8 src/XF/Admin/Controller/Tools.php(120): XF\Job\Manager->runByIds(Array, 8)
#9 src/XF/Mvc/Dispatcher.php(350): XF\Admin\Controller\Tools->actionRunJob(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(261): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Tools), NULL)
#11 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Tools), NULL)
#12 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#13 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#14 src/XF.php(391): XF\App->run()
#15 admin.php(13): XF::runApp('XF\\Admin\\App')
#16 {main}

Status der Anfrage

array(4) {
["url"] => string(31) "/forums/admin.php?tools/run-job"
["referrer"] => string(60) "https://test.pattayaforum.net/forums/admin.php?tools/run-job"
["_GET"] => array(1) {
["tools/run-job"] => string(0) ""
}
["_POST"] => array(3) {
["_xfRedirect"] => string(96) "https://test.pattayaforum.net/forums/admin.php?add-ons/install-from-archive-complete&batch_id=25"
["_xfToken"] => string(8) "********"
["only_ids"] => string(4) "1825"
}
}
What version of PHP are you running?
 
Back
Top Bottom