TYPO3GmbH / blog

This blog extension uses TYPO3s core concepts and elements to provide a full-blown blog that users of TYPO3 can instantly understand and use.
https://typo3.com
GNU General Public License v2.0
43 stars 55 forks source link

Blog extension breaks Analyze Database Structure of the install tool with PHP 8.0 #246

Open DavidVoi opened 2 years ago

DavidVoi commented 2 years ago

Bug Report

Prerequisites

Description

#1476107295 TYPO3\CMS\Core\Error\Exception
PHP Warning: Undefined array key "**foreign_table_where**" in /.../typo3conf/ext/blog/Configuration/TCA/Overrides/sys_category.php line 56

which as of today looks like this:

$GLOBALS['TCA']['pages']['columns']['categories']['config']['foreign_table_where']

Steps to Reproduce

  1. Use PHP 8.0.15
  2. Clean TYPO3 11.5.6
  3. Install Blog extension
  4. Analyze Database Structure of the install tool

Expected behavior: admin tool performs database check

Actual behavior: no database check, broken admin tool

Versions

11.0.2

Possibly related to

PHP warnings about undefined array keys (PHP 8.0)

245

Fix PHP8 undefined array key warning in various places https://forge.typo3.org/issues/94542

dominikdoerr commented 2 years ago

This should already be fixed for the next release: https://github.com/TYPO3GmbH/blog/pull/238

steffenf14 commented 1 year ago

the reported error is for version 11.0.2 in which it is not fixed as of today. having the same problem currently. https://github.com/TYPO3GmbH/blog/blob/11.0.2/Configuration/TCA/Overrides/sys_category.php#L56