Project

General

Profile

Actions

Bug #46077

closed

BELog module error: "vsprintf(): Too few arguments"

Added by Dmitry Dulepov over 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Category:
-
Target version:
-
Start date:
2013-03-06
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

AbstractExceptionHandler contains a function named writeLog. That function adds an entry to the system log. System log expects not just a string but a string format with % characters. Callers of this methods may supply something like this to writeLog:

=============
Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1303237468: Given select field item list was not found. | RuntimeException thrown in file /var/www/typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php in line 409. Requested URL: http://typo3master.dev/typo3/ajax.php?_dc=1362593068887&ajaxID=BackendLogin%3A%3AisTimedOut&skipSessionUpdate=1 =============

This message contains % symbols but it is not a format. Therefore, it should be escaped. The best way is to do it in the writeLog itself because it does not create any log data to format but only adds a plain string.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #61123: BELog module error: "vsprintf(): Too few arguments" the secondClosed

Actions
Related to TYPO3 Core - Bug #77444: BELog module error: "vsprintf(): Too few arguments" the secondClosed2016-08-08

Actions
Actions #1

Updated by Dmitry Dulepov over 11 years ago

In addition there are many entries in the BElog for this error:

Core: Error handler (BE): PHP Warning: vsprintf(): Too few arguments in /var/www/typo3/sysext/belog/Classes/ViewHelpers/FormatDetailsViewHelper.php line 56

Actions #2

Updated by Dmitry Dulepov over 11 years ago

Another error:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1303237468: Given select field item list was not found. | RuntimeException thrown in file /var/www/typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php in line 409. Requested URL: http://typo3master.dev/typo3/ajax.php?_dc=1362593068887&ajaxID=BackendLogin%3A%3AisTimedOut&skipSessionUpdate=1

Actions #3

Updated by Gerrit Code Review over 11 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18762

Actions #4

Updated by Gerrit Code Review over 11 years ago

Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/19067

Actions #5

Updated by Anonymous over 11 years ago

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

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF