[Solved] (tu)Email Reports Fails


#1

Hello,

thanks for the great work made with Piwik. I use it since 0.9 (? not sure anymore, but version <1) and it has always been a pleasure.

The Email report never worked, though. I don’t receive the automatic email and I cannot download the report.

Since the update to the 1.2 I have a log and a message “Please report the message and full backtrace in the Piwik forums.”

So do I…
Pay attention, it’s very long!


There is an error. Please report the message and full backtrace in the Piwik forums.

Warning: imagepng(): open_basedir restriction in effect. File(/tmp/jpg_FbSRTC) is not within the allowed path(s): (/data/users/micr0lab) in /data/users/micr0lab/www/tech/piwik/libs/tcpdf/tcpdf.php on line 7545

Backtrace -->
#0 Piwik_ErrorHandler(2, imagepng(): open_basedir restriction in effect. File(/tmp/jpg_FbSRTC) is not within the allowed path(s): (/data/users/micr0lab), /data/users/micr0lab/www/tech/piwik/libs/tcpdf/tcpdf.php, 7545, Array ([image] => Resource id #177,[tempname] => /tmp/jpg_FbSRTC))#1 imagepng(Resource id #177, /tmp/jpg_FbSRTC) called at [/data/users/micr0lab/www/tech/piwik/libs/tcpdf/tcpdf.php:7545]#2 TCPDF->_toPNG(Resource id #177) called at [/data/users/micr0lab/www/tech/piwik/libs/tcpdf/tcpdf.php:7322]#3 TCPDF->Image(/data/users/micr0lab/www/tech/piwik/plugins/UserSettings/images/browsers/FF.gif, 12, 39,53875, 4) called at [/data/users/micr0lab/www/tech/piwik/plugins/PDFReports/PDFRenderer.php:248]#4 Piwik_PDFReports_PDFRenderer->paintReportTable() called at [/data/users/micr0lab/www/tech/piwik/plugins/PDFReports/PDFRenderer.php:180]#5 Piwik_PDFReports_PDFRenderer->paintReport() called at [/data/users/micr0lab/www/tech/piwik/plugins/PDFReports/API.php:294]#6 Piwik_PDFReports_API->generateReport(2, 2011-03-07, 1, , 1, day)#7 call_user_func_array(Array ([0] => Piwik_PDFReports_API Object ([] => Array ()),[1] => generateReport), Array ([0] => 2,[1] => 2011-03-07,[2] => 1,[3] => ,[4] => 1,[5] => day)) called at [/data/users/micr0lab/www/tech/piwik/core/API/Proxy.php:156]#8 Piwik_API_Proxy->call(Piwik_PDFReports_API, generateReport, Array ([token_auth] => 8d646c18a8202cd2484f749b1a752a07,[module] => API,[action] => index,[idSite] => 1,[period] => day,[date] => 2011-03-07,[method] => PDFReports.generateReport,[idReport] => 2,[outputType] => 1,[filter_limit] => 50)) called at [/data/users/micr0lab/www/tech/piwik/core/API/Request.php:121]#9 Piwik_API_Request->process() called at [/data/users/micr0lab/www/tech/piwik/plugins/API/Controller.php:27]#10 Piwik_API_Controller->index()#11 call_user_func_array(Array ([0] => Piwik_API_Controller Object ([] => API,[] => ,[] => ,[] => 1,[] => ),[1] => index), Array ()) called at [/data/users/micr0lab/www/tech/piwik/core/FrontController.php:125]#12 Piwik_FrontController->dispatch() called at [/data/users/micr0lab/www/tech/piwik/index.php:57]


There is an error. Please report the message and full backtrace in the Piwik forums.

Warning: imagepng(): Invalid filename in /data/users/micr0lab/www/tech/piwik/libs/tcpdf/tcpdf.php on line 7545

