Skip to content

Illegal string offset #17

@christianseel

Description

@christianseel

Hi!

I'm sometimes getting a few of those errors in my modx error log… Looks like the mapstv class isn't handling empty TV values correctly?

[2016-01-03 12:51:52] (ERROR @ /core/components/mapstv/elements/tv/input/mapstv.class.php : 48) PHP warning: Illegal string offset 'street'
[2016-01-03 12:51:52] (ERROR @ /core/components/mapstv/elements/tv/input/mapstv.class.php : 49) PHP warning: Illegal string offset 'housenumber'
[2016-01-03 12:51:52] (ERROR @ /core/components/mapstv/elements/tv/input/mapstv.class.php : 50) PHP warning: Illegal string offset 'zipcode'
[2016-01-03 12:51:52] (ERROR @ /core/components/mapstv/elements/tv/input/mapstv.class.php : 51) PHP warning: Illegal string offset 'city'
[2016-01-03 12:51:52] (ERROR @ /core/components/mapstv/elements/tv/input/mapstv.class.php : 52) PHP warning: Illegal string offset 'state'
[2016-01-03 12:51:52] (ERROR @ /core/components/mapstv/elements/tv/input/mapstv.class.php : 53) PHP warning: Illegal string offset 'country'
[2016-01-03 12:51:52] (ERROR @ /core/components/mapstv/elements/tv/input/mapstv.class.php : 54) PHP warning: Illegal string offset 'latitude'
[2016-01-03 12:51:52] (ERROR @ /core/components/mapstv/elements/tv/input/mapstv.class.php : 55) PHP warning: Illegal string offset 'longitude'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions