Bug #88262

t3Editor: JS Crash "VM3084 typoscript.js:1193 Uncaught TypeError: Cannot read property 'lex' of null"

Added by Sven Juergens 7 months ago. Updated 5 months ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2019-05-03
Due date:
% Done:

100%

TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

hi,

i get t3Editor/CodeMirror crash if i type in this in a sys_template

lib.foo = TEXT
lib.foo.value(
 function()
 function()
)

see attached file.

if you copy and paste this in a sys_tempalte and save the record. you can't access the content anymore.

t3EditorJsFehler.mp4 (398 KB) Sven Juergens, 2019-05-03 13:00


Related issues

Related to TYPO3 Core - Bug #85346: Typoscript Editor not showing entries from line about 670 Resolved 2018-06-22

Associated revisions

Revision 9441ed24 (diff)
Added by Andreas Fernandez 5 months ago

[BUGFIX] t3editor: Harden some checks for TS parsing

Resolves: #88262
Resolves: #85346
Releases: master, 9.5
Change-Id: Ia72ef1b670841d90ec0251c99b7f4d3dc1e7770a
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60900
Tested-by: TYPO3com <>
Tested-by: Riccardo De Contardi <>
Tested-by: Sven Juergens <>
Tested-by: Georg Ringer <>
Tested-by: Andreas Fernandez <>
Reviewed-by: Georg Ringer <>
Reviewed-by: Andreas Fernandez <>

Revision 79825a69 (diff)
Added by Andreas Fernandez 5 months ago

[BUGFIX] t3editor: Harden some checks for TS parsing

Resolves: #88262
Resolves: #85346
Releases: master, 9.5
Change-Id: Ia72ef1b670841d90ec0251c99b7f4d3dc1e7770a
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61053
Tested-by: TYPO3com <>
Tested-by: Andreas Fernandez <>
Reviewed-by: Andreas Fernandez <>

History

#1 Updated by Riccardo De Contardi 6 months ago

  • Related to Bug #85346: Typoscript Editor not showing entries from line about 670 added

#2 Updated by Riccardo De Contardi 6 months ago

I think that #85346 could be considered the same error; I report here my findings, that I wrote also there:

The error triggers when you write for example:

page.headerData.20 = TEXT
page.headerData.20.value (
function() something
function() 
)

or

page.headerData.20 = TEXT
page.headerData.20.value (
something something() something
function() 
)

but on both cases only at the second "function()" and only when you write the "()"

It does not occur with:

page.headerData.20 = TEXT
page.headerData.20.value (
something() something
function() 
)

#3 Updated by Gerrit Code Review 6 months ago

  • Status changed from New to Under Review

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

#4 Updated by Gerrit Code Review 6 months ago

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

#5 Updated by Gerrit Code Review 6 months ago

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

#6 Updated by Gerrit Code Review 5 months ago

Patch set 1 for branch 9.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/+/61053

#7 Updated by Andreas Fernandez 5 months ago

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

Also available in: Atom PDF