Backtrace -->
#0 Piwik_ErrorHandler(2, imagepng(): Invalid filename, /data/users/micr0lab/www/tech/piwik/libs/tcpdf/tcpdf.php, 7545, Array ([image] => Resource id #177,[tempname] => /tmp/jpg_FbSRTC))#1 imagepng(Resource id #177, /tmp/jpg_FbSRTC) called at [/data/users/micr0lab/www/tech/piwik/libs/tcpdf/tcpdf.php:7545]#2 TCPDF->_toPNG(Resource id #177) called at [/data/users/micr0lab/www/tech/piwik/libs/tcpdf/tcpdf.php:7322]#3 TCPDF->Image(/data/users/micr0lab/www/tech/piwik/plugins/UserSettings/images/browsers/FF.gif, 12, 39,53875, 4) called at [/data/users/micr0lab/www/tech/piwik/plugins/PDFReports/PDFRenderer.php:248]#4 Piwik_PDFReports_PDFRenderer->paintReportTable() called at [/data/users/micr0lab/www/tech/piwik/plugins/PDFReports/PDFRenderer.php:180]#5 Piwik_PDFReports_PDFRenderer->paintReport() called at [/data/users/micr0lab/www/tech/piwik/plugins/PDFReports/API.php:294]#6 Piwik_PDFReports_API->generateReport(2, 2011-03-07, 1, , 1, day)#7 call_user_func_array(Array ([0] => Piwik_PDFReports_API Object ([] => Array ()),[1] => generateReport), Array ([0] => 2,[1] => 2011-03-07,[2] => 1,[3] => ,[4] => 1,[5] => day)) called at [/data/users/micr0lab/www/tech/piwik/core/API/Proxy.php:156]#8 Piwik_API_Proxy->call(Piwik_PDFReports_API, generateReport, Array ([token_auth] => 8d646c18a8202cd2484f749b1a752a07,[module] => API,[action] => index,[idSite] => 1,[period] => day,[date] => 2011-03-07,[method] => PDFReports.generateReport,[idReport] => 2,[outputType] => 1,[filter_limit] => 50)) called at [/data/users/micr0lab/www/tech/piwik/core/API/Request.php:121]#9 Piwik_API_Request->process() called at [/data/users/micr0lab/www/tech/piwik/plugins/API/Controller.php:27]#10 Piwik_API_Controller->index()#11 call_user_func_array(Array ([0] => Piwik_API_Controller Object ([] => API,[] => ,[] => ,[] => 1,[] => ),[1] => index), Array ()) called at [/data/users/micr0lab/www/tech/piwik/core/FrontController.php:125]#12 Piwik_FrontController->dispatch() called at [/data/users/micr0lab/www/tech/piwik/index.php:57]


There is an error. Please report the message and full backtrace in the Piwik forums.

Warning: fopen(): open_basedir restriction in effect. File(/tmp/jpg_FbSRTC) is not within the allowed path(s): (/data/users/micr0lab) in /data/users/micr0lab/www/tech/piwik/libs/tcpdf/tcpdf.php on line 7611

Backtrace -->
#0 Piwik_ErrorHandler(2, fopen(): open_basedir restriction in effect. File(/tmp/jpg_FbSRTC) is not within the allowed path(s): (/data/users/micr0lab), /data/users/micr0lab/www/tech/piwik/libs/tcpdf/tcpdf.php, 7611, Array ([file] => /tmp/jpg_FbSRTC))#1 fopen(/tmp/jpg_FbSRTC, rb) called at [/data/users/micr0lab/www/tech/piwik/libs/tcpdf/tcpdf.php:7611]#2 TCPDF->_parsepng(/tmp/jpg_FbSRTC) called at [/data/users/micr0lab/www/tech/piwik/libs/tcpdf/tcpdf.php:7549]#3 TCPDF->_toPNG(Resource id #177) called at [/data/users/micr0lab/www/tech/piwik/libs/tcpdf/tcpdf.php:7322]#4 TCPDF->Image(/data/users/micr0lab/www/tech/piwik/plugins/UserSettings/images/browsers/FF.gif, 12, 39,53875, 4) called at [/data/users/micr0lab/www/tech/piwik/plugins/PDFReports/PDFRenderer.php:248]#5 Piwik_PDFReports_PDFRenderer->paintReportTable() called at [/data/users/micr0lab/www/tech/piwik/plugins/PDFReports/PDFRenderer.php:180]#6 Piwik_PDFReports_PDFRenderer->paintReport() called at [/data/users/micr0lab/www/tech/piwik/plugins/PDFReports/API.php:294]#7 Piwik_PDFReports_API->generateReport(2, 2011-03-07, 1, , 1, day)#8 call_user_func_array(Array ([0] => Piwik_PDFReports_API Object ([] => Array ()),[1] => generateReport), Array ([0] => 2,[1] => 2011-03-07,[2] => 1,[3] => ,[4] => 1,[5] => day)) called at [/data/users/micr0lab/www/tech/piwik/core/API/Proxy.php:156]#9 Piwik_API_Proxy->call(Piwik_PDFReports_API, generateReport, Array ([token_auth] => 8d646c18a8202cd2484f749b1a752a07,[module] => API,[action] => index,[idSite] => 1,[period] => day,[date] => 2011-03-07,[method] => PDFReports.generateReport,[idReport] => 2,[outputType] => 1,[filter_limit] => 50)) called at [/data/users/micr0lab/www/tech/piwik/core/API/Request.php:121]#10 Piwik_API_Request->process() called at [/data/users/micr0lab/www/tech/piwik/plugins/API/Controller.php:27]#11 Piwik_API_Controller->index()#12 call_user_func_array(Array ([0] => Piwik_API_Controller Object ([] => API,[] => ,[] => ,[] => 1,[] => ),[1] => index), Array ()) called at [/data/users/micr0lab/www/tech/piwik/core/FrontController.php:125]#13 Piwik_FrontController->dispatch() called at [/data/users/micr0lab/www/tech/piwik/index.php:57]


