simplemap icon indicating copy to clipboard operation
simplemap copied to clipboard

Error after upgrading to maps pro

Open SETU-WEB opened this issue 1 year ago • 0 comments

Hi I have recently upgraded to maps pro and I am getting internal server error on any page a map is loaded on . Here is the map code in my template {# {% if entry.section.handle == 'events_entries' %} {% if entry.eventMap.address|length %} {% set myMapField = entry.eventMap %} {{ myMapField.embed({ id: 'map', 'width': '800', height: '500', markers: [{}], }) }} {% endif %} {% endif %} #} I have also stripped that out and just used the basic code, but I got the same issue. This is the Error I get in on the page

image (4)

And this is in whats the error log at the times we get the server error [web.ERROR] [TypeError] craft\web\View::registerScript(): Argument #1 ($script) must be of type string, null given, called in /var/www/html/vendor/craftcms/cms/src/services/TemplateCaches.php on line 293

I have clears cache multiple times and completely rebuilt config but that makes no difference

Craft CMS version 4.8.7 PHP version : 8.3.4 Maps PRO v4.0.5

Thanks for any help

SETU-WEB avatar Apr 10 '24 10:04 SETU-WEB