Title: False PHP Error
Last modified: September 15, 2022

---

# False PHP Error

 *  Resolved [GregF](https://wordpress.org/support/users/gregf/)
 * (@gregf)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/false-php-error/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffalse-php-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [mattmary](https://wordpress.org/support/users/mattmary/)
 * (@mattmary)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/false-php-error/#post-16014768)
 * Hi [@gregf](https://wordpress.org/support/users/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](https://wordpress.org/support/users/gregf/)
 * (@gregf)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/false-php-error/#post-16031362)
 * 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](https://wordpress.org/support/users/gregf/)
 * (@gregf)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/false-php-error/#post-16035858)
 * 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?
 *  [mattmary](https://wordpress.org/support/users/mattmary/)
 * (@mattmary)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/false-php-error/#post-16045560)
 * Hello [@gregf](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/matomo/assets/icon-256x256.png?rev=3531741)
 * [Matomo Analytics - Powerful, Privacy-First Insights for WordPress](https://wordpress.org/plugins/matomo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/matomo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/matomo/)
 * [Active Topics](https://wordpress.org/support/plugin/matomo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/matomo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/matomo/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [mattmary](https://wordpress.org/support/users/mattmary/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/false-php-error/#post-16045560)
 * Status: resolved