Closed Chardonneaur closed 1 year ago
Hey,
Thank for the report :)
This is weird since that part of the code comes from the command generator that Matomo provides for plugin development; Can you tell me a bit about your environment (PHP / Matomo Version, what OS in what version)? And the command you used?
Sebastian Elisa
Sure, ok so i guess it is because I have Matomo v5, correct?
force_ssl = 1
to the General
section in your Matomo config/config.ini.php file.Hmm I've only tested up to 4.15.1 since this is the latest stable release. And yes, this seems to be the issue because according to the changelog:
To encapsulate plugin commands from directly using any symfony console dependency our class Piwik\Plugins\ConsoleCommand has been rewritten. To migrate your commands you need to apply some changes: Methods like run, execute, interact or initialize can no longer be overwritten.
I'll look into it, but probably after 2023-09-20 'cause I decided to finish high school next to work and on the 19th I've my last exam :)
Hello, sorry for the late reply but I got derailed by life :sweat_smile: Anyway in the 5-dev branch there now is a version for Matomo 5.
Hello,
I tried to use the plugin today and when I try to import the json file, here is the answer I am getting: PHP Fatal error: Cannot override final method Piwik\Plugin\ConsoleCommand::execute() in /var/www/html/udemy/matomo/plugins/VipDetector/Commands/ImportData.php on line 25 I tried both the two examples you are providing as json file.
Hope that helps,