Attempt to read property "language" on string search_api_saved_searches.module:1172

Created on 6 December 2023, 12 months ago
Updated 13 January 2024, 10 months ago

Problem/Motivation

Follow-up to πŸ› Anonymous saved searches do not use the language used when creating the saved search Fixed . There is a bug in the mail sending code where sometimes a language object is passed and sometimes a langauge code string. Symptom in PHP 8.1: Attempt to read property "language" on string search_api_saved_searches.module:1172

Steps to reproduce

Create a new saved search as anonymous user, set last_queued and last_executed to 0 and run
drush ev "search_api_saved_searches_cron();"
drush queue-run search_api_saved_searches_check_updates

Proposed resolution

Always pass a language object.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¦πŸ‡ΉAustria klausi πŸ‡¦πŸ‡Ή Vienna

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024