Deprecated function: addcslashes Error on new D10 Site

Created on 2 October 2023, about 1 year ago

Problem/Motivation

Getting an error on every page that has a Fivestar field:

Deprecated function: addcslashes(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\Core\Database\Connection->escapeLike() (line 1525 of core/lib/Drupal/Core/Database/Connection.php).

I also noticed that the stars shown on the page that I tested when it was working were showing, but can't be edited, or selected in any way. New rating don't work either.

Steps to reproduce

This is on a site I upgraded from 9.5.x to the latest Drupal 10 version. After a successful upgrade, the only error is the one above. I tested the page by removing the Fivestar field, and the error went away.

I'm going to keep seeing if I can find a module, or theme, that might be interfering with it.

πŸ’¬ Support request
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States wxman

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

Comments & Activities

Production build 0.71.5 2024