Multilingual support for Google Autocomplete
Added multilingual search capability by applying the default country scope to the search query. This ensures that language-specific characters are supported in the search form, making locations with such characters properly searchable.
Improved handling of partial Google Place API responses
When the Location field sends a partial or invalid query to the Google Place API, or when the detected location is too generic, the system now...
XF\PrintableException: Batch install error: Line 35: The function get_entity_name may not be called in a template.
Only functions with whitelisted prefixes are allowed. - Template name: admin:allf_area_list - src/XF/Mvc/Entity/Entity.php:1276
Stack Trace
#0 src/XF/AddOn/DataType/Template.php(98): XF\Mvc\Entity\Entity->save(true, false)
#1 src/XF/Job/AddOnData.php(111): XF\AddOn\DataType\Template->importAddOnData('AL/LocationFiel...', Object(SimpleXMLElement), 0, 7.99841)
#2 src/XF/Job/AddOnInstallBatch.php(343): XF\Job\AddOnData->run(7.99841)
#3 src/XF/Job/AddOnInstallBatch.php(99): XF\Job\AddOnInstallBatch->stepData(Object(XF\Timer))
#4 src/XF/Job/Manager.php(275): XF\Job\AddOnInstallBatch->run(8)
#5 src/XF/Job/Manager.php(205): XF\Job\Manager->runJobInternal(Array, 8)
#6 src/XF/Job/Manager.php(121): XF\Job\Manager->runJobEntry(Array, 8)
#7 src/XF/Admin/Controller/ToolsController.php(146): XF\Job\Manager->runByIds(Array, 8)
#8 src/XF/Mvc/Dispatcher.php(362): XF\Admin\Controller\ToolsController->actionRunJob(Object(XF\Mvc\ParameterBag))
#9 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(Wutime\AdBlockTracker\XF\Admin\Controller\Tools), NULL)
#10 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(Wutime\AdBlockTracker\XF\Admin\Controller\Tools), NULL)
#11 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#12 src/XF/App.php(2824): XF\Mvc\Dispatcher->run()
#13 src/XF.php(806): XF\App->run()
#14 admin.php(15): XF::runApp('XF\\Admin\\App')
#15 {main}
When the Location field sends a partial or invalid query to the Google Place API, or when the detected location is too generic, the system now returns the error: “Address is not precise enough.”
When trying to update from 2.0.3 to 2.0.5 on my staging server:
Code:XF\PrintableException: Batch install error: Line 35: The function get_entity_name may not be called in a template. Only functions with whitelisted prefixes are allowed. - Template name: admin:allf_area_list - src/XF/Mvc/Entity/Entity.php:1276 Stack Trace #0 src/XF/AddOn/DataType/Template.php(98): XF\Mvc\Entity\Entity->save(true, false) #1 src/XF/Job/AddOnData.php(111): XF\AddOn\DataType\Template->importAddOnData('AL/LocationFiel...', Object(SimpleXMLElement), 0, 7.99841) #2 src/XF/Job/AddOnInstallBatch.php(343): XF\Job\AddOnData->run(7.99841) #3 src/XF/Job/AddOnInstallBatch.php(99): XF\Job\AddOnInstallBatch->stepData(Object(XF\Timer)) #4 src/XF/Job/Manager.php(275): XF\Job\AddOnInstallBatch->run(8) #5 src/XF/Job/Manager.php(205): XF\Job\Manager->runJobInternal(Array, 8) #6 src/XF/Job/Manager.php(121): XF\Job\Manager->runJobEntry(Array, 8) #7 src/XF/Admin/Controller/ToolsController.php(146): XF\Job\Manager->runByIds(Array, 8) #8 src/XF/Mvc/Dispatcher.php(362): XF\Admin\Controller\ToolsController->actionRunJob(Object(XF\Mvc\ParameterBag)) #9 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(Wutime\AdBlockTracker\XF\Admin\Controller\Tools), NULL) #10 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(Wutime\AdBlockTracker\XF\Admin\Controller\Tools), NULL) #11 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch)) #12 src/XF/App.php(2824): XF\Mvc\Dispatcher->run() #13 src/XF.php(806): XF\App->run() #14 admin.php(15): XF::runApp('XF\\Admin\\App') #15 {main}
We have reproduced this issue with our automated tests, so there is no specific use case reported by customers, but Google changed how it replies in the case when a non-existing street is requested for a country. Now we handle it better, so invalid addresses should reported as non-exising, instead of converting into a country (using address approximation),When the Location field sends a partial or invalid query to the Google Place API, or when the detected location is too generic, the system now returns the error: “Address is not precise enough.”
A new method - getEntityNameLowerCase has been added to address the template error - get_entity_name not available.
This issue is related to a XenForo bug reported at https://xenforo.com/community/threads/breaking-change-in-xenforo-2-3-7-in-getter-syntax.232161/ that will be resolved in version 2.3.8.
Meanwhile, please apply this package and install the latest version of the affected add-on to resolve the error.
I get the following error every time I attempt to enter a value for the Google Places API Key.
"[E_WARNING] Undefined array key 0"
We use essential cookies to make this site work, and optional cookies to enhance your experience.