• Resolved GregF

    (@gregf)


    I’m getting the following error in the diagnostics log on a new installation, running either PHP 7.4 or 8.1:

    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:305; class-wp-hook.php:331; plugin.php:524; wp-cron.php:138;
    archive_errors	2022-09-15 11:58:30	'Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=day&date=2022-09-15&format=json&trigger=archivephp: \'Your server is running PHP version 5.4.16 but WordPress 6.0.2 requires at least 5.6.20.\'' 'Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=day&date=2022-09-14&format=json&trigger=archivephp: \'Your server is running PHP version 5.4.16 but WordPress 6.0.2 requires at least 5.6.20.\'' 'Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=week&date=2022-09-12&format=json&trigger=archivephp: \'Your server is running PHP version 5.4.16 but WordPress 6.0.2 requires at least 5.6.20.\'' 'Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=month&date=2022-09-01&format=json&trigger=archivephp: \'Your server is running PHP version 5.4.16 but WordPress 6.0.2 requires at least 5.6.20.\'' 'Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=year&date=2022-01-01&format=json&trigger=archivephp: \'Your server is running PHP version 5.4.16 but WordPress 6.0.2 requires at least 5.6.20.\'' '5 total errors during this script execution, please investigate and try and fix these errors.' => ScheduledTasks.php:345; class-wp-hook.php:305; class-wp-hook.php:331; plugin.php:524; wp-cron.php:138;

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @gregf

    You might have a different version of PHP between your web configuration and your PHP cli configuration.
    Do you have shell access on your server? Could you give us the output of the following command:

    php -v

    If you don’t have shell access on your server, could you ask your hosting provider to give us this command output?

    Kind regards

    Mat

    Thread Starter GregF

    (@gregf)

    I don’t have shell access but I contacted the host and they added this to .bash_profile:

    alias php=’/opt/plesk/php/7.4/bin/php’

    I still get this error today:

    Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=day&date=2022-09-20&format=json&trigger=archivephp: \’Your server is running PHP version 5.4.16 but WordPress 6.0.2 requires at least 5.6.20.

    Thread Starter GregF

    (@gregf)

    Further from my host: “It sounds like they are calling PHP CLI directly, which is not going to work on a shared server in this situation.”

    Is that it, are we done?

    Hello @gregf

    Unfortunately, your problem is not a Matomo related problem but a WordPress problem: the PHP binary used by the wp-cron command is too old.

    You can fix the Matomo problem by adding in your wp-config.php file the following content:

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

    But it won’t solve the others errors you’ll have in your WordPress.

    Kind regards

    Mat

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘False PHP Error’ is closed to new replies.