Issue Bug Closed

#100216PHP Warning: Undefined array key "divKey"

Albrecht Köhnlein 03/19/23, 20:05 updated 07/09/24, 12:46

Description

When using COA_INT in page.jsInline, PHP warnings are thrown.

Example TypoScript:

page = PAGE
page.jsInline.10 = COA_INT
page.jsInline.10 {
  10 = TEXT
  10.value = alert('any code')
}

Warnings:

> PHP Warning: Undefined array key “divKey” in (…)/private/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php line 2787
> PHP Warning: Undefined array key “divKey” in (…)/private/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php line 2788
> PHP Warning: Undefined array key “divKey” in (…)/private/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php line 2794

Reviews 2

History 617

  1. Gerrit Code Review pushed patch set 2 for main to change 78170 status New Under Review 03/19/23, 20:10

  2. Albrecht Köhnlein changed description 03/19/23, 20:12

  3. Albrecht Köhnlein changed subject PHP Warning 'Undefined array key "divKey"' PHP Warning: Undefined array key "divKey" 03/19/23, 20:12

  4. Gerrit Code Review pushed patch set 3 for main to change 78170 03/19/23, 20:13

  5. Gerrit Code Review pushed patch set 4 for main to change 78170 03/19/23, 20:15

  6. Albrecht Köhnlein changed description 03/20/23, 09:41

  7. Gerrit Code Review pushed patch set 5 for main to change 78170 03/20/23, 09:57

  8. Gerrit Code Review pushed patch set 6 for main to change 78170 03/20/23, 10:38

  9. Gerrit Code Review pushed patch set 7 for main to change 78170 03/21/23, 08:46

  10. Gerrit Code Review pushed patch set 1 for 11.5 to change 78065 03/21/23, 21:17

  11. Gerrit Code Review pushed patch set 2 for 11.5 to change 78065 03/21/23, 21:18

  12. Gerrit Code Review pushed patch set 3 for 11.5 to change 78065 03/21/23, 21:20

  13. Gerrit Code Review pushed patch set 4 for 11.5 to change 78065 03/21/23, 21:21

  14. Albrecht Köhnlein commented and changed status Under Review Resolved done 0 % 100 % 03/21/23, 21:25

    Applied in changeset commit:95a182a7d58908fae7169cec6879fdffc675e537.

  15. Gerrit Code Review pushed patch set 5 for 11.5 to change 78065 status Resolved Under Review 03/22/23, 11:50

  16. Albrecht Köhnlein commented and changed status Under Review Resolved 03/22/23, 12:20

    Applied in changeset commit:752385546429657c8b56f9721a568201279fae50.

  17. Benni Mack changed status Resolved Closed 07/09/24, 12:46