PDF Berichte - Fehler beim Generieren bzw Download


#1

Beim Erstellen eines E-Mail-Berichtes im PDF-Format erhalte ich folgende Fehlermeldungen:

There is an error. Please report the message and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Warning: imagepng() [function.imagepng]: open_basedir restriction in effect. File(/tmp/jpg_RYZ0X5) is not within the allowed path(s): (/home/.sites/707/site1626/web:/home/.sites/707/site1626/tmp:/usr/share/pear) in /home/.sites/707/site1626/web/piwik/libs/tcpdf/tcpdf.php on line 7659

Backtrace -->
#0 Piwik_ErrorHandler(…) called at [:]#1 imagepng(…) called at [/home/.sites/707/site1626/web/piwik/libs/tcpdf/tcpdf.php:7659]#2 TCPDF->_toPNG(…) called at [/home/.sites/707/site1626/web/piwik/libs/tcpdf/tcpdf.php:7436]#3 TCPDF->Image(…) called at [/home/.sites/707/site1626/web/piwik/core/ReportRenderer/Pdf.php:271]#4 Piwik_ReportRenderer_Pdf->paintReportTable(…) called at [/home/.sites/707/site1626/web/piwik/core/ReportRenderer/Pdf.php:205]#5 Piwik_ReportRenderer_Pdf->renderReport(…) called at [:]#6 array_walk(…) called at [/home/.sites/707/site1626/web/piwik/plugins/PDFReports/API.php:351]#7 Piwik_PDFReports_API->generateReport(…) called at [:]#8 call_user_func_array(…) called at [/home/.sites/707/site1626/web/piwik/core/API/Proxy.php:179]#9 Piwik_API_Proxy->call(…) called at [/home/.sites/707/site1626/web/piwik/core/API/Request.php:121]#10 Piwik_API_Request->process(…) called at [/home/.sites/707/site1626/web/piwik/plugins/API/Controller.php:27]#11 Piwik_API_Controller->index(…) called at [:]#12 call_user_func_array(…) called at [/home/.sites/707/site1626/web/piwik/core/FrontController.php:132]#13 Piwik_FrontController->dispatch(…) called at [/home/.sites/707/site1626/web/piwik/index.php:53]

There is an error. Please report the message and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Warning: imagepng() [function.imagepng]: Invalid filename in /home/.sites/707/site1626/web/piwik/libs/tcpdf/tcpdf.php on line 7659

Backtrace -->
#0 Piwik_ErrorHandler(…) called at [:]#1 imagepng(…) called at [/home/.sites/707/site1626/web/piwik/libs/tcpdf/tcpdf.php:7659]#2 TCPDF->_toPNG(…) called at [/home/.sites/707/site1626/web/piwik/libs/tcpdf/tcpdf.php:7436]#3 TCPDF->Image(…) called at [/home/.sites/707/site1626/web/piwik/core/ReportRenderer/Pdf.php:271]#4 Piwik_ReportRenderer_Pdf->paintReportTable(…) called at [/home/.sites/707/site1626/web/piwik/core/ReportRenderer/Pdf.php:205]#5 Piwik_ReportRenderer_Pdf->renderReport(…) called at [:]#6 array_walk(…) called at [/home/.sites/707/site1626/web/piwik/plugins/PDFReports/API.php:351]#7 Piwik_PDFReports_API->generateReport(…) called at [:]#8 call_user_func_array(…) called at [/home/.sites/707/site1626/web/piwik/core/API/Proxy.php:179]#9 Piwik_API_Proxy->call(…) called at [/home/.sites/707/site1626/web/piwik/core/API/Request.php:121]#10 Piwik_API_Request->process(…) called at [/home/.sites/707/site1626/web/piwik/plugins/API/Controller.php:27]#11 Piwik_API_Controller->index(…) called at [:]#12 call_user_func_array(…) called at [/home/.sites/707/site1626/web/piwik/core/FrontController.php:132]#13 Piwik_FrontController->dispatch(…) called at [/home/.sites/707/site1626/web/piwik/index.php:53]

There is an error. Please report the message and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Warning: fopen() [function.fopen]: open_basedir restriction in effect. File(/tmp/jpg_RYZ0X5) is not within the allowed path(s): (/home/.sites/707/site1626/web:/home/.sites/707/site1626/tmp:/usr/share/pear) in /home/.sites/707/site1626/web/piwik/libs/tcpdf/tcpdf.php on line 7725

