• Resolved sdepreiterbaise

    (@sdepreiterbaise)


    Hello here !

    When I installed the matomo plugin, I first got a fatal error, so I used the line of code: define( ‘MATOMO_SAFE_MODE’, true ); In order to be able to debug the error.

    Which allowed me to see this message:
    “PHP cli Version Your PHP cli version is not compatible with the Matomo requirements. Please upgrade your PHP cli version, otherwise, you might have some archiving errors MySQLi support missing Your PHP cli does not load the MySQLi extension. You might have archiving problems in Matomo but also other problems in your WordPress cron tasks. You should enable this extension”

    I saw that you could indicate in the wp-content/uploads/matomo/config/config.ini.php file the following line: php_binary_path=”/usr/bin/php” In order to indicate the php binary, what I did and the path is correct, I went to check on the server but the problem is still existing.

    I really don’t know how to fix this.
    If you have a solution, I’ll really be happy if you can share me that.

    My website configuration respect all the requirements of Matomo but I’ve this error, I don’t know why.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support dizzyatinnocraft

    (@dizzyatinnocraft)

    Hi @sdepreiterbaise, this issue usually occurs when there are multiple PHPs installed on a machine the CLI PHP executable that Matomo uses is incorrect. There are a couple ways to fix this, the easiest is to just enable archiving via HTTP requests. You can do this by going to Matomo Analytics > Settings > Advanced, and activating the “Enable archiving via HTTP requests” option.

    The other way would be to find on your server where the correct PHP executable is. The PHP version of that executable should match the one used to serve web requests (you can see what that is by looking at the Matomo Analytics diagnostics). Unfortunately, this can be annoying to look for as each hosting provider can put these things in different places.

    If your website gets a lot of traffic you might want to find the correct PHP executable, but otherwise, it would probably be fine to activate the “Enable archiving via HTTP requests” option.

    Thread Starter sdepreiterbaise

    (@sdepreiterbaise)

    Hi @dizzyatinnocraft, thanks for the answer, but I can’t activate this option because I don’t have access to options of plugin.
    My problem let just me to access to “System Report” so I can’t test this solution.

    I’ve found a part of code to add in wp-config.php for fix this problem :

    if (!defined('MATOMO_SUPPORT_ASYNC_ARCHIVING')) {
        define('MATOMO_SUPPORT_ASYNC_ARCHIVING', false);
    }

    But it doesn’t work for me.

    If you have any others solutions, I’m interested.

    Plugin Support dizzyatinnocraft

    (@dizzyatinnocraft)

    @sdepreiterbaise Apologies, I missed the part about the fatal error. The PHP CLI executable issue is unrelated to the fatal error. Is there a useful error message when the fatal error occurs? If not, to find what the fatal error is, can you:

    • add define('WP_DEBUG', true); and define('WP_DEBUG_LOG', true); to your wp-config.php
    • trigger the fatal error
    • then check for a debug.log file at /path/to/wordpress/wp-content/debug.log and look at its contents
    • (then remove the WP_DEBUG and WP_DEBUG_LOG constants)
    Plugin Support dizzyatinnocraft

    (@dizzyatinnocraft)

    Hi @sdepreiterbaise, were you able to follow my steps above?

    Plugin Support dizzyatinnocraft

    (@dizzyatinnocraft)

    Hi @sdepreiterbaise, I’m resolving this issue as there hasn’t been a response from you. Please feel free to reply again or create a new issue if you need further help.

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.