Fix console diagnostics:run error when GeoIp2 is disabled #18456
Labels
Bug
For errors / faults / flaws / inconsistencies etc.
Regression
Indicates a feature used to work in a certain way but it no longer does even though it should.
Milestone
Expected Behavior
When calling
php console diagnostics:run
we expect a summary of the system status.Current Behavior
When calling
php console diagnostics:run
The following error shows up:ERROR [2021-12-06 11:14:01] 24912 Uncaught exception: Error: Call to undefined function Piwik\piwik_fix_lbrace() in /var/www/xyz.de/typo3/public/analyse/plugins/Diagnostics/Diagnostic/DiagnosticResult.php:74 Stack trace: #0 /var/www/xyz.de/typo3/public/analyse/plugins/Diagnostics/Diagnostic/MatomoInformational.php(36): Piwik\Plugins\Diagnostics\Diagnostic\DiagnosticResult::informationalResult('Matomo Version', '4.6.1') #1 /var/www/xyz.de/typo3/public/analyse/plugins/Diagnostics/DiagnosticService.php(68): Piwik\Plugins\Diagnostics\Diagnostic\MatomoInformational->execute() #2 /var/www/xyz.de/typo3/public/analyse/plugins/Diagnostics/DiagnosticService.php(55): Piwik\Plugins\Diagnostics\DiagnosticService->run(Array) #3 /var/www/xyz.de/typo3/public/analyse/plugins/Diagnostics/Commands/Run.php(41): Piwik\Plugins\Diagnostics\DiagnosticService->runDiagnostics() #4 /var/www/xyz.de/typo3/public/analyse/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Piwik\Plugins\Diagnostics\Commands\Run->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/xyz.de/typo3/public/analyse/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/xyz.de/typo3/public/analyse/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(Piwik\Plugins\Diagnostics\Commands\Run), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 [internal function]: Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/xyz.de/typo3/public/analyse/core/Console.php(130): call_user_func(Array, Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/xyz.de/typo3/public/analyse/core/Access.php(670): Piwik\Console->Piwik\{closure}() #10 /var/www/xyz.de/typo3/public/analyse/core/Console.php(131): Piwik\Access::doAsSuperUser(Object(Closure)) #11 /var/www/xyz.de/typo3/public/analyse/core/Console.php(82): Piwik\Console->doRunImpl(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/xyz.de/typo3/public/analyse/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Piwik\Console->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/xyz.de/typo3/public/analyse/console(32): Symfony\Component\Console\Application->run() #14 {main} Uncaught exception in /var/www/xyz.de/typo3/public/analyse/plugins/Diagnostics/Diagnostic/DiagnosticResult.php line 74: Call to undefined function Piwik\piwik_fix_lbrace()
The Systemcheck in the browser (/index.php?module=Installation&action=systemCheckPage) runs just fine and reports no errors.
This error did not happen with Matomo 3 or 4.5. It startet after the Update from 4.5.0 to 4.6.1
Steps to Reproduce (for Bugs)
php console diagnostics:run
Alterantively open the admin homepage (/index.php?module=CoreAdminHome&action=home&idSite=1&period=range&date=previous30). Here the "System Check" widget shows the same error as described above (Call to undefined function Piwik\piwik_fix_lbrace());
Your Environment
The text was updated successfully, but these errors were encountered: