Location custom field by AddonsLab

Location custom field by AddonsLab [Paid] 2.0.6

No permission to buy ($39.99)
PHP:
    protected function _preSave()
    {
        parent::_preSave();

        if ($this->field_type !== 'location') {
            $this->location_options = [];
        }
    }
 
AddonsLab updated Location custom field by AddonsLab with a new update entry:

Multilingual support for Google Autocomplete

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...

Read the rest of this update entry...
 
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}
 
I told you about the problem yesterday, so thank you for your quick response.
However, I don’t understand this sentence:

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.”

You have solved it, so we will not see this message anymore?
Could you explain briefly what happened before?

About four weeks ago, Google seems to have changed something, and since then the system has often shown “Address is not precise enough” when using original Google addresses.

I have to write "Loewe" instead "Löwe" to make Google work.
 
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}

This is related to a bug we have reported at https://xenforo.com/community/threads/breaking-change-in-xenforo-2-3-7-in-getter-syntax.232161/ We will release a patch in several hours and the bug fix is going to be released with 2.3.8
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.”
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),

This fix is not related to the language issue. Language fix was only via putting additional configuration in JS API just informing Google what is the expected locale based on default country. Please check and let us know if this is working for you,

Thank you!
 
AddonsLab updated Location custom field by AddonsLab with a new update entry:

XenForo 2.3.7 issue patch release

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.

Read the rest of this update entry...
 
Back
Top Bottom