You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The goal of this issue is to solve the problem where when an error occurs in schedule task, the core:archive throws an exception message: Trying to log a message that is not a string. Instead logger should not throw so the console command can handle and report to user the error.
Reproduce:
do not setup mail server on your server
create a scheduled daily report
run core:archive command
Output:
ERROR CoreConsole[2015-03-25 22:51:04] Got invalid response from API request: http://locahost/index.php?module=API&method=CoreAdminHome.runScheduledTasks&format=csv&convertToUnicode=0&token_auth=removed&trigger=archivephp. Response was 'sendmail: fatal: open /etc/postfix/main.cf: No such file or directory task,output Piwik\Plugins\CoreAdminHome\Tasks.purgeOutdatedArchives,Time elapsed: 0.419s Piwik\Plugins\ScheduledReports\API.sendReport_1,ERROR: An error occured while sending 'HTML Email Report - 1.2015-03-18.1.en.html' to test@test.com. Error was 'Unable to send mail. ' Piwik\Plugins\CoreAdminHome\Tasks.purgeInvalidatedArchives,Time elapsed: 0.003s Piwik\Plugins\PrivacyManager\Tasks.deleteReportData,Time elapsed: 0.004s Piwik\Plugins\PrivacyManager\Tasks.deleteLogData,Time elapsed: 0.003s Piwik\Plugins\CorePluginsAdmin\Tasks.clearAllCacheEntries,Time elapsed: 0.000s Piwik\Plugins\CorePluginsAdmin\Tasks.sendNotificationIfUpdatesAvailable,Time elapsed: 0.001s Piwik\Plugins\CoreAdminHome\Tasks.optimizeArchiveTable,Time elapsed: 0.070s Piwik\Plugins\CoreUpdater\Tasks.sendNotificationIfUpdateAvailable,Time elapsed: 0.000s'
ERROR CoreConsole[2015-03-25 22:51:04] Trying to log a message that is not a string
[Exception]
Trying to log a message that is not a string
The text was updated successfully, but these errors were encountered:
#7542 prevents the logger from throwing an exception now (it will just log a warning). However I couldn't reproduce locally, if you can just run the same command with -v and paste the stack trace that would help to fix the original issue, thanks.
The goal of this issue is to solve the problem where when an error occurs in schedule task, the
core:archive
throws an exception message:Trying to log a message that is not a string
. Instead logger should not throw so the console command can handle and report to user the error.Reproduce:
core:archive
commandOutput:
The text was updated successfully, but these errors were encountered: