Issue Bug Closed

#98962json_decode with null parameter in SearchController

Albrecht Köhnlein 10/31/22, 15:22 updated 12/06/22, 21:52

Description

I’m upgrading an existing project to TYPO3 11 and PHP 8.1 and ran into this error when submitting a search:

> (1/1) #1476107295 TYPO3\CMS\Core\Error\Exception
>
> PHP Runtime Deprecation Notice: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /var/www/html/private/typo3/sysext/indexed_search/Classes/Controller/SearchController.php line 477

Reviews 2

History 35

  1. Albrecht Köhnlein changed subject json_decode json_decode with null parameter in SearchController 10/31/22, 15:22

  2. Gerrit Code Review pushed patch set 1 for main to change 76351 status New Under Review 10/31/22, 15:30

  3. Gerrit Code Review pushed patch set 1 for 11.5 to change 76273 10/31/22, 15:41

  4. Albrecht Köhnlein commented and changed status Under Review Resolved done 0 % 100 % 10/31/22, 15:45

    Applied in changeset commit:ad8fc6728b5d836ea55b677b84b5aebbaa64175a.

  5. Benni Mack changed status Resolved Closed 12/06/22, 21:52