Open pier56 opened 6 years ago
Hm, interesting. I should say I've not kept track of Piwik developments since it was renamed.
Reading point (1), I was going to suggest the change you outline in point (2), which is putting in dummy credentials to satisfy the need for them, in the hope that the plugin would override them.
What do you get in your PHP/Apache logs when you make a tracking request? I wonder if it is trying to connect to the database but is failing? If so, that might mean the plugin is not being recognised at all.
It might be worth examining your logs to see if there are any warnings/errors from the database.
I used similar code to this plugin and it worked for me in the latest version of Matomo, 3.5.1 .
Couple of suggestions:
./console plugin:deactivate DatabaseConfiguration
./console plugin:activate DatabaseConfiguration
die(__METHOD__);
to getDatabaseConfig() and then visiting the Piwik admin to check you are successfully listening and handling the Db.getDatabaseConfig event. On an older version of Piwik, it looked like my plugin was installed but the events must have changed because getDatabaseConfig() was never called until I updated Piwik.If that's all fine and you can log in to the admin, then I think you have an issue with the tracking code. There is some troubleshooting on this Matomo FAQ.
HTH
I was facing similar issue earlier on, but I managed to find a solution for it. If you want to use this method it for Piwik's Tracker, add 'Tracker.getDatabaseConfig' => 'getDatabaseConfig'
in registerEvents in DatabaseConfiguration.php.
First of all, thank you for this awesome feature ! :+1: My problem is the following : 1) If I remove information from the config.ini.php file as explained in the readme (eg. host = ""...) Matomo doesn't seems to like it (error : "Matomo doesn't seems to be installed" when requesting to asynchronously track) 2) If I put random strings in this config file (eg. host = "XYZ"...) I can login in the Matomo admin, but tracking does not work. (No more error "Matomo doesn't seems to be installed", but I don't get tracked in frontend).
Thank you in advance for your answer. Cheers :)