Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] cannot run ./console after update from 4.16.0 to 5.0 #21775

Closed
4 tasks done
hafriz opened this issue Jan 7, 2024 · 2 comments
Closed
4 tasks done

[Bug] cannot run ./console after update from 4.16.0 to 5.0 #21775

hafriz opened this issue Jan 7, 2024 · 2 comments
Labels
invalid For issues or pull requests that are no longer relevant to Matomo core.

Comments

@hafriz
Copy link

hafriz commented Jan 7, 2024

What happened?

try to run ./console help and error come out

ERROR [04:47:41] 563594 Uncaught exception: TypeError: Symfony\Component\Console\Application::has(): Argument #1 ($name) must be of type string, null given, called in /www/analytics/core/Console.php on line 172 and defined in /www/analytics/vendor/symfony/console/Application.php:592
Stack trace:
#0 /www/analytics/core/Console.php(172): Symfony\Component\Console\Application->has()
#1 /www/analytics/core/Console.php(131): Piwik\Console->addCommandIfExists()
#2 /www/analytics/core/Console.php(85): Piwik\Console->doRunImpl()
#3 /www/analytics/vendor/symfony/console/Application.php(171): Piwik\Console->doRun()
#4 /www/analytics/console(32): Symfony\Component\Console\Application->run()
#5 {main}
Uncaught exception in /www/analytics/vendor/symfony/console/Application.php line 592:
Symfony\Component\Console\Application::has(): Argument #1 ($name) must be of type string, null given, called in /www/analytics/core/Console.php on line 172

What should happen?

console help information list will shown

How can this be reproduced?

ssh to server, go to matomo path execute ./console or php /www/analytics/console core:archive --url=https://website.com

Matomo version

5.0.1

PHP version

8.1

Server operating system

Ubuntu 20.04

What browsers are you seeing the problem on?

Chrome

Computer operating system

No response

Relevant log output

ERROR     [04:47:41] 563594  Uncaught exception: TypeError: Symfony\Component\Console\Application::has(): Argument #1 ($name) must be of type string, null given, called in /www/analytics/core/Console.php on line 172 and defined in /www/analytics/vendor/symfony/console/Application.php:592
Stack trace:
#0 /www/analytics/core/Console.php(172): Symfony\Component\Console\Application->has()
#1 /www/analytics/core/Console.php(131): Piwik\Console->addCommandIfExists()
#2 /www/analytics/core/Console.php(85): Piwik\Console->doRunImpl()
#3 /www/analytics/vendor/symfony/console/Application.php(171): Piwik\Console->doRun()
#4 /www/analytics/console(32): Symfony\Component\Console\Application->run()
#5 {main}
Uncaught exception in /www/analytics/vendor/symfony/console/Application.php line 592:
Symfony\Component\Console\Application::has(): Argument #1 ($name) must be of type string, null given, called in /www/analytics/core/Console.php on line 172

Validations

@hafriz hafriz added Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member labels Jan 7, 2024
@hafriz
Copy link
Author

hafriz commented Jan 7, 2024

The issue is close as the console cannot be run because of problem with compatibility of performanceAudit plugin

@hafriz hafriz closed this as completed Jan 7, 2024
@sgiehl sgiehl added invalid For issues or pull requests that are no longer relevant to Matomo core. and removed Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member labels Jan 7, 2024
@MatomoForumNotifications

This issue has been mentioned on Matomo forums. There might be relevant details there:

https://forum.matomo.org/t/error-when-try-to-run-archive/54733/4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid For issues or pull requests that are no longer relevant to Matomo core.
Projects
None yet
Development

No branches or pull requests

3 participants