matomo-org / matomo-for-wordpress

Get a fully functioning Matomo Analytics for your WordPress. Star us on Github? +1. Matomo is the leading open alternative to Google Analytics that gives you full control over your data. Privacy is built-in. 100% data ownership, no one else can see your data. We love Pull Requests!
https://matomo.org
GNU General Public License v3.0
120 stars 25 forks source link

Matomo for WordPress is not showing any statistics / reports #881

Closed MooBoxWeb closed 1 year ago

MooBoxWeb commented 1 year ago

Hi! I just installed Matomo for Wordpress this week. The system shows real-time user and user-log, but there are no reports/statistics.

I allready worked through this article: https://matomo.org/faq/wordpress/matomo-for-wordpress-is-not-showing-any-statistics-not-archiving-how-do-i-fix-it/ and ended up at 6. create an issue... so may I ask for your help? Thanks in advance! Alexandra

Errors

Matomo

Endpoints

Crons

Vorgeschriebene Prüfungen

Optionale Prüfungen

Matomo Archive Warnings.txt

diosmosis commented 1 year ago

Hi @MooBoxWeb, it looks like the PHP binary that matomo detects is incompatible with one of your other wordpress plugins (woocommerce). Can you try the solution here: https://matomo.org/faq/how-to-solve-the-error-message-your-php-cli-version-is-not-compatible-with-the-matomo-requirements/ ? (ignore the part about checking that the php version is > php 7.2.5)

MooBoxWeb commented 1 year ago

Hi! I tried the solution you mentioned above, but there is still an error message and no reports are generated. Do you have any other suggestion? Thanks for your help! BR Alexandra grafik

Matomo.Archive.Warnings_20230927.txt

              # Errors

Matomo

Endpoints

Crons

Vorgeschriebene Prüfungen

Optionale Prüfungen

Matomo Settings

Logs

WordPress

WordPress Plugins

Server

PHP cli

Database

Browser

diosmosis commented 1 year ago

@MooBoxWeb the PHP version you specified is still incorrect, the version should not be 7.2. Please contact your hosting provider and ask for the correct one.

MooBoxWeb commented 1 year ago

Hi! In the posting from yesterday, you told me to ignore to check the PHP Version !? grafik My system was running with PHP 8.1.19 (and now I updated to 8.2.6) I again flushed the matomo cache and tried to build an archive manually - still get the error message :(

diosmosis commented 1 year ago

@MooBoxWeb apologies, I meant the part of the FAQ that says to check the version and for you to skip to asking your hosting provider where the correct php CLI executable is. Please ask your hosting provider where the correct PHP CLI executable is.

EDIT: Note, /usr/bin/php is the wrong value for you to use, you will need to ask your hosting provider where the PHP CLI executable for PHP 8.2 is and use what they tell you to use.

MooBoxWeb commented 1 year ago

Hi! I'm still getting error messages when trying to build a report - do you have any idea !?

Bildschirmfoto vom 2023-09-29 08-39-29 Matomo.Archive.Warnings_20230929.txt

diosmosis commented 1 year ago

@MooBoxWeb try /opt/plesk/php/8.2/etc/php. If that doesn't work try /opt/plesk/php/8.2/etc/php-cli. The path your hosting provider gave you is just a folder, they forgot to give you the actual executable name.

If neither of those work, your hosting provider needs to give you more details.

In case they take a long time to reply, here are some other ones you can try:

MooBoxWeb commented 1 year ago

Hi! today I finally got the information from my hostig provider with the path (/opt/plesk/php/8.2/bin/php -v) It still does not create any reports, but i think the warning message is different to last time!? errorlog_20231020.txt Do you have any other idea to solve this? Tanks for your efford! BR Alexandra

diosmosis commented 1 year ago

Hi @MooBoxWeb, can you try this path instead: /opt/plesk/php/8.2/bin/php ? (remove the -v)

MooBoxWeb commented 1 year ago

Hi! I also tried (/opt/plesk/php/8.2/bin/php) still getting the error warning. I sent your message "The path your hosting provider gave you is just a folder, they forgot to give you the actual executable name. " again to the provider... still hoping for a solution... :) BR Alexandra

diosmosis commented 1 year ago

@MooBoxWeb Let's try something else, can you add:

define( 'MATOMO_SUPPORT_ASYNC_ARCHIVING', false );

to your wp-config.php file? The file should be located at the root of your wordpress installation. Make sure to add the line before the other line in the file that says /* That's all, stop editing! Happy publishing. */. (If it doesn't work please don't post the contents of the file here as it contains sensitive information.)

MooBoxWeb commented 1 year ago

Now I get this error:

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

diosmosis commented 1 year ago

@MooBoxWeb where do you get this error? Can you post a screenshot? And would you be willing to provide access to your website to help me debug further? (If yes, please send an email to dizzy@innocraft.com.)

MooBoxWeb commented 1 year ago

Matomo > Diagnostics > Troubleshooting >clear cache > archive report

grafik login data followes via email

diosmosis commented 1 year ago

Closing this issue as I think things are working now. If not, let me know and I'll re-open this.