Skip to content

[EE7] PHP error when sorting related entries using custom field #4543

@PaulBaileyAtChan

Description

@PaulBaileyAtChan

I'm hitting the error shown here when displaying values from a relationship field. I think the error occurs when I attempt to sort the related entries using a custom field which doesn't have a value in all entries. This could be fixed by making that field required, obv., but it feels like EE should fail more gracefully here? Sanity check before calling strtolower?

strtolower(): Passing null to parameter #1 ($string) of type string is deprecated
ee/legacy/libraries/relationship_parser/Parser.php, line 674
Severity: E_DEPRECATED

— EE: 7.5.1
— PHP: 8.3.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug: UnconfirmedBug report that is not yet confirmed and/or is not reproducible.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions