City Dynamic Maps

Unlimited maps and geospatial data. Markers, images, circles, lines, rectangles, polygons, GeoJSON.

Back to City Dynamic Maps Support

sat44956
sat44956

Hi,

After updating OctoberCMS I have started to get this error on the page with the map:

Symfony\Component\Debug\Exception\FatalThrowableError: preg_match_all(): Argument #2 ($subject) must be of type string, City\Map\Classes\Map\Context given in /home/xxxxxxxx/modules/cms/traits/ParsableController.php:118
Stack trace:
#0 /home/xxxxxxxx/modules/cms/traits/ParsableController.php(118): preg_match_all('/\\{\\{([^:\\}]+)\\...', Object(City\Map\Classes\Map\Context), Array)
#1 /home/xxxxxxxx/modules/cms/traits/ParsableController.php(62): Cms\Classes\Controller->makeDynamicAttributeReplacement(Object(City\Map\Classes\Map\Context), Array)
#2 /home/xxxxxxxx/modules/cms/traits/ParsableController.php(24): Cms\Classes\Controller->parseEnvironmentVarsOnComponent(Object(City\GoogleMaps\Components\MapDetails), Array)
#3 /home/xxxxxxxx/modules/cms/classes/Controller.php(396): Cms\Classes\Controller->parseAllEnvironmentVars()
#4 /home/xxxxxxxx/modules/cms/classes/Controller.php(222): Cms\Classes\Controller->runPage(Object(Cms\Classes\Page))
#5 /home/xxxxxxxx/modules/cms/classes/CmsController.php(50): Cms\Classes\Controller->run('map_view')
#6 /home/xxxxxxxx/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): Cms\Classes\CmsController->run('map_view')
#7 /home/xxxxxxxx/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction('run', Array)

Thanks for you help!

Last updated

City
City

Hello,

Thank you for the request. The issue is fixed. Please update the plugin City Dynamic Maps to version 1.0.1

Regards

Last updated

City
City

Note: the issue is related to the October v2.2 feature "Template Properties Support Variables". This feature expects that all properties are strings. But the map plugins internally use properties to store non-scalar values, like objects.

sat44956
sat44956

Hi, thank you so much! The problem is fixed!! Nice day!

1-4 of 4