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
119 stars 25 forks source link

Big issue, please help us out #624

Closed JMVision2022 closed 2 years ago

JMVision2022 commented 2 years ago

Hey guys,

i cant track any users on my site. The graph dont work. But the live-tracking works. Please help me out.

14 total errors during this script execution, please investigate and try and fix these errors. => CronArchive.php:625; CronArchive.php:618; CronArchive.php:280; Access.php:670; CronArchive.php:284; ScheduledTasks.php:332; class-wp-hook.php:305; class-wp-hook.php:331; plugin.php:524; wp-cron.php:138;

Got invalid response from API request: ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=day&date=2022-07-07&format=json&trigger=archivephp. Response was \'PHP Parse error: syntax error, unexpected \'?\', expecting variable (T_VARIABLE) in $abs_path/wp-content/plugins/woocommerce/vendor/symfony/polyfill-php80/bootstrap.php on line 29

mattmary commented 2 years ago

Hi @JMVision2022

You have an archiving error which explains why graphs are empty. This is confirmed by the error log you reported.

Can you copy paste the content of the line 29 of the file wp-content/plugins/woocommerce/vendor/symfony/polyfill-php80/bootstrap.php?

Can you try to reinstall your woocommerce plugin?

Kind regards

Mat

JMVision2022 commented 2 years ago

Hi Mat,

thanks for your answer! Sorry I cant reinstall Woocommerce, because its a very big shop in different languages.

Here is the line 29, its the second:

if (!function_exists('str_contains')) { function str_contains(?string $haystack, ?string $needle): bool { return p\Php80::str_contains($haystack ?? '', $needle ?? ''); } }

mattmary commented 2 years ago

Hi @JMVision2022

Can you copy paste your system report available from the menu Matomo Analytics > Diagnostics ? Which PHP version are you using?

Kind regards

Mat

JMVision2022 commented 2 years ago

PHP Version: PHP/7.3.15

      # Errors

Matomo

Endpoints

Crons

Vorgeschriebene Prüfungen

Optionale Prüfungen

Matomo Settings

Logs

WordPress

WordPress Plugins

MU Plugins

Plugins

Server

Database

Browser

JMVision2022 commented 2 years ago

Hi @JMVision2022

Can you copy paste your system report available from the menu Matomo Analytics > Diagnostics ? Which PHP version are you using?

Kind regards

Mat

Do you find something?

mattmary commented 2 years ago

Hi @JMVision2022

Can you give me the output of the following shell command: php -v

Kind regards

Mat

mattmary commented 2 years ago

Hello @JMVision2022

Maybe you did not get this previous comment notification. Would you mind give your php cli version by using the php -v shell command? Kind regards

Mat

mattmary commented 2 years ago

Hi @JMVision2022

Without any answers, I close this issue. Feel free to open a new one if you request further support.

Kind regards

Mat