cakephp: U_ARGUMENT_TYPE_MISMATCH
This is a (multiple allowed):
-
bug
-
CakePHP Version: “cakephp/cakephp”: “~3.4”,
What you did
Changed from PHP 7.0 to 7.1
What happened
Error in Debugkit or any other php form where you add a parameter to a translation:
Normal translations without any parameter work fine.
[Aura\Intl\Exception\CannotFormat] U_ARGUMENT_TYPE_MISMATCH in /home/rlvpr/public_html/vendor/cakephp/cakephp/src/I18n/Formatter/IcuFormatter.php on line 95
Request URL: /favicon.ico
Referer URL: https://rlvpr.be/nl
Client IP: 81.82.231.253
Stack Trace:
#0 /home/rlvpr/public_html/vendor/cakephp/cakephp/src/I18n/Formatter/IcuFormatter.php(52): Cake\I18n\Formatter\IcuFormatter->_formatMessage('nl', '{0,number,#,###...', Array)
#1 /home/rlvpr/public_html/vendor/cakephp/cakephp/src/I18n/Translator.php(159): Cake\I18n\Formatter\IcuFormatter->format('nl', '{0,number,#,###...', Array)
#2 /home/rlvpr/public_html/vendor/cakephp/cakephp/src/I18n/functions.php(88): Cake\I18n\Translator->translate('{0,number,#,###...', Array)
#3 /home/rlvpr/public_html/vendor/cakephp/cakephp/src/I18n/Number.php(92): __d('cake', '{0,number,#,###...', 7.5918045043945)
#4 /home/rlvpr/public_html/vendor/cakephp/debug_kit/src/Panel/TimerPanel.php(125): Cake\I18n\Number::toReadableSize(7960584)
#5 /home/rlvpr/public_html/vendor/cakephp/debug_kit/src/ToolbarService.php(199): DebugKit\Panel\TimerPanel->summary()
#6 /home/rlvpr/public_html/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php(53): DebugKit\ToolbarService->saveData(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#7 /home/rlvpr/public_html/vendor/cakephp/cakephp/src/Http/Runner.php(65): DebugKit\Middleware\DebugKitMiddleware->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
#8 /home/rlvpr/public_html/vendor/cakephp/cakephp/src/Http/Runner.php(51): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#9 /home/rlvpr/public_html/vendor/cakephp/cakephp/src/Http/Server.php(80): Cake\Http\Runner->run(Object(Cake\Http\MiddlewareQueue), Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#10 /home/rlvpr/public_html/webroot/index.php(38): Cake\Http\Server->run()
#11 {main}
What you expected to happen
String to be populated with parameter value
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 19 (8 by maintainers)
Issue was fixed in PHP and will be in upcoming 7.1.24 and 7.2.12
@BassemN What do you expect CakePHP to do if PHP 7.1.22 is incompatible with ICU 4.2? Take up the matter with PHP devs or find a better hosting provider.