Backtrace -->
#0 Piwik_ErrorHandler(…) called at [:]#1 fopen(…) called at [/home/.sites/707/site1626/web/piwik/libs/tcpdf/tcpdf.php:7725]#2 TCPDF->_parsepng(…) called at [/home/.sites/707/site1626/web/piwik/libs/tcpdf/tcpdf.php:7663]#3 TCPDF->_toPNG(…) called at [/home/.sites/707/site1626/web/piwik/libs/tcpdf/tcpdf.php:7436]#4 TCPDF->Image(…) called at [/home/.sites/707/site1626/web/piwik/core/ReportRenderer/Pdf.php:271]#5 Piwik_ReportRenderer_Pdf->paintReportTable(…) called at [/home/.sites/707/site1626/web/piwik/core/ReportRenderer/Pdf.php:205]#6 Piwik_ReportRenderer_Pdf->renderReport(…) called at [:]#7 array_walk(…) called at [/home/.sites/707/site1626/web/piwik/plugins/PDFReports/API.php:351]#8 Piwik_PDFReports_API->generateReport(…) called at [:]#9 call_user_func_array(…) called at [/home/.sites/707/site1626/web/piwik/core/API/Proxy.php:179]#10 Piwik_API_Proxy->call(…) called at [/home/.sites/707/site1626/web/piwik/core/API/Request.php:121]#11 Piwik_API_Request->process(…) called at [/home/.sites/707/site1626/web/piwik/plugins/API/Controller.php:27]#12 Piwik_API_Controller->index(…) called at [:]#13 call_user_func_array(…) called at [/home/.sites/707/site1626/web/piwik/core/FrontController.php:132]#14 Piwik_FrontController->dispatch(…) called at [/home/.sites/707/site1626/web/piwik/index.php:53]

There is an error. Please report the message and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Warning: fopen(/tmp/jpg_RYZ0X5) [function.fopen]: failed to open stream: Die Operation ist nicht erlaubt in /home/.sites/707/site1626/web/piwik/libs/tcpdf/tcpdf.php on line 7725

Backtrace -->
#0 Piwik_ErrorHandler(…) called at [:]#1 fopen(…) called at [/home/.sites/707/site1626/web/piwik/libs/tcpdf/tcpdf.php:7725]#2 TCPDF->_parsepng(…) called at [/home/.sites/707/site1626/web/piwik/libs/tcpdf/tcpdf.php:7663]#3 TCPDF->_toPNG(…) called at [/home/.sites/707/site1626/web/piwik/libs/tcpdf/tcpdf.php:7436]#4 TCPDF->Image(…) called at [/home/.sites/707/site1626/web/piwik/core/ReportRenderer/Pdf.php:271]#5 Piwik_ReportRenderer_Pdf->paintReportTable(…) called at [/home/.sites/707/site1626/web/piwik/core/ReportRenderer/Pdf.php:205]#6 Piwik_ReportRenderer_Pdf->renderReport(…) called at [:]#7 array_walk(…) called at [/home/.sites/707/site1626/web/piwik/plugins/PDFReports/API.php:351]#8 Piwik_PDFReports_API->generateReport(…) called at [:]#9 call_user_func_array(…) called at [/home/.sites/707/site1626/web/piwik/core/API/Proxy.php:179]#10 Piwik_API_Proxy->call(…) called at [/home/.sites/707/site1626/web/piwik/core/API/Request.php:121]#11 Piwik_API_Request->process(…) called at [/home/.sites/707/site1626/web/piwik/plugins/API/Controller.php:27]#12 Piwik_API_Controller->index(…) called at [:]#13 call_user_func_array(…) called at [/home/.sites/707/site1626/web/piwik/core/FrontController.php:132]#14 Piwik_FrontController->dispatch(…) called at [/home/.sites/707/site1626/web/piwik/index.php:53]

Der Tip die beiden Ordner [cache] und [images] im Verzeichnis /piwik/libs/tcpdf manuell zu Erstellen und mit vollen Rechten (chmod 777) zu versehen hat bisher nicht geholfen.

Mit der Bitte um Hilfe - Danke!


#2

Hab das selbe Problem. Seit dem Update auf 1.7.1 funktioniert es nicht mehr :frowning:
Ich hoffe, es kommt bald ein Update, womit das Problem behoben wird.


(Peterbo) #3

Siehe 301 Moved Permanently


#4

Hallo,
habe das selbe Problem wie LarsH. Seit dem Update auf 1.7.1 funktioniert das automatische Versenden und das manuelle Generieren eines PDF Reportes nicht mehr. Zuvor hat es perfekt funktioniert. Jetzt kommt folgender Fehlermeldung:

Fatal error: Out of memory (allocated 24117248) (tried to allocate 347081 bytes) in /homepages/XY/dabcdef/htdocs/piwik/libs/tcpdf/tcpdf.php on line 9851

Die Zeile der Fehlermeldung ist allerdings nicht immer die selbe, offensichtlich hängt sich das Script mal früher und mal später auf.

Die Anleitung über den Link von Peter habe ich ebenfalls getestet, habe die angeblich fehlenden Verzeichnisse angelegt und mit den empfohlenen Rechten versehen. Allerdings war es in meinem Fall wirkungslos.

Da für mich die PDF-Berichte sehr wichtig sind, bin ich etwas beunruhigt. Gibt es denn inzwischen eine Lösung?

Vielen Dank für die Unterstützung.


#5

@Peter Boehlke: Danke für den Hinweis, aber genau diese Tipps habe ich bereits ohne Erfolg ausprobiert.