• Resolved hadriencab

    (@hadriencab)


    Hello,

    I’m trying to install Matomo on my website but I’m having big troubles to make it work properly.
    It works fine on pre-production website but doesn’t work on production (same config though).
    At first I encountered a blank page when activating the plugin and a 500 error while accessing my WordPress admin.
    After disabling multisite (PHP Error) on the matomo plugin and enabling matomo safe mode, I could finally see the dashboard.
    But the diagnostics page shows the common error with “PHP CLI Version”.
    I tried the solution given on several topics but it doesn’t work.

    Any idea how I could make this work ?
    Thanks a lot,

    Hadrien

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter hadriencab

    (@hadriencab)

    PS : The inital error is similar to this topic.
    Uncaught Error: Class 'Piwik\Plugins\SitesManager\Model' not found in wp-content/plugins/matomo/classes/WpMatomo/Admin/SystemReport.php:997
    And if I try to reactivate the multisite check it crashes again. My modification looks simply like this : comments on SystemReports files from l.990 to l.999

    You suggested a conflict with another plugin but all the plugins I have on production are the same I have on my developpement site.

    Here is a link to my systemreport :

    https://privatebin.net/?16d6092995ec4e84#BZkFapEURFYrm5wd5KAMGxh25D5YCfGFFZJ3WKzPbNJs

    Plugin Support emermatomo

    (@emermatomo)

    Hello @hadriencab This have been a known issue. Kindly follow the steps on this guide on How to solve the error message “Your PHP CLI version is not compatible with the Matomo requirements”

    Please let us know how it goes.

    Thread Starter hadriencab

    (@hadriencab)

    Hello,
    I have already tried this and it doesn’t work.
    My PHP-CLI path is /usr/bin/php 
    When I click on the “clear Matomo cache” button the page becomes blank so I don’t really know if it works properly but the error message is still here.

    Plugin Support emermatomo

    (@emermatomo)

    Hi @hadriencab Sorry to hear that it didn’t fix the issue. You have several options to fix this problem:

    • Ask your hosting provider to load this file from the PHP Cli This is only possible if you are in a dedicated hosting.
    • Disable the async mode by editing your wp-config.php file:
      • Either by enabling the WP_DEBUG mode: if (!defined('WP_DEBUG')) {define('WP_DEBUG", true);}
      • Or by forcing the the async mode by adding: if (!defined('MATOMO_SUPPORT_ASYNC_ARCHIVING')) { define('MATOMO_SUPPORT_ASYNC_ARCHIVING', false); }

    Please let us know how it goes.

    Thread Starter hadriencab

    (@hadriencab)

    I’ve already tried these too. What is the difference to load the file from the PHP CLI instead of the FTP way ?

    Plugin Support emermatomo

    (@emermatomo)

    Hello @hadriencab upon checking with this with our devs we will try to find a fix this week and release a new plug in version early next week. We do apologize for the inconvenience caused.

    Thread Starter hadriencab

    (@hadriencab)

    Ok, thanks for the update.
    In the meantime we will probably go full on premise with Matomo especially since we have more than 50 000 hits/month.

    Thanks for your help,

    Hadrien

    Plugin Support emermatomo

    (@emermatomo)

    @hadriencab Thank you for using Matomo analytics. If you encounter any error with Matomo On-Premise, please don’t hesitate to reach out to [email protected] and we’ll be glad to assist.

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

The topic ‘PHP CLI Version non resolved’ is closed to new replies.