Matomo error: 8192 while runing archive

Hello,
the archive function of my wordpress plugin of Matomo stoped working a couple of months ago.
I installed a fresh version of wordpress with only Matomo. Unfortunately it is still not working.

I found the following error code:
Matomo error: 8192: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in $abs_path/wp-includes/script-loader.php:331 => bootstrap.php:56; bootstrap.php:85; script-loader.php:331; script-loader.php:541; class-wp-hook.php:287; class-wp-hook.php:311; plugin.php:551; class.wp-scripts.php:167; class.wp-scripts.php:142; functions.wp-scripts.php:24; functions.wp-scripts.php:147; class-wp-widget-text.php:58; class-wp-widget.php:252; class-wp-widget-factory.php:102; class-wp-hook.php:287; class-wp-hook.php:311; plugin.php:484; widgets.php:1795; class-wp-hook.php:287; class-wp-hook.php:311; plugin.php:484; wp-settings.php:557; wp-config.php:130; wp-load.php:37; bootstrap.php:95; console:11;

Maybe someone here can help me out?

This is my system report maybe it helps?

				  # Matomo

* Matomo Plugin Version: 4.13.3
* Config exists and is writable.: Yes ("$abs_path/wp-content/uploads/matomo/config/config.ini.php" )
* JS Tracker exists and is writable.: Yes ("$abs_path/wp-content/uploads/matomo/matomo.js" )
* Plugin directories: Yes ([{"pluginsPathAbsolute":"$abs_path\/wp-content\/plugins\/matomo\/plugins","webrootDirRelativeToMatomo":"..\/"}])
* Tmp directory writable: Yes ($abs_path/wp-content/cache/matomo)
* Matomo Version: 4.13.3
* Matomo Blog idSite: 1
* Matomo Install Version: 4.13.3 (Install date: 2023-02-20 00:23:18)
* Upgrades outstanding: No
* Upgrade in progress: No

## Endpoints

* Matomo JavaScript Tracker URL:  ($site_url/wp-content/uploads/matomo/matomo.js)
* Matomo JavaScript Tracker - WP Rest API:  ($site_url/wp-json/matomo/v1/hit/)
* Matomo HTTP Tracking API:  ($site_url/wp-content/plugins/matomo/app/matomo.php)
* Matomo HTTP Tracking API - WP Rest API:  ($site_url/wp-json/matomo/v1/hit/)

## Crons

* Server time: 2023-03-07 19:08:39
* Blog time: 2023-03-07 20:08:39 (Below dates are shown in blog timezone)
* Sync users & sites: Next run: 2023-02-20 00:24:03 (-15 Tage 19 Stunden) ( Last started: Unknown. Last ended: Unknown. Interval: daily)
* Archive: Next run: 2023-02-20 00:23:20 (-15 Tage 19 Stunden) ( Last started: Unknown. Last ended: Unknown. Interval: hourly)
* Update GeoIP DB: Next run: 2023-02-20 00:23:53 (-15 Tage 19 Stunden) ( Last started: Unknown. Last ended: Unknown. Interval: matomo_monthly)

## Mandatory checks

* PHP-Version >= 7.2.5: ok 
* PDO Erweiterung: ok 
* PDO\MYSQL Erweiterung: ok 
* MYSQLI Erweiterung: ok 
* Weitere erforderliche Anforderungen: ok 
* Erforderliche Funktionen: ok 
* Benötigte PHP Konfiguration (php.ini): ok 
* Verzeichnisse mit Schreibzugriff: ok 
* Verzeichnisse mit Schreibzugriff auf Tag Manager: ok 

## Optional checks

