Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Archiving Cron-Job fails #1160

Open
Doems opened this issue Jun 20, 2024 · 1 comment
Open

Archiving Cron-Job fails #1160

Doems opened this issue Jun 20, 2024 · 1 comment

Comments

@Doems
Copy link

Doems commented Jun 20, 2024

Reporting is working, i have data in real-time visitor data, although there seems to be an issue with the archiving.
Could it be related to my plugin advanced-custom-fields?

Here is the info from the logs:

archive_main | 2024-06-20 11:40:10 | 8 total errors during this script execution, please investigate and try and fix these errors. => CronArchive.php:473; CronArchive.php:468; CronArchive.php:226; Access.php:567; CronArchive.php:230; ScheduledTasks.php:361; class-wp-hook.php:322; class-wp-hook.php:348; plugin.php:565; wp-cron.php:191; -- | -- | -- archive_errors | 2024-06-20 11:40:10 | 'Got invalid response from API request: ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=day&date=2024-06-20&format=json&trigger=archivephp. Response was \'PHP Parse error: syntax error, unexpected \'string\' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in $abs_path/wp-content/plugins/advanced-custom-fields/includes/class-acf-site-health.php on line 23 <title>WordPress › Error</title> <style type="text/css"> html { background: rgb(241,241,241); } body { background: rgb(15,15,15); border: 1px solid rgb(204,208,212); color: rgb(4,4,4); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; margin: 2em auto; padding: 1em 2em; max-width: 700px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04); box-shadow: 0 1px 1px rgba(0, 0, 0, .04); } h1 { border-bottom: 1px solid rgb(218,218,218); clear: both; color: rgb(6,6,6); font-size: 24px; margin: 30px 0 0 0; padding: 0; padding-bottom: 7px; } #error-page { margin-top: 50px; } #error-page p, #error-page .wp-die-message { font-size: 14px; line-height: 1.5; margin: 25px 0 20px; } #error-page code { font-family: Consolas, Monaco, monospace; } ul li { margin-bottom: 10px; font-size: 14px ; } a { color: rgb(34,113,177); } a:hover, a:active { color: rgb(19,94,150); } a:focus { color: rgb(4,57,89); box-shadow: 0 0 0 2px rgb(34,113,177); outline: 2px solid transparent; } .button { background: rgb(243,245,246); border: 1px solid rgb(1,96,135); color: rgb(1,96,135); display: inline-block; text-decoration: none; font-size: 13px; line-height: 2; height: 28px; margin: 0; padding: 0 10px 1px; cursor: pointer; -webkit-border-radius: 3px; -webkit-appearance: none; border-radius: 3px; white-space: nowrap; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; vertical-align: top; } .button.button-large { line-height: 2.30769231; min-height: 32px; padding: 0 12px; } .button:hover, .button:focus { background: rgb(241,241,241); } .button:focus { background: rgb(243,245,246); border-color: rgb(0,124,186); -webkit-box-shadow: 0 0 0 1px rgb(0,124,186); box-shadow: 0 0 0 1px rgb(0,124,186); color: rgb(1,96,135); outline: 2px solid transparent; outline-offset: 0; } .button:active { background: rgb(243,245,246); border-color: rgb(126,137,147); -webkit-box-shadow: none; box-shadow: none; } </style>

There has been a critical error on this website.

Learn more about troubleshooting WordPress.

