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

Uncaught exception when running console core:archive in Matomo 4.8.0 #18909

Closed
Cyb0org opened this issue Mar 9, 2022 · 1 comment
Closed
Labels
invalid For issues or pull requests that are no longer relevant to Matomo core.

Comments

@Cyb0org
Copy link

Cyb0org commented Mar 9, 2022

INFO [2022-03-09 12:21:11] 28101  SCHEDULED TASKS
WARNING [2022-03-09 12:21:11] 28101  /www/plugins/IPtoCompany/Tasks.php(21): Deprecated - Optional parameter $settings declared before required parameter $staticContainer is implicitly treated as a required parameter - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)  
ERROR [2022-03-09 12:21:11] 28101  Uncaught exception: /www/vendor/php-di/php-di/src/Definition/Exception/InvalidDefinition.php(19): Entry "Piwik\Plugins\IPtoCompany\Tasks" cannot be resolved: Parameter $settings of __construct() has no value defined or guessable
Full definition:
Object (
    class = Piwik\Plugins\IPtoCompany\Tasks
    lazy = false
    __construct(
        $settings = #UNDEFINED#
        $staticContainer = get(Piwik\Container\StaticContainer)
    )
) [Query: , CLI mode: 1]

Steps to Reproduce (for Bugs)

  1. Upgrade to Matomo 4.8.0
  2. Use PHP 8.1 instead of PHP 7.4

Context

Standard cron running.

env php /www/console core:archive --url=https://domain.com/

Your Environment

  • Matomo Version: 4.8.0
  • PHP Version: 8.1
  • Server Operating System: Debian 10
  • Additionally installed plugins:
@Cyb0org Cyb0org added the Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. label Mar 9, 2022
@Findus23
Copy link
Member

Findus23 commented Mar 9, 2022

This is an issue in the third-party plugin IPtoCompany, so please report this to the author of the plugin.

But it seems like someone already did this and also created a fix:

Romain/Matomo-IP-to-Company#14

@Findus23 Findus23 closed this as completed Mar 9, 2022
@Findus23 Findus23 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. labels Mar 9, 2022
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

2 participants