Hi,
We are currently using version 2.0-b7 of Piwik due to previous errors on TCPDF when downloading PDF reports.
The said version fixed the error.
Now we have a new problem when we added a cronjob for archive.php.
Please advise.
Here is the error :
Error in the last Piwik archive.php run:
1 total errors during this script execution, please investigate and try and fix these errors. First error was: Got invalid response from API request: http://www.example.com/piwik/index.php?module=API&method=CoreAdminHome.runScheduledTasks&format=csv&convertToUnicode=0&token_auth=c18d4868d17cba5fff7b50b0473257f7&trigger=archivephp. Response was '
There is an error. Please report the message (Piwik 2.0-b7)
and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).
Warning: Illegal string offset ‘masked’ in /var/www/http/piwik/libs/tcpdf/tcpdf.php on line 7067
Backtrace -->
#0 Piwik\Error::errorHandler(…) called at [/var/www/http/piwik/libs/tcpdf/tcpdf.php:7067]
#1 TCPDF->Image(…) called at [/var/www/http/piwik/libs/tcpdf/tcpdf.php:7265]
#2 TCPDF->ImagePngAlpha(…) called at [/var/www/http/piwik/libs/tcpdf/tcpdf.php:6970]
#3 TCPDF->Image(…) called at [/var/www/http/piwik/core/ReportRenderer/Pdf.php:385]
#4 Piwik\ReportRenderer\Pdf->paintReportTable(…) called at [/var/www/http/piwik/core/ReportRenderer/Pdf.php:318]
#5 Piwik\ReportRenderer\Pdf->renderReport(…) called at [:]
#6 array_walk(…) called at [/var/www/http/piwik/plugins/ScheduledReports/API.php:445]
#7 Piwik\Plugins\ScheduledReports\API->generateReport(…) called at [/var/www/http/piwik/plugins/ScheduledReports/API.php:512]
#8 Piwik\Plugins\ScheduledReports\API->sendReport(…) called at [:]
#9 call_user_func(…) called at [/var/www/http/piwik/core/TaskScheduler.php:244]
#10 Piwik\TaskScheduler::executeTask(…) called at [/var/www/http/piwik/core/TaskScheduler.php:134]
#11 Piwik\TaskScheduler::runTasks(…) called at [/var/www/http/piwik/plugins/CoreAdminHome/API.php:41]
#12 Piwik\Plugins\CoreAdminHome\API->runScheduledTasks(…) called at [:]
#13 call_user_func_array(…) called at [/var/www/http/piwik/core/API/Proxy.php:199]
#14 Piwik\API\Proxy->call(…) called at [/var/www/http/piwik/core/API/Request.php:205]
#15 Piwik\API\Request->process(…) called at [/var/www/http/piwik/plugins/API/Controller.php:34]
#16 Piwik\Plugins\API\Controller->index(…) called at [:]
#17 call_user_func_array(…) called at [/var/www/http/piwik/core/FrontController.php:114]
#18 Piwik\FrontController->dispatch(…) called at [/var/www/http/piwik/index.php:58]
Warning: Illegal string offset 'altimgs' in /var/www/http/piwik/libs/tcpdf/tcpdf.php on line 7073
Backtrace -->
#0 Piwik\Error::errorHandler(...) called at [/var/www/http/piwik/libs/tcpdf/tcpdf.p
Here is the full errors output:
INIT
Querying Piwik API at: http://www.example.com/piwik/index.php
Running Piwik 2.0-b7 as Super User: root
NOTES
- Reports for today will be processed at most every 10 seconds. You can change this value in Piwik UI > Settings > General Settings.
- Reports for the current week/month/year will be refreshed at most every 3600 seconds.
- Archiving was last executed without error 59 min 40s ago
- Will process 3 websites with new visits since 59 min 39s , IDs: 1, 3, 5
START
Archived website id = 1, period = day, Time elapsed: 1.670s
Archived website id = 1, period = week, 0 visits, Time elapsed: 2.597s
Archived website id = 1, period = month, 215 visits, Time elapsed: 4.603s
Archived website id = 1, period = year, 0 visits, Time elapsed: 1.628s
Archived website id = 3, period = day, Time elapsed: 1.866s
Archived website id = 3, period = week, 28 visits, Time elapsed: 5.499s
Archived website id = 3, period = month, 28 visits, Time elapsed: 5.740s
Archived website id = 3, period = year, 28 visits, Time elapsed: 5.256s
Archived website id = 5, period = day, Time elapsed: 1.034s
Archived website id = 5, period = week, 16 visits, Time elapsed: 1.544s
Archived website id = 5, period = month, 16 visits, Time elapsed: 1.972s
Archived website id = 5, period = year, 16 visits, Time elapsed: 1.036s
Starting Piwik reports archiving…
Done archiving!
SUMMARY
Total daily visits archived: 64
Archived today’s reports for 3 websites
Archived week/month/year for 3 websites
Skipped 0 websites: no new visit since the last script execution
Skipped 0 websites day archiving: existing daily reports are less than 10 seconds old
Skipped 0 websites week/month/year archiving: existing periods reports are less than 3600 seconds old
Total API requests: 12
done: 3/3 100%, 64 v, 3 wtoday, 3 wperiods, 12 req, 34454 ms, no error
Time elapsed: 34.454s
SCHEDULED TASKS
Starting Scheduled tasks…
ERROR: Got invalid response from API request: http://www.example.com/piwik/index.php?module=API&method=CoreAdminHome.runScheduledTasks&format=csv&convertToUnicode=0&token_auth=c18d4868d17cba5fff7b50b0473257f7&trigger=archivephp. Response was '
There is an error. Please report the message (Piwik 2.0-b7)
and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).
Warning: Illegal string offset ‘masked’ in /var/www/http/piwik/libs/tcpdf/tcpdf.php on line 7067
Backtrace -->
#0 Piwik\Error::errorHandler(…) called at [/var/www/http/piwik/libs/tcpdf/tcpdf.php:7067]
#1 TCPDF->Image(…) called at [/var/www/http/piwik/libs/tcpdf/tcpdf.php:7265]
#2 TCPDF->ImagePngAlpha(…) called at [/var/www/http/piwik/libs/tcpdf/tcpdf.php:6970]
#3 TCPDF->Image(…) called at [/var/www/http/piwik/core/ReportRenderer/Pdf.php:385]
#4 Piwik\ReportRenderer\Pdf->paintReportTable(…) called at [/var/www/http/piwik/core/ReportRenderer/Pdf.php:318]
#5 Piwik\ReportRenderer\Pdf->renderReport(…) called at [:]
#6 array_walk(…) called at [/var/www/http/piwik/plugins/ScheduledReports/API.php:445]
#7 Piwik\Plugins\ScheduledReports\API->generateReport(…) called at [/var/www/http/piwik/plugins/ScheduledReports/API.php:512]
#8 Piwik\Plugins\ScheduledReports\API->sendReport(…) called at [:]
#9 call_user_func(…) called at [/var/www/http/piwik/core/TaskScheduler.php:244]
#10 Piwik\TaskScheduler::executeTask(…) called at [/var/www/http/piwik/core/TaskScheduler.php:134]
#11 Piwik\TaskScheduler::runTasks(…) called at [/var/www/http/piwik/plugins/CoreAdminHome/API.php:41]
#12 Piwik\Plugins\CoreAdminHome\API->runScheduledTasks(…) called at [:]
#13 call_user_func_array(…) called at [/var/www/http/piwik/core/API/Proxy.php:199]
#14 Piwik\API\Proxy->call(…) called at [/var/www/http/piwik/core/API/Request.php:205]
#15 Piwik\API\Request->process(…) called at [/var/www/http/piwik/plugins/API/Controller.php:34]
#16 Piwik\Plugins\API\Controller->index(…) called at [:]
#17 call_user_func_array(…) called at [/var/www/http/piwik/core/FrontController.php:114]
#18 Piwik\FrontController->dispatch(…) called at [/var/www/http/piwik/index.php:58]
Warning: Illegal string offset 'altimgs' in /var/www/http/piwik/libs/tcpdf/tcpdf.php on line 7073
Backtrace -->
#0 Piwik\Error::errorHandler(...) called at [/var/www/http/piwik/libs/tcpdf/tcpdf.p
done
SUMMARY OF ERRORS
Error: Got invalid response from API request: http://www.example.com/piwik/index.php?module=API&method=CoreAdminHome.runScheduledTasks&format=csv&convertToUnicode=0&token_auth=c18d4868d17cba5fff7b50b0473257f7&trigger=archivephp. Response was '
There is an error. Please report the message (Piwik 2.0-b7)
and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).
Warning: Illegal string offset ‘masked’ in /var/www/http/piwik/libs/tcpdf/tcpdf.php on line 7067
Backtrace -->
#0 Piwik\Error::errorHandler(…) called at [/var/www/http/piwik/libs/tcpdf/tcpdf.php:7067]
#1 TCPDF->Image(…) called at [/var/www/http/piwik/libs/tcpdf/tcpdf.php:7265]
#2 TCPDF->ImagePngAlpha(…) called at [/var/www/http/piwik/libs/tcpdf/tcpdf.php:6970]
#3 TCPDF->Image(…) called at [/var/www/http/piwik/core/ReportRenderer/Pdf.php:385]
#4 Piwik\ReportRenderer\Pdf->paintReportTable(…) called at [/var/www/http/piwik/core/ReportRenderer/Pdf.php:318]
#5 Piwik\ReportRenderer\Pdf->renderReport(…) called at [:]
#6 array_walk(…) called at [/var/www/http/piwik/plugins/ScheduledReports/API.php:445]
#7 Piwik\Plugins\ScheduledReports\API->generateReport(…) called at [/var/www/http/piwik/plugins/ScheduledReports/API.php:512]
#8 Piwik\Plugins\ScheduledReports\API->sendReport(…) called at [:]
#9 call_user_func(…) called at [/var/www/http/piwik/core/TaskScheduler.php:244]
#10 Piwik\TaskScheduler::executeTask(…) called at [/var/www/http/piwik/core/TaskScheduler.php:134]
#11 Piwik\TaskScheduler::runTasks(…) called at [/var/www/http/piwik/plugins/CoreAdminHome/API.php:41]
#12 Piwik\Plugins\CoreAdminHome\API->runScheduledTasks(…) called at [:]
#13 call_user_func_array(…) called at [/var/www/http/piwik/core/API/Proxy.php:199]
#14 Piwik\API\Proxy->call(…) called at [/var/www/http/piwik/core/API/Request.php:205]
#15 Piwik\API\Request->process(…) called at [/var/www/http/piwik/plugins/API/Controller.php:34]
#16 Piwik\Plugins\API\Controller->index(…) called at [:]
#17 call_user_func_array(…) called at [/var/www/http/piwik/core/FrontController.php:114]
#18 Piwik\FrontController->dispatch(…) called at [/var/www/http/piwik/index.php:58]
Warning: Illegal string offset 'altimgs' in /var/www/http/piwik/libs/tcpdf/tcpdf.php on line 7073
Backtrace -->
#0 Piwik\Error::errorHandler(...) called at [/var/www/http/piwik/libs/tcpdf/tcpdf.p 1 total errors during this script execution, please investigate and try and fix these errors ERROR: 1 total errors during this script execution, please investigate and try and fix these errors. First error was: Got invalid response from API request: http://www.example.com/piwik/index.php?module=API&method=CoreAdminHome.runScheduledTasks&format=csv&convertToUnicode=0&token_auth=c18d4868d17cba5fff7b50b0473257f7&trigger=archivephp. Response was '
Warning: Illegal string offset 'masked' in /var/www/http/piwik/libs/tcpdf/tcpdf.php on line 7067
Backtrace -->
#0 Piwik\Error::errorHandler(...) called at [/var/www/http/piwik/libs/tcpdf/tcpdf.php:7067]
#1 TCPDF->Image(...) called at [/var/www/http/piwik/libs/tcpdf/tcpdf.php:7265]
#2 TCPDF->ImagePngAlpha(...) called at [/var/www/http/piwik/libs/tcpdf/tcpdf.php:6970]
#3 TCPDF->Image(...) called at [/var/www/http/piwik/core/ReportRenderer/Pdf.php:385]
#4 Piwik\ReportRenderer\Pdf->paintReportTable(...) called at [/var/www/http/piwik/core/ReportRenderer/Pdf.php:318]
#5 Piwik\ReportRenderer\Pdf->renderReport(...) called at [:]
#6 array_walk(...) called at [/var/www/http/piwik/plugins/ScheduledReports/API.php:445]
#7 Piwik\Plugins\ScheduledReports\API->generateReport(...) called at [/var/www/http/piwik/plugins/ScheduledReports/API.php:512]
#8 Piwik\Plugins\ScheduledReports\API->sendReport(...) called at [:]
#9 call_user_func(...) called at [/var/www/http/piwik/core/TaskScheduler.php:244]
#10 Piwik\TaskScheduler::executeTask(...) called at [/var/www/http/piwik/core/TaskScheduler.php:134]
#11 Piwik\TaskScheduler::runTasks(...) called at [/var/www/http/piwik/plugins/CoreAdminHome/API.php:41]
#12 Piwik\Plugins\CoreAdminHome\API->runScheduledTasks(...) called at [:]
#13 call_user_func_array(...) called at [/var/www/http/piwik/core/API/Proxy.php:199]
#14 Piwik\API\Proxy->call(...) called at [/var/www/http/piwik/core/API/Request.php:205]
#15 Piwik\API\Request->process(...) called at [/var/www/http/piwik/plugins/API/Controller.php:34]
#16 Piwik\Plugins\API\Controller->index(...) called at [:]
#17 call_user_func_array(...) called at [/var/www/http/piwik/core/FrontController.php:114]
#18 Piwik\FrontController->dispatch(...) called at [/var/www/http/piwik/index.php:58]
Warning: Illegal string offset 'altimgs' in /var/www/http/piwik/libs/tcpdf/tcpdf.php on line 7073
Backtrace -->
#0