Feature #77274

weird slashes in typo3temp/logs

Added by Franz Holzinger about 3 years ago. Updated about 3 years ago.

Status:
Rejected
Priority:
Could have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-07-27
Due date:
% Done:

0%

PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

TYPO3 7.6.10:

I have an error "Oops, an error occurred! " Then I look into the log file at typo3temp/logs/typo3_0a5ca78503.log .

I see many weird slashes and double slashes.
This makes is hard to read. It would be easier to read if there would by no slashes and double backslashes for the class names. Then I could easily copy and paste the file name into a command shell and list it. Now I must manually remove many slashes.

Wed, 27 Jul 2016 18:51:31 +0200 [ALERT] request="42533f4f9b492" component="TYPO3.CMS.Frontend.ContentObject.Exception.ProductionExceptionHandler": Oops, an error occurred! Code: 201607271851308ebe691d - {"exception":"exception 'TYPO3\\CMS\\Core\\Error\\Exception' with message 'PHP Catchable Fatal Error: Argument 1 passed to TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer::render() must be an instance of TYPO3\\CMS\\Frontend\\ContentObject\\AbstractContentObject, null given, called in \/home\/myuser\/public_html\/neu\/typo3_src-7.6.10\/typo3\/sysext\/frontend\/Classes\/ContentObject\/ContentObjectRenderer.php on line 1359 and defined in \/home\/myuser\/public_html\/neu\/typo3_src-7.6.10\/typo3\/sysext\/frontend\/Classes\/ContentObject\/ContentObjectRenderer.php line 927' in \/home\/myuser\/public_html\/neu\/typo3_src-7.6.10\/typo3\/sysext\/core\/Classes\/Error\/ErrorHandler.php:111\nStack trace:\n#0 \/home\/myuser\/public_html\/neu\/typo3_src-7.6.10\/typo3\/sysext\/frontend\/Classes\/ContentObject\/ContentObjectRenderer.php(927): TYPO3\\CMS\\Core\\Error\\ErrorHandler->handleError(4096, 'Argument 1 pass...', '\/home\/myuser\/pu...', 927, Array)\n#1 \/home\/myuser\/public_html\/neu\/typo3_src-7.6.10\/typo3\/sysext\/frontend\/Classes\/ContentObject\/ContentObjectRenderer.php(1359): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->render(NULL, Array)\n#2 \/home\/myuser\/public_html\/neu\/typo3conf\/ext\/tt_board\/lib\/class.tx_ttboard_pibase.php(720): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->FORM(Array)\n#3 \/home\/myuser\/public_html\/neu\/typo3conf\/ext\/tt_board\/lib\/class.tx_ttboard_pibase.php(192): tx_ttboard_pibase->forum_postform('POSTFORM', '206', '', '')\n#4 \/home\/myuser\/public_html\/neu\/typo3conf\/ext\/tt_board\/pi_list\/class.tx_ttboard_pi_list.php(127): tx_ttboard_pibase->processCode('POSTFORM', '')\n#5 [internal function]: tx_ttboard_pi_list->postForm('', Array)\n#6 \/home\/myuser\/public_html\/neu\/typo3_src-7.6.10\/typo3\/sysext\/frontend\/Classes\/ContentObject\/ContentObjectRenderer.php(7316): call_user_func_array(Array, Array)\n#7 


Related issues

Related to TYPO3 Core - Task #88120: [BUGFIX] FileWriter JSON output Closed 2019-04-09

Associated revisions

Revision 06a2e043 (diff)
Added by Malte Koitka 5 months ago

[TASK] Write cleaner FileWriter JSON output

Since PHP 5.4 it's possible to disable escaping for unicode characters
and slashes, which results in a much cleaner, leaner and most
importantly readable TYPO3 log output.

Releases: master, 9.5
Resolves: #88120
Related: #77274
Change-Id: I5b331e29e0f036d3d95b0f1045c269a28fec6abb
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60431
Reviewed-by: Markus Klein <>
Reviewed-by: Oliver Klee <>
Reviewed-by: Georg Ringer <>
Reviewed-by: Tomas Norre Mikkelsen <>
Reviewed-by: Frank Naegler <>
Tested-by: TYPO3com <>
Tested-by: Georg Ringer <>
Tested-by: Frank Naegler <>

Revision a18a72e9 (diff)
Added by Malte Koitka 5 months ago

[TASK] Write cleaner FileWriter JSON output

Since PHP 5.4 it's possible to disable escaping for unicode characters
and slashes, which results in a much cleaner, leaner and most
importantly readable TYPO3 log output.

Releases: master, 9.5
Resolves: #88120
Related: #77274
Change-Id: I5b331e29e0f036d3d95b0f1045c269a28fec6abb
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60850
Reviewed-by: Oliver Klee <>
Reviewed-by: Frank Naegler <>
Tested-by: TYPO3com <>
Tested-by: Frank Naegler <>

History

#1 Updated by Franz Holzinger about 3 years ago

It should look like this:

Wed, 27 Jul 2016 18:51:31 +0200 [ALERT] request="42533f4f9b492" component="TYPO3.CMS.Frontend.ContentObject.Exception.ProductionExceptionHandler": Oops, an error occurred! Code: 201607271851308ebe691d - {"exception":"exception 'TYPO3\CMS\Core\Error\Exception' with message 'PHP Catchable Fatal Error: Argument 1 passed to TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::render() must be an instance of TYPO3\CMS\Frontend\ContentObject\AbstractContentObject, null given, called in /home/myuser/public_html/neu/typo3_src-7.6.10/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php on line 1359 and defined in /home/myuser/public_html/neu/typo3_src-7.6.10/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php line 927' in /home/myuser/public_html/neu/typo3_src-7.6.10/typo3/sysext/core/Classes/Error/ErrorHandler.php:111\nStack trace:\n#0 /home/myuser/public_html/neu/typo3_src-7.6.10/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php(927): TYPO3\CMS\Core\Error\ErrorHandler->handleError(4096, 'Argument 1 pass...', '/home/myuser/pu...', 927, Array)\n#1 /home/myuser/public_html/neu/typo3_src-7.6.10/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php(1359): TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->render(NULL, Array)\n#2 /home/myuser/public_html/neu/typo3conf/ext/tt_board/lib/class.tx_ttboard_pibase.php(720): TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->FORM(Array)\n#3 /home/myuser/public_html/neu/typo3conf/ext/tt_board/lib/class.tx_ttboard_pibase.php(192): tx_ttboard_pibase->forum_postform('POSTFORM', '206', '', '')\n#4 /home/myuser/public_html/neu/typo3conf/ext/tt_board/pi_list/class.tx_ttboard_pi_list.php(127): tx_ttboard_pibase->processCode('POSTFORM', '')\n#5 [internal function]: tx_ttboard_pi_list->postForm('', Array)\n#6 

#2 Updated by Andreas Fernandez about 3 years ago

  • Status changed from New to Rejected

Sorry, but this is will not happen as this is the way how json_encode() works.

#3 Updated by Markus Klein 5 months ago

  • Related to Task #88120: [BUGFIX] FileWriter JSON output added

Also available in: Atom PDF