* 64-bit PHP BinÀr: ok 
* Tracker-Status: ok 
* Speicherlimit: ok 
* Zeitzone: ok 
* Öffnen einer URL: ok 
* GD > 2.x + FreeType (Grafiken): ok 
* Andere Erweiterungen: ok 
* Andere Funktionen: ok 
* Dateisystem: ok 
* Letzter erfolgreicher Abschluss der Archivierung: ok 
* DatenbankfÀhigkeiten: ok 
* Warning Maximale PacketgrĂ¶ĂŸe: warning  (Es wird empfohlen die 'max_allowed_packet' GrĂ¶ĂŸe in Ihrer MySQL Datenbank auf mindestens 64MB zu erhöhen. Aktuell ist 16MB eingestellt. )
* Warning Standorterkennung: warning  (Der Standard-Standortanbieter bestimmt das Land, aus dem die Besucher eine Verbindung herstellen, anhand der von ihnen gewÀhlten Sprache. Dies ist nicht sehr genau, daher <a href="https://matomo.org/docs/geo-locate/" rel="noreferrer noopener" target="_blank">installieren und verwenden Sie eine Geolocation-Datenbank</a>. )
* Update ĂŒber HTTPS: ok 
* Supports Async Archiving: Yes
* Location provider ID: default
* Location provider available: Yes
* Location provider working: Yes
* Had visit in last 5 days: Yes
* Matomo URL: Yes ($site_url/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.3
* Core version: 4.13.3
* Last tracking settings update: 1676849006
* Last settings update: 1676849006

## Logs

* archive_boot: 2023-03-07 19:35:36 (Matomo error: 8192: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in $abs_path/wp-includes/script-loader.php:331 => bootstrap.php:56; bootstrap.php:85; script-loader.php:331; script-loader.php:541; class-wp-hook.php:287; class-wp-hook.php:311; plugin.php:551; class.wp-scripts.php:167; class.wp-scripts.php:142; functions.wp-scripts.php:24; functions.wp-scripts.php:147; class-wp-widget-text.php:58; class-wp-widget.php:252; class-wp-widget-factory.php:102; class-wp-hook.php:287; class-wp-hook.php:311; plugin.php:484; widgets.php:1795; class-wp-hook.php:287; class-wp-hook.php:311; plugin.php:484; wp-settings.php:557; wp-config.php:130; wp-load.php:37; bootstrap.php:95; console:11;)
* archive_boot: 2023-03-07 19:35:37 (Matomo error: 8192: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in $abs_path/wp-includes/script-loader.php:331 => bootstrap.php:56; bootstrap.php:85; script-loader.php:331; script-loader.php:541; class-wp-hook.php:287; class-wp-hook.php:311; plugin.php:551; class.wp-scripts.php:167; class.wp-scripts.php:142; functions.wp-scripts.php:24; functions.wp-scripts.php:147; class-wp-widget-text.php:58; class-wp-widget.php:252; class-wp-widget-factory.php:102; class-wp-hook.php:287; class-wp-hook.php:311; plugin.php:484; widgets.php:1795; class-wp-hook.php:287; class-wp-hook.php:311; plugin.php:484; wp-settings.php:557; wp-config.php:130; wp-load.php:37; bootstrap.php:95; console:11;)
* archive_boot: 2023-03-07 19:36:09 (Matomo error: 8192: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in $abs_path/wp-includes/script-loader.php:331 => bootstrap.php:56; bootstrap.php:85; script-loader.php:331; script-loader.php:541; class-wp-hook.php:287; class-wp-hook.php:311; plugin.php:551; class.wp-scripts.php:167; class.wp-scripts.php:142; functions.wp-scripts.php:24; functions.wp-scripts.php:147; class-wp-widget-text.php:58; class-wp-widget.php:252; class-wp-widget-factory.php:102; class-wp-hook.php:287; class-wp-hook.php:311; plugin.php:484; widgets.php:1795; class-wp-hook.php:287; class-wp-hook.php:311; plugin.php:484; wp-settings.php:557; wp-config.php:130; wp-load.php:37; bootstrap.php:95; console:11;)
* archive_boot: 2023-03-07 19:36:10 (Matomo error: 8192: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in $abs_path/wp-includes/script-loader.php:331 => bootstrap.php:56; bootstrap.php:85; script-loader.php:331; script-loader.php:541; class-wp-hook.php:287; class-wp-hook.php:311; plugin.php:551; class.wp-scripts.php:167; class.wp-scripts.php:142; functions.wp-scripts.php:24; functions.wp-scripts.php:147; class-wp-widget-text.php:58; class-wp-widget.php:252; class-wp-widget-factory.php:102; class-wp-hook.php:287; class-wp-hook.php:311; plugin.php:484; widgets.php:1795; class-wp-hook.php:287; class-wp-hook.php:311; plugin.php:484; wp-settings.php:557; wp-config.php:130; wp-load.php:37; bootstrap.php:95; console:11;)
* archive_boot: 2023-03-07 19:36:11 (Matomo error: 8192: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in $abs_path/wp-includes/script-loader.php:331 => bootstrap.php:56; bootstrap.php:85; script-loader.php:331; script-loader.php:541; class-wp-hook.php:287; class-wp-hook.php:311; plugin.php:551; class.wp-scripts.php:167; class.wp-scripts.php:142; functions.wp-scripts.php:24; functions.wp-scripts.php:147; class-wp-widget-text.php:58; class-wp-widget.php:252; class-wp-widget-factory.php:102; class-wp-hook.php:287; class-wp-hook.php:311; plugin.php:484; widgets.php:1795; class-wp-hook.php:287; class-wp-hook.php:311; plugin.php:484; wp-settings.php:557; wp-config.php:130; wp-load.php:37; bootstrap.php:95; console:11;)
* archive_boot: 2023-03-07 19:36:12 (Matomo error: 8192: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in $abs_path/wp-includes/script-loader.php:331 => bootstrap.php:56; bootstrap.php:85; script-loader.php:331; script-loader.php:541; class-wp-hook.php:287; class-wp-hook.php:311; plugin.php:551; class.wp-scripts.php:167; class.wp-scripts.php:142; functions.wp-scripts.php:24; functions.wp-scripts.php:147; class-wp-widget-text.php:58; class-wp-widget.php:252; class-wp-widget-factory.php:102; class-wp-hook.php:287; class-wp-hook.php:311; plugin.php:484; widgets.php:1795; class-wp-hook.php:287; class-wp-hook.php:311; plugin.php:484; wp-settings.php:557; wp-config.php:130; wp-load.php:37; bootstrap.php:95; console:11;)

# WordPress

* Home URL: $site_url
* Site URL: $site_url
* WordPress Version: 6.1.1
* Number of blogs: 1
* Multisite Enabled: No
* Network Enabled: No
* WP_DEBUG: No
* WP_DEBUG_DISPLAY: Yes
* WP_DEBUG_LOG: No
* DISABLE_WP_CRON: -
* FORCE_SSL_ADMIN: Yes
* WP_CACHE: No
* CONCATENATE_SCRIPTS: -
* COMPRESS_SCRIPTS: -
* COMPRESS_CSS: -
* ENFORCE_GZIP: -
* WP_LOCAL_DEV: -
* WP_CONTENT_URL: $site_url/wp-content
* WP_CONTENT_DIR: $abs_path/wp-content
* UPLOADS: -
* BLOGUPLOADDIR: -
* DIEONDBERROR: -
* WPLANG: -
* ALTERNATE_WP_CRON: -
* WP_CRON_LOCK_TIMEOUT: 60
* WP_DISABLE_FATAL_ERROR_HANDLER: -
* MATOMO_SUPPORT_ASYNC_ARCHIVING: -
* MATOMO_TRIGGER_BROWSER_ARCHIVING: -
* MATOMO_ENABLE_TAG_MANAGER: -
* MATOMO_SUPPRESS_DB_ERRORS: -
* MATOMO_ENABLE_AUTO_UPGRADE: -
* MATOMO_DEBUG: -
* MATOMO_SAFE_MODE: -
* MATOMO_GLOBAL_UPLOAD_DIR: -
* MATOMO_LOGIN_REDIRECT: -
* Permalink Structure: /%postname%/
* Possibly uses symlink: No
* Upload base url: $site_url/wp-content/uploads
* Upload base dir: $abs_path/wp-content/uploads
* Upload url: $site_url/wp-content/uploads/2023/03
* Custom upload_path: 
* Custom upload_url_path: 
* Compatible content directory: Yes

# WordPress Plugins

* Akismet Anti-Spam: 4.1.6
* Duplicator: 1.3.40.1
* Elementor: 2.9.13
* Give - Donation Plugin: 2.8.0
* Hello Dolly: 1.7.2
* Matomo Analytics - Ethical Stats. Powerful Insights.: 4.13.3
* Ultimate Addons for Gutenberg: 1.16.0
* Active Plugins: 1 (matomo)
* Theme: twentytwenty (twentytwenty)

# Server

* Server Info: Apache/2.4.29 (Ubuntu)
* Apache AddHandler support: Supported
* PHP OS: Linux
* PHP Version: 8.1.16
* PHP SAPI: apache2handler
* PHP Maxmind DB extension: Not loaded
* PHP Error Reporting: 4437 After bootstrap: 4437
* PHP Found Binary: php -q
* Timezone: UTC
* WP timezone: Europe/Berlin
* Locale: en_US
* User Locale: en_US
* Memory Limit: 8000M (At least 128MB recommended. Depending on your traffic 256MB or more may be needed.)
* WP Memory Limit: 40M
* WP Max Memory Limit: 8000M
* Timezone version: 0.system
* Time: 1678216119
* Max Execution Time: 30
* Max Post Size: 200000M
* Max Upload Size: 209715200000
* Max Input Vars: 1000
* Disabled PHP functions: No
* zlib.output_compression is off: Yes
* Curl Version: 7.58.0, OpenSSL/1.1.1
* Suhosin installed: No

# PHP cli

* PHP cli Version: 8.1.16
* MySQLi support: ok

# Database

* MySQL Version: 10.5.19
* Mysqli Connect: Yes
* Force MySQL over Mysqli: No
* DB Prefix: wp_
* DB CHARSET: utf8mb4
* DB COLLATE: 
* SHOW ERRORS: No
* SUPPRESS ERRORS: No
* Uses Socket: No
* Uses IPv6: No
* Matomo tables found: 60
* DB tables exist: Yes
* Matomo users found: 1
* Matomo sites found: 1
* Required permissions: OK

Hi @Planlos2023
I have no knowledge on Matomo for WP.
But maybe @innocraft can help?

1 Like

Hi @Planlos2023 ,

Matomo for WordPress relies on WP-CRON, you may have to investigate around that if there is any issues with archive. Please review https://matomo.org/faq/wordpress/matomo-for-wordpress-is-not-showing-any-statistics-not-archiving-how-do-i-fix-it/

1 Like