There is an error. Please report the message and full backtrace in the Piwik forums.

Warning: fopen(/tmp/jpg_FbSRTC): failed to open stream: Op?ration non permise in /data/users/micr0lab/www/tech/piwik/libs/tcpdf/tcpdf.php on line 7611

Backtrace -->
#0 Piwik_ErrorHandler(2, fopen(/tmp/jpg_FbSRTC): failed to open stream: Op?ration non permise, /data/users/micr0lab/www/tech/piwik/libs/tcpdf/tcpdf.php, 7611, Array ([file] => /tmp/jpg_FbSRTC))#1 fopen(/tmp/jpg_FbSRTC, rb) called at [/data/users/micr0lab/www/tech/piwik/libs/tcpdf/tcpdf.php:7611]#2 TCPDF->_parsepng(/tmp/jpg_FbSRTC) called at [/data/users/micr0lab/www/tech/piwik/libs/tcpdf/tcpdf.php:7549]#3 TCPDF->_toPNG(Resource id #177) called at [/data/users/micr0lab/www/tech/piwik/libs/tcpdf/tcpdf.php:7322]#4 TCPDF->Image(/data/users/micr0lab/www/tech/piwik/plugins/UserSettings/images/browsers/FF.gif, 12, 39,53875, 4) called at [/data/users/micr0lab/www/tech/piwik/plugins/PDFReports/PDFRenderer.php:248]#5 Piwik_PDFReports_PDFRenderer->paintReportTable() called at [/data/users/micr0lab/www/tech/piwik/plugins/PDFReports/PDFRenderer.php:180]#6 Piwik_PDFReports_PDFRenderer->paintReport() called at [/data/users/micr0lab/www/tech/piwik/plugins/PDFReports/API.php:294]#7 Piwik_PDFReports_API->generateReport(2, 2011-03-07, 1, , 1, day)#8 call_user_func_array(Array ([0] => Piwik_PDFReports_API Object ([] => Array ()),[1] => generateReport), Array ([0] => 2,[1] => 2011-03-07,[2] => 1,[3] => ,[4] => 1,[5] => day)) called at [/data/users/micr0lab/www/tech/piwik/core/API/Proxy.php:156]#9 Piwik_API_Proxy->call(Piwik_PDFReports_API, generateReport, Array ([token_auth] => 8d646c18a8202cd2484f749b1a752a07,[module] => API,[action] => index,[idSite] => 1,[period] => day,[date] => 2011-03-07,[method] => PDFReports.generateReport,[idReport] => 2,[outputType] => 1,[filter_limit] => 50)) called at [/data/users/micr0lab/www/tech/piwik/core/API/Request.php:121]#10 Piwik_API_Request->process() called at [/data/users/micr0lab/www/tech/piwik/plugins/API/Controller.php:27]#11 Piwik_API_Controller->index()#12 call_user_func_array(Array ([0] => Piwik_API_Controller Object ([] => API,[] => ,[] => ,[] => 1,[] => ),[1] => index), Array ()) called at [/data/users/micr0lab/www/tech/piwik/core/FrontController.php:125]#13 Piwik_FrontController->dispatch() called at [/data/users/micr0lab/www/tech/piwik/index.php:57]


TCPDF ERROR: Can't open image file: /tmp/jpg_FbSRTC

I know a topic related is already opened ( cf. 301 Moved Permanently ) but I did’nt want to interfere with it.
I know a ticket has been opened (cf. Automatic PDF email report not working when PDF report is linked to deleted site · Issue #2155 · matomo-org/matomo · GitHub ).

Hope this could help!

Cheers,
tcrxt.


#2

Hi,

just to keep this topic up-to-date…

The solution was found at http://forum.piwik.org/read.php?2,72150,page=1#msg-73181 : I had to create two folders, piwik/libs/tcpdf/cache and piwik/libs/tcpdf/images, to give full access to them (chmod 777).

I use the Gmail SMTP server to send Piwik emails, following http://piwik.org/faq/how-to/#faq_93.

And everything works fine now!