Passing null with newly created users

Created on 25 October 2023, 8 months ago

Problem/Motivation

There is a warning when opening the pagdesigner with a newly created account since null is passed to json_decode(). This is probably due to the new account not having any favourites saved.

Deprecated function: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in Drupal\pagedesigner_favourite\EventSubscriber\FavouritesSubscriber->setFavourites() (line 71 of /project/app/public/modules/contrib/pagedesigner_favourite/src/EventSubscriber/FavouritesSubscriber.php)

Steps to reproduce

  1. Create new account
  2. Log into new account
  3. Open pagedesigner
  4. Warning is thrown
๐Ÿ› Bug report
Status

Closed: outdated

Version

3.0

Component

Code

Created by

๐Ÿ‡จ๐Ÿ‡ญSwitzerland martinstadelmann Switzerland

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

Comments & Activities

Production build 0.69.0 2024