ethercreative/simplemap

Error after upgrading to maps pro

Closed this issue · 1 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

I sorted out the issue by nuking my vendor folder and running composer install . Working as expected now