Thanks to visit codestin.com
Credit goes to github.com

Skip to content

PHP Warning: Undefined array key "specials" #381

@abohntek

Description

@abohntek

Bug Report

Current Behavior
Calling the cart leads to the exception:

PHP Warning: Undefined array key "specials" in /var/website/current/html/typo3conf/ext/cart/Classes/Utility/ParserUtility.php line 107

Environment

  • TYPO3 version(s): 11.5.7
  • cart version: 8.2.0
  • PHP: 8.1
  • Is your TYPO3 installation set up with Composer (Composer Mode): yes
  • OS: Debian

Possible Solution

change $pluginSettingsType = $pluginSettings[$type]; inside getTypePluginSettings method to $pluginSettingsType = $pluginSettings[$type] ?? null;

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions