Skip to content

Deprecation error in Pro Search when using SQL parameters w/ PHP 8.1+ #4502

@naaador

Description

@naaador

Description of the problem
When using SQL parameters in the exp:pro_search:results tag a deprecated warning is generated:

Error Messages


Deprecated
key(): Calling key() on an object is deprecated
ee/ExpressionEngine/Addons/pro_search/libraries/Pro_search_params.php, line 237

Environment Details:

  • Version: 7.4.8
  • PHP Version: 8.1

Possible Solution
On the line referenced in the error above change $query->row() to $query->row_array()

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