Project

General

Profile

Actions

Bug #61123

closed

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

Added by Thomas Bach over 10 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Logging
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

I get many Errors of the following in the Backend:

Core: Error handler (BE): PHP Warning: vsprintf(): Too few arguments in /var/www/sites/muehlhof.ch/httpdocs/cms/typo3_src-6.2.4/typo3/sysext/belog/Classes/ViewHelpers/FormatDetailsViewHelper.php line 44

I found #46077 which reported similar errors and has been fixed by patching AbstractExceptionHandler.php

I found a similar line in ErrorHandler.php and by applying the following patch, the errors in the backend disappeared:

--- typo3/sysext/core/Classes/Error/ErrorHandler.php.orig    2014-08-21 17:01:38.173769303 +0200
+++ typo3/sysext/core/Classes/Error/ErrorHandler.php    2014-08-21 16:56:29.819744574 +0200
@@ -182,7 +182,7 @@
                 'action' => 0,
                 'error' => $severity,
                 'details_nr' => 0,
-                'details' => $logMessage,
+                'details' => str_replace('%', '%%', $logMessage),
                 'IP' => GeneralUtility::getIndpEnv('REMOTE_ADDR'),
                 'tstamp' => $GLOBALS['EXEC_TIME'],
                 'workspace' => $workspace

I'm not that familiar with the typo3-backend so I don't know the exact cause of these errors and wheater this is an appropriate fix for them.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #46077: BELog module error: "vsprintf(): Too few arguments"ClosedDmitry Dulepov2013-03-06

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

Actions
Actions

Also available in: Atom PDF