• Resolved reeeno

    (@reeeno)


    Hello,

    I’m using the Matomo plugin 4.15.0 on WordPress 6.2.2 (both the newest). On the “Matomo Diagnostics System report” I see an error message about the “PHP cli Version”. The second column says:

    Usage: php8.1 [-q] [-h] [-s] [-v] [-i] [-f <file>] php8.1 <file> [args...] -a Run interactively -b <address:port>|<port> Bind Path for external FASTCGI Server mode -C Do not chdir to the script's directory -c <path>|<file> Look for php.ini file in this directory -n No php.ini file will be used -d foo[=bar] Define INI entry foo with value 'bar' -e Generate extended information for debugger/profiler -f <file> Parse <file>. Implies `-q' -h This help -i PHP information -l Syntax check only (lint) -m Show compiled in modules -q Quiet-mode. Suppress HTTP Header output. -s Display colour syntax highlighted source. -v Version number -w Display source with stripped comments and whitespace. -z <file> Load Zend extension <file>. -T <count> Measure execution time of script repeated <count> times.

    The third column says: Your PHP cli version is not compatible with the Matomo requirements. Please upgrade your PHP cli version, otherwise, you might have some archiving errors

    Screenshot: https://imgur.com/a/su0Uepb

    The link says “Matomo requires PHP version 7.2.5 or greater”, but according to the message, 8.1 is available and used?

    I tried to change php_binary_path in ./wp-content/uploads/matomo/config/config.ini.php to /usr/bin/php8.1 and /usr/bin/php8.1-cli according to https://matomo.org/faq/how-to-solve-the-error-message-your-php-cli-version-is-not-compatible-with-the-matomo-requirements/ (and cleared the cache afterwards) but the output in the diagnosis doesn’t change.

    There are a lot of PHP versions available on my hosting environment. Maybe Matomo is somehow confused about this…

    php php-config8.1 php5.5 php8.0-cli phpize7.1
    php-config4.4 php-config8.2 php5.5-cli php8.1 phpize7.3
    php-config5.2 php4 php6 php8.1-cli phpize7.4
    php-config5.4 php4.4 php7.1 php8.2 phpize8.0
    php-config5.5 php4.4-cli php7.1-cli php8.2-cli phpize8.1
    php-config6 php5 php7.3 phpize4.4 phpize8.2
    php-config7.1 php5.2 php7.3-cli phpize5.2
    php-config7.3 php5.2-cli php7.4 phpize5.4
    php-config7.4 php5.4 php7.4-cli phpize5.5
    php-config8.0 php5.4-cli php8.0 phpize6

    Apart from this Matomo seems to work fine, so there’s no real issue besides the warning message.

    I changed php_binary_path to /usr/bin/php8.2-cli but the error message still says the same about 8.1. Either I have some other caching issues or thew config isn’t read properly.

    config.ini.php looks like this:
    [General]
    force_ssl = 1
    login_allow_logme = 1
    assume_secure_protocol = 1
    trusted_hosts[] = "https://www.redacted.tld/"
    php_binary_path="/usr/bin/php8.2-cli"

    • This topic was modified 2 years, 8 months ago by reeeno.
    • This topic was modified 2 years, 8 months ago by reeeno.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter reeeno

    (@reeeno)

    According to the plugin Query Monitor Matomo tries to read the URI /wp-content/plugins/matomo/app/config/global.ini.php via a HTTP GET request? Seems starnge to me, as there’s a <?php exit: ?> on top of the file, so it never outputs anything

    Screenshot

    • This reply was modified 2 years, 8 months ago by reeeno.
    Plugin Support emermatomo

    (@emermatomo)

    Hello @reeeno sorry to hear you’re having trouble with Matomo for WordPress. For us to investigate on this further, could you please send us a full copy of your system check report?

    Thread Starter reeeno

    (@reeeno)

    Hello,

    please see here on https://pastebin.com/QTaqjyNb or below.

    I changed the WordPress language to English but for some reason, the Matomo pages in the WordPress admin still stay in German.

    Errors

    • Error PHP cli Version: Usage: php8.1 [-q] [-h] [-s] [-v] [-i] [-f ]
      php8.1 [args…]
      -a Run interactively
      -b | Bind Path for external FASTCGI Server mode
      -C Do not chdir to the script’s directory
      -c | Look for php.ini file in this directory
      -n No php.ini file will be used
      -d foo[=bar] Define INI entry foo with value ‘bar’
      -e Generate extended information for debugger/profiler
      -f Parse . Implies `-q'<br>-h This help<br>-i PHP information<br>-l Syntax check only (lint)<br>-m Show compiled in modules<br>-q Quiet-mode. Suppress HTTP Header output.<br>-s Display colour syntax highlighted source.<br>-v Version number<br>-w Display source with stripped comments and whitespace.<br>-z Load Zend extension .<br>-T Measure execution time of script repeated times. (Your PHP cli version is not compatible with the <a href=”https://matomo.org/faq/on-premise/matomo-requirements/&#8221; target=”_blank” rel=”noreferrer noopener”>Matomo requirements</a>. Please upgrade your PHP cli version, otherwise, you might have some archiving errors)</li> <li>Error MySQLi support: missing (Your PHP cli does not load the MySQLi extension. You might have archiving problems in Matomo but also others problems in your WordPress cron tasks. You should enable this extension)</li> </ul> <p class=””>Matomo</p> <ul> <li>Matomo Pluginversion: 4.15.0</li> <li>Config existiert und ist beschreibbar.: Ja (“$abs_path/wp-content/uploads/matomo/config/config.ini.php” )</li> <li>JS Tracker existiert und ist beschreibbar.: Ja (“$abs_path/wp-content/uploads/matomo/matomo.js” )</li> <li>Plugin-Verzeichnisse: Yes ([{“pluginsPathAbsolute”:”$abs_path\/wp-content\/plugins\/matomo\/plugins”,”webrootDirRelativeToMatomo”:”..\/”}])</li> <li>Tmp-Verzeichnis schreibbar: Yes ($abs_path/wp-content/cache/matomo)</li> <li>Matomo Version: 4.15.0</li> <li>Matomo Blog idSite: 1</li> <li>Installierte Matomo-Version: 4.2.0 (Install date: 2021-05-15 10:07:29)</li> <li>Upgrades outstanding: No</li> <li>Upgrade in progress: No</li> </ul> <p class=””>Endpoints</p> <ul> <li>Matomo JavaScript Tracker URL: ($site_url/wp-content/uploads/matomo/matomo.js)</li> <li>Matomo JavaScript Tracker – WP Rest API: ($site_url/wp-json/matomo/v1/hit/)</li> <li>Matomo HTTP Tracking API: ($site_url/wp-content/plugins/matomo/app/matomo.php)</li> <li>Matomo HTTP Tracking API – WP Rest API: ($site_url/wp-json/matomo/v1/hit/)</li> </ul> <p class=””>Crons</p> <ul> <li>Server-Zeit: 2023-07-31 07:01:27</li> <li>Blog-Zeit: 2023-07-31 09:01:27 (Die nachfolgenden Daten werden in der Blog-Zeitzone angezeigt)</li> <li>Sync users & sites: Next run: 2023-07-31 12:22:40 (3 hours 21 min) ( Last started: 2023-07-30 12:25:29 (-20 hours 35 min). Last ended: 2023-07-30 12:25:30 (-20 hours 35 min). Interval: daily)</li> <li>Archive: Next run: 2023-07-31 09:22:35 (21 min 8s) ( Last started: 2023-07-31 08:25:03 (-36 min 24s). Last ended: 2023-07-31 08:25:21 (-36 min 6s). Interval: hourly)</li> <li>Update GeoIP DB: Next run: 2023-08-27 12:22:43 (27 days 3 hours) ( Last started: 2023-07-28 12:22:43 (-2 days 20 hours). Last ended: 2023-07-28 12:22:44 (-2 days 20 hours). Interval: matomo_monthly)</li> </ul> <p class=””>Vorgeschriebene Prüfungen</p> <ul> <li>PHP version >= 7.2.5: ok</li> <li>PDO extension: ok</li> <li>PDO\MYSQL extension: ok</li> <li>MYSQLI extension: ok</li> <li>Other required extensions: ok</li> <li>Required functions: ok</li> <li>Required PHP configuration (php.ini): ok</li> <li>Directories with write access: ok</li> <li>Directories with write access for Tag Manager: ok</li> </ul> <p class=””>Optionale Prüfungen</p> <ul> <li>64-bit PHP Binary: ok</li> <li>Tracker status: ok</li> <li>Memory limit: ok</li> <li>Time zone: ok</li> <li>Open URL: ok</li> <li>GD > 2.x + FreeType (graphics): ok</li> <li>Other extensions: ok</li> <li>Other functions: ok</li> <li>Filesystem: ok</li> <li>Last Successful Archiving Completion: ok</li> <li>Database abilities: ok</li> <li>Max Packet Size: ok</li> <li>Geolocation: ok</li> <li>Update over HTTPS: ok</li> <li>Supports Async Archiving: No</li> <li>Location provider ID: geoip2php</li> <li>Location provider available: Yes</li> <li>Location provider working: Yes</li> <li>Had visit in last 5 days: Yes</li> <li>Matomo URL: Yes ($site_url/wp-content/plugins/matomo/app/)</li> </ul> <p class=””>Matomo Settings</p> <ul> <li>Track mode: manually</li> <li>Track codeposition: footer</li> <li>Track api endpoint: default</li> <li>Track js endpoint: default</li> <li>Version history: 4.15.0, 4.14.2, 4.14.1, 4.13.5, 4.13.4</li> <li>Core version: 4.15.0</li> <li>Last tracking settings update: 1621094973</li> <li>Last settings update: 1621925906</li> <li>Track search: Yes</li> <li>Track 404: Yes</li> <li>Track jserrors: Yes</li> <li>Show get started page: 0</li> </ul> <p class=””>Logs</p> <ul> <li>archive_boot: 2023-07-31 02:25:09 (Matomo error: 8192: Creation of dynamic property AWS_Integrations::$child_theme is deprecated in $abs_path/wp-content/plugins/advanced-woo-search/includes/class-aws-integrations.php:53 => bootstrap.php:56; bootstrap.php:85; class-aws-integrations.php:53; class-aws-integrations.php:39; advanced-woo-search.php:189; class-wp-hook.php:308; class-wp-hook.php:332; plugin.php:517; wp-settings.php:623; wp-config.php:134; wp-load.php:50; bootstrap.php:95; console:11;)</li> <li>archive_boot: 2023-07-31 02:25:13 (Matomo error: 8192: Creation of dynamic property AWS_Integrations::$child_theme is deprecated in $abs_path/wp-content/plugins/advanced-woo-search/includes/class-aws-integrations.php:53 => bootstrap.php:56; bootstrap.php:85; class-aws-integrations.php:53; class-aws-integrations.php:39; advanced-woo-search.php:189; class-wp-hook.php:308; class-wp-hook.php:332; plugin.php:517; wp-settings.php:623; wp-config.php:134; wp-load.php:50; bootstrap.php:95; console:11;)</li> <li>archive_boot: 2023-07-31 08:25:05 (Matomo error: 8192: Creation of dynamic property AWS_Integrations::$child_theme is deprecated in $abs_path/wp-content/plugins/advanced-woo-search/includes/class-aws-integrations.php:53 => bootstrap.php:56; bootstrap.php:85; class-aws-integrations.php:53; class-aws-integrations.php:39; advanced-woo-search.php:189; class-wp-hook.php:308; class-wp-hook.php:332; plugin.php:517; wp-settings.php:623; wp-config.php:134; wp-load.php:50; bootstrap.php:95; console:11;)</li> <li>archive_boot: 2023-07-31 08:25:11 (Matomo error: 8192: Creation of dynamic property AWS_Integrations::$child_theme is deprecated in $abs_path/wp-content/plugins/advanced-woo-search/includes/class-aws-integrations.php:53 => bootstrap.php:56; bootstrap.php:85; class-aws-integrations.php:53; class-aws-integrations.php:39; advanced-woo-search.php:189; class-wp-hook.php:308; class-wp-hook.php:332; plugin.php:517; wp-settings.php:623; wp-config.php:134; wp-load.php:50; bootstrap.php:95; console:11;)</li> <li>archive_boot: 2023-07-31 08:25:14 (Matomo error: 8192: Creation of dynamic property AWS_Integrations::$child_theme is deprecated in $abs_path/wp-content/plugins/advanced-woo-search/includes/class-aws-integrations.php:53 => bootstrap.php:56; bootstrap.php:85; class-aws-integrations.php:53; class-aws-integrations.php:39; advanced-woo-search.php:189; class-wp-hook.php:308; class-wp-hook.php:332; plugin.php:517; wp-settings.php:623; wp-config.php:134; wp-load.php:50; bootstrap.php:95; console:11;)</li> <li>archive_boot: 2023-07-31 08:25:18 (Matomo error: 8192: Creation of dynamic property AWS_Integrations::$child_theme is deprecated in $abs_path/wp-content/plugins/advanced-woo-search/includes/class-aws-integrations.php:53 => bootstrap.php:56; bootstrap.php:85; class-aws-integrations.php:53; class-aws-integrations.php:39; advanced-woo-search.php:189; class-wp-hook.php:308; class-wp-hook.php:332; plugin.php:517; wp-settings.php:623; wp-config.php:134; wp-load.php:50; bootstrap.php:95; console:11;)</li> </ul> <p class=””>WordPress</p> <ul> <li>Home URL: $site_url</li> <li>Site URL: $site_url</li> <li>WordPress Version: 6.2.2</li> <li>Number of blogs: 1</li> <li>Multisite Enabled: No</li> <li>Network Enabled: No</li> <li>WP_DEBUG: No</li> <li>WP_DEBUG_DISPLAY: Yes</li> <li>WP_DEBUG_LOG: No</li> <li>DISABLE_WP_CRON: Yes</li> <li>FORCE_SSL_ADMIN: Yes</li> <li>WP_CACHE: Yes</li> <li>CONCATENATE_SCRIPTS: -</li> <li>COMPRESS_SCRIPTS: -</li> <li>COMPRESS_CSS: -</li> <li>ENFORCE_GZIP: -</li> <li>WP_LOCAL_DEV: -</li> <li>WP_CONTENT_URL: $site_url/wp-content</li> <li>WP_CONTENT_DIR: $abs_path/wp-content</li> <li>UPLOADS: -</li> <li>BLOGUPLOADDIR: -</li> <li>DIEONDBERROR: -</li> <li>WPLANG: en_US</li> <li>ALTERNATE_WP_CRON: -</li> <li>WP_CRON_LOCK_TIMEOUT: 60</li> <li>WP_DISABLE_FATAL_ERROR_HANDLER: -</li> <li>MATOMO_SUPPORT_ASYNC_ARCHIVING: -</li> <li>MATOMO_TRIGGER_BROWSER_ARCHIVING: -</li> <li>MATOMO_ENABLE_TAG_MANAGER: -</li> <li>MATOMO_SUPPRESS_DB_ERRORS: -</li> <li>MATOMO_ENABLE_AUTO_UPGRADE: -</li> <li>MATOMO_DEBUG: -</li> <li>MATOMO_SAFE_MODE: -</li> <li>MATOMO_GLOBAL_UPLOAD_DIR: -</li> <li>MATOMO_LOGIN_REDIRECT: -</li> <li>Permalink Structure: /articles/%year%/%monthnum%/%day%/%postname%/</li> <li>Possibly uses symlink: No</li> <li>Upload base url: $site_url/wp-content/uploads</li> <li>Upload base dir: $abs_path/wp-content/uploads</li> <li>Upload url: $site_url/wp-content/uploads/2023/07</li> <li>Custom upload_path:</li> <li>Custom upload_url_path:</li> <li>Compatible content directory: Yes</li> </ul> <p class=””>WordPress Plugins</p> <ul> <li>Advanced Woo Search: 2.84</li> <li>Autoptimize: 3.1.8.1</li> <li>Classic Widgets: 0.3</li> <li>Cookie Notice & Compliance for GDPR / CCPA: 2.4.9</li> <li>Germanized for WooCommerce: 3.13.3</li> <li>Hello Dolly: 1.7.2</li> <li>Matomo Analytics – Ethical Stats. Powerful Insights.: 4.15.0</li> <li>NDJ Shipping: 1.0.1</li> <li>Post SMTP: 2.5.9</li> <li>Query Monitor: 3.13.1</li> <li>SQLite Object Cache: 1.3.4</li> <li>The SEO Framework: 4.2.8</li> <li>Widget Context: 1.3.2</li> <li>WooCommerce: 7.9.0</li> <li>WP Crontrol: 1.15.3</li> <li>WP Super Cache: 1.9.4</li> <li>Active Plugins: 15 (query-monitor advanced-woo-search autodescription autoptimize classic-widgets cookie-notice matomo ndj-shipping post-smtp sqlite-object-cache widget-context woocommerce-germanized woocommerce wp-crontrol wp-super-cache)</li> <li>Warning Nicht kompatible Plugins: 1 (post-smtp Matomo may work fine when using these plugins but there may be some issues. For more information See <a href=”https://matomo.org/faq/wordpress/which-plugins-is-matomo-for-wordpress-known-to-be-not-compatible-with/&#8221; target=”_blank” rel=”noreferrer noopener”>this FAQ</a> The PDF report files from the email reports will be missing when the PostSMTP mode is selected but it works when the PHPMailer mode is selected.)</li> <li>Theme: storefront (storefront-ndj)</li> </ul> <p class=””>Server</p> <ul> <li>Server Info: Apache</li> <li>Apache AddHandler support: Supported</li> <li>PHP OS: Linux</li> <li>PHP Version: 8.1.21</li> <li>PHP SAPI: cgi-fcgi</li> <li>PHP Binary Name: /usr/lib/cgi-bin/php8.1</li> <li>PHP Maxmind DB extension: Not loaded</li> <li>PHP Error Reporting: After bootstrap: 4437</li> <li>PHP Found Binary: /usr/lib/cgi-bin/php8.1 -q</li> <li>Timezone: UTC</li> <li>WP timezone: Europe/Berlin</li> <li>Locale: de_DE_formal</li> <li>User Locale: en_US</li> <li>Memory Limit: -1 (At least 128MB recommended. Depending on your traffic 256MB or more may be needed.)</li> <li>WP Memory Limit: 40M</li> <li>WP Max Memory Limit: -1</li> <li>Timezone version: 2023.3</li> <li>Time: 1690786889</li> <li>Max Execution Time: 50000</li> <li>Max Post Size: 64M</li> <li>Max Upload Size: 67108864</li> <li>Max Input Vars: 5000</li> <li>Disabled PHP functions: No</li> <li>zlib.output_compression is off: Yes</li> <li>Curl Version: 7.64.0, OpenSSL/1.1.1n</li> <li>Suhosin installed: No</li> </ul> <p class=””>PHP cli</p> <ul> <li>Error PHP cli Version: Usage: php8.1 [-q] [-h] [-s] [-v] [-i] [-f ]<br>php8.1 [args…]<br>-a Run interactively<br>-b | Bind Path for external FASTCGI Server mode<br>-C Do not chdir to the script’s directory<br>-c | Look for php.ini file in this directory<br>-n No php.ini file will be used<br>-d foo[=bar] Define INI entry foo with value ‘bar'<br>-e Generate extended information for debugger/profiler<br>-f Parse . Implies `-q’
      -h This help
      -i PHP information
      -l Syntax check only (lint)
      -m Show compiled in modules
      -q Quiet-mode. Suppress HTTP Header output.
      -s Display colour syntax highlighted source.
      -v Version number
      -w Display source with stripped comments and whitespace.
      -z Load Zend extension .
      -T Measure execution time of script repeated times. (Your PHP cli version is not compatible with the Matomo requirements. Please upgrade your PHP cli version, otherwise, you might have some archiving errors)
    • Error MySQLi support: missing (Your PHP cli does not load the MySQLi extension. You might have archiving problems in Matomo but also others problems in your WordPress cron tasks. You should enable this extension)

    Database

    • MySQL Version: 5.7.41
    • Mysqli Connect: Yes
    • Force MySQL over Mysqli: No
    • DB Prefix: wphwk_
    • DB CHARSET: utf8mb4
    • DB COLLATE:
    • SHOW ERRORS: No
    • SUPPRESS ERRORS: No
    • Uses Socket: No
    • Uses IPv6: No
    • Matomo tables found: 163
    • DB tables exist: Yes
    • Matomo users found: 3
    • Matomo sites found: 1
    • Erforderliche Berechtigungen: Ok

    Browser

    • Browser: (Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0)
    • Language: de,en-us,en

    • This reply was modified 2 years, 8 months ago by reeeno.
    • This reply was modified 2 years, 8 months ago by James Huff.
    Plugin Support emermatomo

    (@emermatomo)

    Hello @reeeno thank you for sending additional information. Based on the error report, this issue needs to be address “Error MySQLi support: missing (Your PHP cli does not load the MySQLi extension.” This is something that we do not support however, to help you out, I made some research and found this link: https://stackoverflow.com/questions/10646655/the-mysqli-extension-is-missing-please-check-your-php-configuration

    Kindly review the link or it would be better if you will reach out to your hosting service provider for assistance.

    Thread Starter reeeno

    (@reeeno)

    Thanks I will try this!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘PHP cli version is not compatible with the Matomo requirements’ is closed to new replies.