\'' 'Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=day&date=2024-06-20&format=json&trigger=archivephp: \'PHP Parse error: syntax error, unexpected \'string\' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in $abs_path/wp-content/plugins/advanced-custom-fields/includes/class-acf-site-health.php on line 23 <title>WordPress › Error</title> <style type="text/css"> html { background: rgb(241,241,241); } body { background: rgb(15,15,15); border: 1px solid rgb(204,208,212); color: rgb(4,4,4); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; margin: 2em auto; padding: 1em 2em; max-width: 700px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04); box-shadow: 0 1px 1px rgba(0, 0, 0, .04); } h1 { border-bottom: 1px solid rgb(218,218,218); clear: both; color: rgb(6,6,6); font-size: 24px; margin: 30px 0 0 0; padding: 0; padding-bottom: 7px; } #error-page { margin-top: 50px; } #error-page p, #error-page .wp-die-message { font-size: 14px; line-height: 1.5; margin: 25px 0 20px; } #error-page code { font-family: Consolas, Monaco, monospace; } ul li { margin-bottom: 10px; font-size: 14px ; } a { color: rgb(34,113,177); } a:hover, a:active { color: rgb(19,94,150); } a:focus { color: rgb(4,57,89); box-shadow: 0 0 0 2px rgb(34,113,177); outline: 2px solid transparent; } .button { background: rgb(243,245,246); border: 1px solid rgb(1,96,135); color: rgb(1,96,135); display: inline-block; text-decoration: none; font-size: 13px; line-height: 2; height: 28px; margin: 0; padding: 0 10px 1px; cursor: pointer; -webkit-border-radius: 3px; -webkit-appearance: none; border-radius: 3px; white-space: nowrap; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; vertical-align: top; } .button.button-large { line-height: 2.30769231; min-height: 32px; padding: 0 12px; } .button:hover, .button:focus { background: rgb(241,241,241); } .button:focus { background: rgb(243,245,246); border-color: rgb(0,124,186); -webkit-box-shadow: 0 0 0 1px rgb(0,124,186); box-shadow: 0 0 0 1px rgb(0,124,186); color: rgb(1,96,135); outline: 2px solid transparent; outline-offset: 0; } .button:active { background: rgb(243,245,246); border-color: rgb(126,137,147); -webkit-box-shadow: none; box-shadow: none; } </style>

There has been a critical error on this website.

Learn more about troubleshooting WordPress.

\'' 'Got invalid response from API request: ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=week&date=2024-06-17&format=json&trigger=archivephp. Response was \'PHP Parse error: syntax error, unexpected \'string\' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in $abs_path/wp-content/plugins/advanced-custom-fields/includes/class-acf-site-health.php on line 23 <title>WordPress › Error</title> <style type="text/css"> html { background: rgb(241,241,241); } body { background: rgb(15,15,15); border: 1px solid rgb(204,208,212); color: rgb(4,4,4); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; margin: 2em auto; padding: 1em 2em; max-width: 700px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04); box-shadow: 0 1px 1px rgba(0, 0, 0, .04); } h1 { border-bottom: 1px solid rgb(218,218,218); clear: both; color: rgb(6,6,6); font-size: 24px; margin: 30px 0 0 0; padding: 0; padding-bottom: 7px; } #error-page { margin-top: 50px; } #error-page p, #error-page .wp-die-message { font-size: 14px; line-height: 1.5; margin: 25px 0 20px; } #error-page code { font-family: Consolas, Monaco, monospace; } ul li { margin-bottom: 10px; font-size: 14px ; } a { color: rgb(34,113,177); } a:hover, a:active { color: rgb(19,94,150); } a:focus { color: rgb(4,57,89); box-shadow: 0 0 0 2px rgb(34,113,177); outline: 2px solid transparent; } .button { background: rgb(243,245,246); border: 1px solid rgb(1,96,135); color: rgb(1,96,135); display: inline-block; text-decoration: none; font-size: 13px; line-height: 2; height: 28px; margin: 0; padding: 0 10px 1px; cursor: pointer; -webkit-border-radius: 3px; -webkit-appearance: none; border-radius: 3px; white-space: nowrap; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; vertical-align: top; } .button.button-large { line-height: 2.30769231; min-height: 32px; padding: 0 12px; } .button:hover, .button:focus { background: rgb(241,241,241); } .button:focus { background: rgb(243,245,246); border-color: rgb(0,124,186); -webkit-box-shadow: 0 0 0 1px rgb(0,124,186); box-shadow: 0 0 0 1px rgb(0,124,186); color: rgb(1,96,135); outline: 2px solid transparent; outline-offset: 0; } .button:active { background: rgb(243,245,246); border-color: rgb(126,137,147); -webkit-box-shadow: none; box-shadow: none; } </style>

There has been a critical error on this website.

Learn more about troubleshooting WordPress.

\'' 'Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=week&date=2024-06-17&format=json&trigger=archivephp: \'PHP Parse error: syntax error, unexpected \'string\' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in $abs_path/wp-content/plugins/advanced-custom-fields/includes/class-acf-site-health.php on line 23 <title>WordPress › Error</title> <style type="text/css"> html { background: rgb(241,241,241); } body { background: rgb(15,15,15); border: 1px solid rgb(204,208,212); color: rgb(4,4,4); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; margin: 2em auto; padding: 1em 2em; max-width: 700px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04); box-shadow: 0 1px 1px rgba(0, 0, 0, .04); } h1 { border-bottom: 1px solid rgb(218,218,218); clear: both; color: rgb(6,6,6); font-size: 24px; margin: 30px 0 0 0; padding: 0; padding-bottom: 7px; } #error-page { margin-top: 50px; } #error-page p, #error-page .wp-die-message { font-size: 14px; line-height: 1.5; margin: 25px 0 20px; } #error-page code { font-family: Consolas, Monaco, monospace; } ul li { margin-bottom: 10px; font-size: 14px ; } a { color: rgb(34,113,177); } a:hover, a:active { color: rgb(19,94,150); } a:focus { color: rgb(4,57,89); box-shadow: 0 0 0 2px rgb(34,113,177); outline: 2px solid transparent; } .button { background: rgb(243,245,246); border: 1px solid rgb(1,96,135); color: rgb(1,96,135); display: inline-block; text-decoration: none; font-size: 13px; line-height: 2; height: 28px; margin: 0; padding: 0 10px 1px; cursor: pointer; -webkit-border-radius: 3px; -webkit-appearance: none; border-radius: 3px; white-space: nowrap; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; vertical-align: top; } .button.button-large { line-height: 2.30769231; min-height: 32px; padding: 0 12px; } .button:hover, .button:focus { background: rgb(241,241,241); } .button:focus { background: rgb(243,245,246); border-color: rgb(0,124,186); -webkit-box-shadow: 0 0 0 1px rgb(0,124,186); box-shadow: 0 0 0 1px rgb(0,124,186); color: rgb(1,96,135); outline: 2px solid transparent; outline-offset: 0; } .button:active { background: rgb(243,245,246); border-color: rgb(126,137,147); -webkit-box-shadow: none; box-shadow: none; } </style>

There has been a critical error on this website.

Learn more about troubleshooting WordPress.

\'' 'Got invalid response from API request: ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=month&date=2024-06-01&format=json&trigger=archivephp. Response was \'PHP Parse error: syntax error, unexpected \'string\' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in $abs_path/wp-content/plugins/advanced-custom-fields/includes/class-acf-site-health.php on line 23 <title>WordPress › Error</title> <style type="text/css"> html { background: rgb(241,241,241); } body { background: rgb(15,15,15); border: 1px solid rgb(204,208,212); color: rgb(4,4,4); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; margin: 2em auto; padding: 1em 2em; max-width: 700px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04); box-shadow: 0 1px 1px rgba(0, 0, 0, .04); } h1 { border-bottom: 1px solid rgb(218,218,218); clear: both; color: rgb(6,6,6); font-size: 24px; margin: 30px 0 0 0; padding: 0; padding-bottom: 7px; } #error-page { margin-top: 50px; } #error-page p, #error-page .wp-die-message { font-size: 14px; line-height: 1.5; margin: 25px 0 20px; } #error-page code { font-family: Consolas, Monaco, monospace; } ul li { margin-bottom: 10px; font-size: 14px ; } a { color: rgb(34,113,177); } a:hover, a:active { color: rgb(19,94,150); } a:focus { color: rgb(4,57,89); box-shadow: 0 0 0 2px rgb(34,113,177); outline: 2px solid transparent; } .button { background: rgb(243,245,246); border: 1px solid rgb(1,96,135); color: rgb(1,96,135); display: inline-block; text-decoration: none; font-size: 13px; line-height: 2; height: 28px; margin: 0; padding: 0 10px 1px; cursor: pointer; -webkit-border-radius: 3px; -webkit-appearance: none; border-radius: 3px; white-space: nowrap; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; vertical-align: top; } .button.button-large { line-height: 2.30769231; min-height: 32px; padding: 0 12px; } .button:hover, .button:focus { background: rgb(241,241,241); } .button:focus { background: rgb(243,245,246); border-color: rgb(0,124,186); -webkit-box-shadow: 0 0 0 1px rgb(0,124,186); box-shadow: 0 0 0 1px rgb(0,124,186); color: rgb(1,96,135); outline: 2px solid transparent; outline-offset: 0; } .button:active { background: rgb(243,245,246); border-color: rgb(126,137,147); -webkit-box-shadow: none; box-shadow: none; } </style>

There has been a critical error on this website.

Learn more about troubleshooting WordPress.

\'' 'Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=month&date=2024-06-01&format=json&trigger=archivephp: \'PHP Parse error: syntax error, unexpected \'string\' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in $abs_path/wp-content/plugins/advanced-custom-fields/includes/class-acf-site-health.php on line 23 <title>WordPress › Error</title> <style type="text/css"> html { background: rgb(241,241,241); } body { background: rgb(15,15,15); border: 1px solid rgb(204,208,212); color: rgb(4,4,4); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; margin: 2em auto; padding: 1em 2em; max-width: 700px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04); box-shadow: 0 1px 1px rgba(0, 0, 0, .04); } h1 { border-bottom: 1px solid rgb(218,218,218); clear: both; color: rgb(6,6,6); font-size: 24px; margin: 30px 0 0 0; padding: 0; padding-bottom: 7px; } #error-page { margin-top: 50px; } #error-page p, #error-page .wp-die-message { font-size: 14px; line-height: 1.5; margin: 25px 0 20px; } #error-page code { font-family: Consolas, Monaco, monospace; } ul li { margin-bottom: 10px; font-size: 14px ; } a { color: rgb(34,113,177); } a:hover, a:active { color: rgb(19,94,150); } a:focus { color: rgb(4,57,89); box-shadow: 0 0 0 2px rgb(34,113,177); outline: 2px solid transparent; } .button { background: rgb(243,245,246); border: 1px solid rgb(1,96,135); color: rgb(1,96,135); display: inline-block; text-decoration: none; font-size: 13px; line-height: 2; height: 28px; margin: 0; padding: 0 10px 1px; cursor: pointer; -webkit-border-radius: 3px; -webkit-appearance: none; border-radius: 3px; white-space: nowrap; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; vertical-align: top; } .button.button-large { line-height: 2.30769231; min-height: 32px; padding: 0 12px; } .button:hover, .button:focus { background: rgb(241,241,241); } .button:focus { background: rgb(243,245,246); border-color: rgb(0,124,186); -webkit-box-shadow: 0 0 0 1px rgb(0,124,186); box-shadow: 0 0 0 1px rgb(0,124,186); color: rgb(1,96,135); outline: 2px solid transparent; outline-offset: 0; } .button:active { background: rgb(243,245,246); border-color: rgb(126,137,147); -webkit-box-shadow: none; box-shadow: none; } </style>

There has been a critical error on this website.

Learn more about troubleshooting WordPress.

\'' 'Got invalid response from API request: ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=year&date=2024-01-01&format=json&trigger=archivephp. Response was \'PHP Parse error: syntax error, unexpected \'string\' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in $abs_path/wp-content/plugins/advanced-custom-fields/includes/class-acf-site-health.php on line 23 <title>WordPress › Error</title> <style type="text/css"> html { background: rgb(241,241,241); } body { background: rgb(15,15,15); border: 1px solid rgb(204,208,212); color: rgb(4,4,4); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; margin: 2em auto; padding: 1em 2em; max-width: 700px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04); box-shadow: 0 1px 1px rgba(0, 0, 0, .04); } h1 { border-bottom: 1px solid rgb(218,218,218); clear: both; color: rgb(6,6,6); font-size: 24px; margin: 30px 0 0 0; padding: 0; padding-bottom: 7px; } #error-page { margin-top: 50px; } #error-page p, #error-page .wp-die-message { font-size: 14px; line-height: 1.5; margin: 25px 0 20px; } #error-page code { font-family: Consolas, Monaco, monospace; } ul li { margin-bottom: 10px; font-size: 14px ; } a { color: rgb(34,113,177); } a:hover, a:active { color: rgb(19,94,150); } a:focus { color: rgb(4,57,89); box-shadow: 0 0 0 2px rgb(34,113,177); outline: 2px solid transparent; } .button { background: rgb(243,245,246); border: 1px solid rgb(1,96,135); color: rgb(1,96,135); display: inline-block; text-decoration: none; font-size: 13px; line-height: 2; height: 28px; margin: 0; padding: 0 10px 1px; cursor: pointer; -webkit-border-radius: 3px; -webkit-appearance: none; border-radius: 3px; white-space: nowrap; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; vertical-align: top; } .button.button-large { line-height: 2.30769231; min-height: 32px; padding: 0 12px; } .button:hover, .button:focus { background: rgb(241,241,241); } .button:focus { background: rgb(243,245,246); border-color: rgb(0,124,186); -webkit-box-shadow: 0 0 0 1px rgb(0,124,186); box-shadow: 0 0 0 1px rgb(0,124,186); color: rgb(1,96,135); outline: 2px solid transparent; outline-offset: 0; } .button:active { background: rgb(243,245,246); border-color: rgb(126,137,147); -webkit-box-shadow: none; box-shadow: none; } </style>

There has been a critical error on this website.

Learn more about troubleshooting WordPress.

\'' 'Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=year&date=2024-01-01&format=json&trigger=archivephp: \'PHP Parse error: syntax error, unexpected \'string\' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in $abs_path/wp-content/plugins/advanced-custom-fields/includes/class-acf-site-health.php on line 23 <title>WordPress › Error</title> <style type="text/css"> html { background: rgb(241,241,241); } body { background: rgb(15,15,15); border: 1px solid rgb(204,208,212); color: rgb(4,4,4); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; margin: 2em auto; padding: 1em 2em; max-width: 700px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04); box-shadow: 0 1px 1px rgba(0, 0, 0, .04); } h1 { border-bottom: 1px solid rgb(218,218,218); clear: both; color: rgb(6,6,6); font-size: 24px; margin: 30px 0 0 0; padding: 0; padding-bottom: 7px; } #error-page { margin-top: 50px; } #error-page p, #error-page .wp-die-message { font-size: 14px; line-height: 1.5; margin: 25px 0 20px; } #error-page code { font-family: Consolas, Monaco, monospace; } ul li { margin-bottom: 10px; font-size: 14px ; } a { color: rgb(34,113,177); } a:hover, a:active { color: rgb(19,94,150); } a:focus { color: rgb(4,57,89); box-shadow: 0 0 0 2px rgb(34,113,177); outline: 2px solid transparent; } .button { background: rgb(243,245,246); border: 1px solid rgb(1,96,135); color: rgb(1,96,135); display: inline-block; text-decoration: none; font-size: 13px; line-height: 2; height: 28px; margin: 0; padding: 0 10px 1px; cursor: pointer; -webkit-border-radius: 3px; -webkit-appearance: none; border-radius: 3px; white-space: nowrap; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; vertical-align: top; } .button.button-large { line-height: 2.30769231; min-height: 32px; padding: 0 12px; } .button:hover, .button:focus { background: rgb(241,241,241); } .button:focus { background: rgb(243,245,246); border-color: rgb(0,124,186); -webkit-box-shadow: 0 0 0 1px rgb(0,124,186); box-shadow: 0 0 0 1px rgb(0,124,186); color: rgb(1,96,135); outline: 2px solid transparent; outline-offset: 0; } .button:active { background: rgb(243,245,246); border-color: rgb(126,137,147); -webkit-box-shadow: none; box-shadow: none; } </style>

There has been a critical error on this website.

Learn more about troubleshooting WordPress.

\'' '8 total errors during this script execution, please investigate and try and fix these errors.' => ScheduledTasks.php:375; class-wp-hook.php:322; class-wp-hook.php:348; plugin.php:565; wp-cron.php:191;
@diosmosis
Copy link
Member

Hi @Doems, it sounds like the version of the PHP CLI executable Matomo detected does not match the version that is serving web requests. The simplest way to fix this is to enable the “Enable archiving via HTTP requests” setting in Matomo Analytics > Settings > Advanced.

If you want to keep CLI archiving enabled (mostly only worthwhile if you expect a lot of web traffic), you will need to find the path to the proper PHP executable on your web server and set it manually in Matomo's config. See https://matomo.org/faq/how-to-solve-the-error-message-your-php-cli-version-is-not-compatible-with-the-matomo-requirements/ for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants