Closed TfGmohm closed 1 year ago
Hello @TfGmohm
Sorry to read that you encounter an issue with our plugin. It looks like you have one file missing. Could you try to uninstall and reinstall the plugin? (Note: by default, removing the plugin will delete all your Matomo data. If you have tracking data and want to keep them, please uncheck the "Matomo Analytics > Settings > Advanced > Delete all data on uninstall" Checkbox )
First of all: Thanks for helping me.
I uninstalled and reinstalled the plugin. The result is unfortunately the same.
The diagnotics says now:
Got invalid response from API request: ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=day&date=2023-01-17&format=json&trigger=archivephp. Response was \'PHP Warning: require_once(classes/WpMatomo/Logger.php): Failed to open stream: No such file or directory in $abs_path/wp-content/plugins/matomo/classes/WpMatomo/Settings.php on line 90 PHP Fatal error: Uncaught Error: Failed opening required \'classes/WpMatomo/Logger.php\' (include_path=\'.:/usr/share/php\') in $abs_path/wp-content/plugins/matomo/classes/WpMatomo/Settings.php:90 Stack trace: #0 [internal function]: matomo_plugin_autoloader() #1 $abs_path/wp-content/plugins/matomo/app/bootstrap.php(52): class_exists() #2 $abs_path/wp-content/plugins/matomo/app/bootstrap.php(85): matomo_log_message_no_display() #3 $abs_path/wp-content/plugins/matomo/shared.php(36): {closure}() #4 $abs_path/wp-content/plugins/matomo/shared.php(36): require_once(\'...\') #5 $abs_path/wp-content/plugins/matomo/classes/WpMatomo.php(50): matomo_plugin_autoloader() #6 $abs_path/wp-content/plugins/matomo/matomo.php(212): WpMatomo->__construct() #7 $abs_path/wp-settings.php(447): include_once(\'...\') #8 $abs_path/wp-config.php(88): require_once(\'...\') #9 $abs_path/wp-load.php(50): require_once(\'...\') #10 $abs_path/wp-content/plugins/matomo/app/bootstrap.php(95): require_once(\'...\') #11 $abs_path/wp-content/plugins/matomo/app/console(11): require_once(\'...\') #12 {main} thrown in $abs_path/wp-content/plugins/matomo/classes/WpMatomo/Settings.php on line 90
Hello @TfGmohm
Thank you.
How did you install our plugin?
Can you also check if you have the following file: ./wp-content/plugins/matomo/classes/WpMatomo/Admin/CookieConsent.php Which permissions are defined on this file and on the ./wp-content/plugins/matomo/classes/WpMatomo/Admin folder?
Kind regards
Mat
I installed the plugin from WP Admin Backend.
CookieConsent.php is there with permissions Write/Read/Read
Matomo/Admin Folder has 755.
Kind regards, Mohm
Hello @TfGmohm
Thank you.
Which is your hosting provider? Would you mind asking them if they use a security mechanism which check and quarantine content on plugins install?
Could you try to download our plugin from GitHub and upload it in the wp-content/plugins/matomo
folder and check if it fixes your issue?
Kind regards
Mat
Since we run a dedicated server there is no hosting provider with restrictions.
I reinstalled the plugin again AND I download the plugin from GitHub and upload it to the server overwriting all files there.
The result is still the same:
8 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:306; class-wp-hook.php:332; plugin.php:565; wp-cron.php:188;
Got invalid response from API request: ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=day&date=2023-01-19&format=json&trigger=archivephp. Response was \'PHP Warning: require_once(classes/WpMatomo/Logger.php): Failed to open stream: No such file or directory in $abs_path/wp-content/plugins/matomo/classes/WpMatomo/Settings.php on line 90 PHP Fatal error: Uncaught Error: Failed opening required \'classes/WpMatomo/Logger.php\' (include_path=\'.:/usr/share/php\') in $abs_path/wp-content/plugins/matomo/classes/WpMatomo/Settings.php:90 Stack trace: #0 [internal function]: matomo_plugin_autoloader() #1 $abs_path/wp-content/plugins/matomo/app/bootstrap.php(52): class_exists() #2 $abs_path/wp-content/plugins/matomo/app/bootstrap.php(85): matomo_log_message_no_display() #3 $abs_path/wp-content/plugins/matomo/shared.php(36): {closure}() #4 $abs_path/wp-content/plugins/matomo/shared.php(36): require_once(\'...\') #5 $abs_path/wp-content/plugins/matomo/classes/WpMatomo.php(50): matomo_plugin_autoloader() #6 $abs_path/wp-content/plugins/matomo/matomo.php(212): WpMatomo->__construct() #7 $abs_path/wp-settings.php(447): include_once(\'...\') #8 $abs_path/wp-config.php(88): require_once(\'...\') #9 $abs_path/wp-load.php(50): require_once(\'...\') #10 $abs_path/wp-content/plugins/matomo/app/bootstrap.php(95): require_once(\'...\') #11 $abs_path/wp-content/plugins/matomo/app/console(11): require_once(\'...\') #12 {main} thrown in $abs_path/wp-content/plugins/matomo/classes/WpMatomo/Settings.php on line 90
Hello @TfGmohm
Thank you. This error concerns your archiving process. But are you able to view the Matomo plugin pages in the WordPress back-office? If yes, could you post your system report available from the menu "Matomo Analytics > Diagnostics"? Are you also able to run the archiving process from the "Matomo Analytics > Diagnostics > Troubleshooting" page? Does it end in an error? And final question: do you plan to use the Matomo widgets available from the "Matomo Analytics > Summary" menu?
Kind regards
Mat
Hi Mat, I can see the Matomo pages at the WP backend. If I start the archiving process from Troubleshooting it end in the same error as above. End I don't plan to use Matomo widgets.
System report:
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
Matomo Plugin Version | 4.13.0 | -- | -- | -- Config exists and is writable. | Yes | "/var/www/vhosts/cx.vx.com/httpdocs/wp-content/uploads/matomo/config/config.ini.php" JS Tracker exists and is writable. | Yes | "/var/www/vhosts/cx.vx.com/httpdocs/wp-content/uploads/matomo/matomo.js" Plugin directories | Yes | [{"pluginsPathAbsolute":"\/var\/www\/vhosts\/cx.vx.com\/httpdocs\/wp-content\/plugins\/matomo\/plugins","webrootDirRelativeToMatomo":"..\/"}] Tmp directory writable | Yes | /var/www/vhosts/cx.vx.com/httpdocs/wp-content/cache/matomo Matomo Version | 4.13.0 | Matomo Blog idSite | 1 | Matomo Install Version | 4.13.0 | Install date: 2023-01-19 09:39:24 Upgrades outstanding | No | Upgrade in progress | No | Endpoints Matomo JavaScript Tracker URL | | https://cx.vx.com/wp-content/uploads/matomo/matomo.js Matomo JavaScript Tracker - WP Rest API | | https://cx.vx.com/wp-json/matomo/v1/hit/ Matomo HTTP Tracking API | | https://cx.vx.com/wp-content/plugins/matomo/app/matomo.php Matomo HTTP Tracking API - WP Rest API | | https://cx.vx.com/wp-json/matomo/v1/hit/ Crons Server time | 2023-01-20 09:08:57 | Blog time | 2023-01-20 10:08:57 | Below dates are shown in blog timezone Sync users & sites | Next run: 2023-01-21 09:41:56 (23 hours 32 min) | Last started: 2023-01-20 10:04:44 (-4 min 13s). Last ended: 2023-01-20 10:04:44 (-4 min 13s). Interval: daily Archive | Next run: 2023-01-20 10:39:34 (30 min 37s) | Last started: 2023-01-20 10:04:42 (-4 min 15s). Last ended: 2023-01-20 10:04:44 (-4 min 13s). Interval: hourly Update GeoIP DB | Next run: 2023-02-18 09:41:56 (28 days 23 hours) | Last started: 2023-01-19 09:41:57 (-1 days 0 hours). Last ended: 2023-01-19 09:41:58 (-1 days 0 hours). Interval: matomo_monthly Mandatory checks PHP version >= | ok | PDO extension | ok | PDO\MYSQL extension | ok | MYSQLI extension | ok | Other required extensions | ok | Required functions | ok | Required PHP configuration (php.ini) | ok | Directories with write access | ok | Directories with write access for Tag Manager | ok | Optional checks 64-bit PHP Binary | ok | Tracker status | ok | Memory limit | ok | Time zone | ok | Open URL | ok | PageSpeed is turned off | ok | GD > 2.x + FreeType (graphics) | ok | Other extensions | ok | Other functions | ok | Filesystem | ok | Last Successful Archiving Completion | warning | Archiving last ran successfully on Thursday, January 19, 2023 08:39:36 which is 1 days 00:29:21 ago Database abilities | ok | Max Packet Size | warning | It is recommended to configure a 'max_allowed_packet' size in your MySQL database of at least 64MB. Configured is currently 16MB. Geolocation | ok | Update over HTTPS | ok | Supports Async Archiving | Yes | Location provider ID | geoip2php | Location provider available | Yes | Location provider working | Yes | Had visit in last 5 days | Yes | Matomo URL | Yes | https://cx.vx.com/wp-content/plugins/matomo/app/ Matomo Settings Track mode | default | Track codeposition | footer | Track api endpoint | default | Track js endpoint | default | Version history | 4.13.0 | Core version | 4.13.0 | Last tracking settings update | 1674117653 | Last settings update | 1674117653 |
I get this error and have no idea how to handle it. Tried now different PHP Versions (8.0, 8.1, 8.4):
Matomo Archive Warnings: 'Got invalid response from API request: ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=day&date=2023-01-13&format=json&trigger=archivephp. Response was \'PHP Warning: require_once(classes/WpMatomo/Logger.php): Failed to open stream: No such file or directory in $abs_path/wp-content/plugins/matomo/classes/WpMatomo/Settings.php on line 90 PHP Fatal error: Uncaught Error: Failed opening required \'classes/WpMatomo/Logger.php\' (include_path=\'.:/usr/share/php\') in $abs_path/wp-content/plugins/matomo/classes/WpMatomo/Settings.php:90