Skip to content

TypeError on PHP 8.5 Cannot access offset of type string on string in backdrop_array_set_nested_value() #59

@indigoxela

Description

@indigoxela

That can happen with exposed proximity filters, when the manual input is set - that expects an array of values, but as the values come from an URL, it might be a string (unexpected data type).

This is very fragile, as we can never know, what values come in via GET.

We should look into options for better parameter handling. Didn't dig into that, yet.

Full message:

TypeError: Cannot access offset of type string on string in backdrop_array_set_nested_value() (line 8010 of ...core/includes/common.inc).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions