Skip to content

[BUG] PHP Warning Trying to access array offset on value of type null in Util.php #3413

@froemken

Description

@froemken

Describe the bug

PHP Warning: Trying to access array offset on value of type null in /var/www/html/public/typo3conf/ext/solr/Classes/Util.php line 119

To Reproduce
Steps to reproduce the behavior:
Delete a record which is not referenced to an existing col_pos. Happen when you switch backend layouts.

Expected behavior
Check value of BackendUtility::getRecord before accessing it as array

Used versions (please complete the following information):

  • TYPO3 Version: 11.5.19
  • Browser: Chrome
  • EXT:solr Version: 11.5.0
  • Used Apache Solr Version: 8.11.1
  • PHP Version: 8.1.11
  • MySQL Version: 10.2.44-MariaDB-1:10.2.44+maria~bionic-log - mariadb.org binary distribution

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions