Issue Bug Closed

#99255recycler: PHP Warning: Undefined array keys "crdate" and "tstamp"

Tobias Gülzow 12/02/22, 13:34 updated 02/08/23, 16:06

Description

Hi everyone.

I’m not sure if this is the right place to report this.

When using

  1. TYPO3 11.5.19
  2. PHP 8.1.12
  3. EXT:static_infotables
  4. EXT:recycler

You will get the dreaded undefined array key warning for crdate and tstamp when using the backend module of EXT:recycler.
The error is in the ajax request, and not in the backend module itself.

*What is happening inside the code:*
The problem is, that the table static_countries does not have a crdate or a tstamp .
The RecyclerAjaxController then triggers the warning here:
https://github.com/TYPO3/typo3/blob/v11.5.19/typo3/sysext/recycler/Classes/Controller/RecyclerAjaxController.php#L201
and here:
https://github.com/TYPO3/typo3/blob/v11.5.19/typo3/sysext/recycler/Classes/Controller/RecyclerAjaxController.php#L202

Tobi

Reviews 2