Project

General

Profile

Actions

Bug #96537

closed

PHP Warning: Undefined array key "casesensitiveComp" in ... HTMLParser.php line 555 (PHP 8)

Added by Tobias Pfender over 2 years ago. Updated 8 months ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2022-01-14
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

While updating a few systems to TYPO3 11 and PHP 8, I noticed this warning:

PHP Warning: Undefined array key "casesensitiveComp" in /var/www/html/htdocs/typo3/sysext/core/Classes/Html/HtmlParser.php line 555

We use the following typoscript snippet to filter out span tags with shy class:


// Remove any 'shy' classes from <span> elements:
lib.parseFunc_RTE.nonTypoTagStdWrap.HTMLparser.tags.span.fixAttrib.class.removeIfEquals = shy

// Remove all <span> elements which have no attribute:
lib.parseFunc_RTE.nonTypoTagStdWrap.HTMLparser.rmTagIfNoAttrib = span

To reproduce this warning, enable span tags in your rte editor, paste the typoscript snippet into you ts and create a text element with a <span class="shy">test</span>

I tried to trace it back and I think the problem lies in HtmlParser->HTMLparserConfig. When I add lib.parseFunc_RTE.nonTypoTagStdWrap.HTMLparser.tags.span.fixAttrib.casesensitiveComp = 0 to my typoscript, this methode removes it from the config.

Actions #1

Updated by Tobias Pfender over 2 years ago

  • Description updated (diff)
Actions #2

Updated by Oliver Hader over 2 years ago

  • Status changed from New to Accepted
Actions #3

Updated by Gerrit Code Review over 2 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73098

Actions #4

Updated by Gerrit Code Review over 2 years ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73098

Actions #5

Updated by Gerrit Code Review over 2 years ago

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73088

Actions #6

Updated by Stefan Bürk over 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions #8

Updated by Gerrit Code Review 8 months ago

  • Status changed from Closed to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/80982

Actions #9

Updated by Gerrit Code Review 8 months ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/80982

Actions #10

Updated by Gerrit Code Review 8 months ago

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81047

Actions #11

Updated by Gerrit Code Review 8 months ago

Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81048

Actions #12

Updated by Philipp Kitzberger 8 months ago

  • Status changed from Under Review to Resolved
Actions

Also available in: Atom PDF