Skip to content

[Craft 5] Error "..registerScript(): Argument #1 ($script) must be of type string" in production #407

@naboo

Description

@naboo

Description

When pushing code to PRODUCTION this error happens whenever I try to display a Map:

craft\web\View::registerScript(): Argument #1 ($script) must be of type string, null given, called in /home/craft/www.domain.com/vendor/craftcms/cms/src/services/TemplateCaches.php on line 323

The code works as it should in DEV.

If I just switch my environment to "production" in my dev area the same error appears.

Additional info

  • Craft version: Craft CMS 5.5.4
  • Maps version: 5.0.4
  • PHP version: 8.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions