Thomas
Forum Replies Created
-
@knut2 I was able to reproduce it that way. Installed WP-Matomo, Configured PHP mode, enabled WordPress toolbar. Then WP-Matomo was loading the other Matomo and this causes issues. I have changed our system report to hopefully detect this use case in the future and show a warning right away. Be great if you could double check and confirm this behaviour and ideally mark the support thread as resolved. Hoping this helps.
If I had to guess… from what I can see is that for example WP-Matomo is trying to extend the WordPress ToolBar to show some stats. This can be enabled in WP-Matomo in the “Show Statistics” tab. If then for example also the PHP API is configured, then WP-Matomo would bootstrap your regular Matomo On-Premise installation as part of every request when you are logged in.
You could likely create a user with a Matomo Super User role for example, and this error might not happen if that user is not allowed to view statistics as configured in WP-Matomo.
This is just a thought so far. Might be worth giving it a try. Generally, when you have Matomo for WordPress installed there should be no need to also use WP-Matomo.
It might even help in WP-Matomo in the “Connect to Matomo” tab to select for example “Self hosted HTTP API”. Can you confirm you have PHP configured in “Connect to Matomo: Matomo Mode”?
@tanrim Do you still see this error? Was Matomo installed successfully? If you see this only during installation this might be expected.
If you still see this error, and you can view the system report in the WordPress Dashboard => Matomo Analytics => System Report
could you send us the anonymised system report from the beginning of that page to wordpress at matomo dot org? If it fails to load the system report page, you may need to enable the safe mode see : https://matomo.org/faq/wordpress/i-have-a-problem-how-do-i-troubleshoot-and-enable-wp_debug/By adding this to your
wp-config.phpdefine( ‘MATOMO_SAFE_MODE’, true );
Thanks, I’ll have a look at the system report later and try to reproduce. I’d be curious to see if it works for you if you temporarily disable WP-Piwik/WP-Matomo.
While Matomo On-Premise has a separate DB, it seems to be loading the files from your Matomo On-Premise installation partially which may be due to WP-Piwik but not sure yet. I’ll try to find out more.
Awesome, thanks for letting me know. Glad it works now. And thank you for the
wp_normalize_pathhint, I’ll look into this now. Very appreciated.Sorry about that. Could you try https://github.com/matomo-org/wp-matomo/archive/develop.zip ?
Thanks for letting us know @apedog
I’ll adjust the plugin check cause currently we’re only checking for
ABSPATH . 'wp-content' === rtrim( WP_CONTENT_DIR, '/' )). So basically we’re checking forABSPATH . 'wp-content'and not also forABSPATH . '/wp-content'.Re
define( 'MATOMO_WP_ROOT_PATH', ABSPATH )for some reason we’re currently only supporting this as an environment variable but not as a constant. I will have a look later regarding the reason.I will start working on a patch and see what is happening in https://github.com/matomo-org/wp-matomo/pull/223
Maybe you could define content directory as
ABSPATH . 'wp-content'to fix it?@knut2 I’m trying some changes that might help. Just in case you are familiar with FTP or uploading files onto your server you could try and download https://github.com/matomo-org/wp-matomo/archive/updateinstalldb.zip then extract the files, and then upload these files into
/customers/0/5/0/atactic.be/httpd.www/wp-content/plugins/matomo/Now also seeing this path:
/customers/0/5/0/atactic.be/httpd.www/matomo/libs/Zend/Db/Adapter/Mysqli.phpin your comment. Is there a chance you already have Matomo On-Premise running on your WordPress server?Thanks for creating the issue!
Is there any chance you could paste the anonymised system report here or email it to us to wordpress at matomo.org ?
See
https://matomo.org/faq/wordpress/i-have-a-problem-how-do-i-troubleshoot-and-enable-wp_debug/You will probably need to add this to your
wp-config.php:define( 'MATOMO_SAFE_MODE', true );In order to avoid above error you are currently getting.
It seems like that Matomo config is maybe not loaded cause it should not use that Zend DB but WordPress DB.
Do you get this error directly after activating the plugin @knut2 ? Do you know if you see in the WordPress Dashboard the
Matomo Analyticsmenu item?@beecher The existing WP-Matomo will be slightly renamed soon to
WP-Matomo Integration (WP-Piwik)and we’ll also try to further recduce the confusion there. If you have any ideas or thoughts on namings and how they could be better differentiated, please let us know. Very appreciated your feedback.@benbois Apologies for that. Only one part of the readme was correctly updated but I forgot to update the other part in the description where it falsely says PHP 7.0
The plugin would actually work perfectly fine on PHP 7.0. However, in a few months we will be releasing a new major update where we already know we will require PHP 7.2. We found it would be unfair to get many installs from users using PHP 7.0 and PHP 7.1 and then a few months later they wouldn’t be able to receive an update anymore. This is why we decided to directly require PHP 7.2 even though it would work with PHP 7.0.
If you still want to use it in the meantime, you could technically change the value in the wp-content/plugins/matomo/readme.txt to
Requires PHP: 7.0and you could use it. However, in say 4-5 months time there will be an update requiring PHP 7.2 and you would need to make that change in the readme.txt after each update so I suppose this is not really a solution.If there’s any chance, it be great if you could update your PHP version considering it’s a not supported version anymore. I’m fully aware this is not always easy, and sometimes not even possible.
Exactly. The plugin includes everything you need. No need to install anything else.
BTW I have added more information to our FAQ: https://matomo.org/faq/wordpress/how-do-i-install-matomo-for-wordpress/ You can see the related PHP settings at the bottom of that page if that’s something you’re keen on.
Does that help you? Be great to mark it as resolved if so.
Hi there, I suppose you can’t install it through the WordPress directory within your WordPress directly?
The upload might fail because the ZIP file is rather large and likely your server has some limits configured on how much data can be uploaded max and / or after how many seconds to abort an upload in case it is taking too long.
If you can’t install it through WordPress directory by searching for our plugin in your WordPress, can you maybe unzip it and upload it to your server eg using ftp or ssh?
Totally aware of what you’re seeing and understand. Just btw there are a few more things that Matomo does by default which others maybe don’t like anonymising IP. Matomo can also easily configured without cookies. You can configure raw and reporting data retention to automatically eg delete raw data after 30 days, you can automatically anonymise various data and the same data is not used for any other purpose (like some others do) and not shared with a third party. There are also heaps of other ways to protect privacy etc. which other tools might not have.
Also need to differentiate between cookie consent and tracking consent.
There are some recommendations from institutions out there (eg in France and Berlin and I think other places) that you wouldn’t need to ask for tracking consent with Matomo and possibly not even for cookie consent in some cases. See eg https://www.datenschutz-berlin.de/fileadmin/user_upload/pdf/pressemitteilungen/2019/20191114-PM-Analyse_Trackingtools.pdfReally appreciate your comment, it’s a complex story as we all know. And as long as you don’t track personal data you wouldn’t need the tracking consent. As for the cookie consent it may be needed, we’ll be working though on something that you won’t need it for sure (no fingerprinting etc).