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
PDF reports not generating under HHVM 3.12.0 #9952
Comments
Seems that when using HHVM, Piwik's API renderer sets wrong response format (XML). PDF file format requires Piwik's API renderer appends XML response to valid PDF content, resulting in garbaged output:
Therefore, the browser cannot show the PDF content correctly, and shows you the XML error message instead. Furthermore, when using HHVM instead of PHP engine, even though TCPDF is already setting correct
Correct response headers using PHP 5.6.19:
Temporary solutionYou can bypass this behaviour by appending LTS solutionThis issue requires thorough investigation, but from what I can see so far, here would be some proposed solutions:
That way we would ensure that there is no extra content appended to the inline browser PDF output. |
@emirb thank you a lot for investigating and giving us insights into the problem. 👍 👍 I haven't tried to reproduce it but wonder if this PR maybe kind of fixed the content type issue: #9700 @kofispaceman or @emirb can you maybe try with latest beta version 2.16.1 (at least 2.16.1-b2 or |
Hi @kofispaceman - do you still have the issue with our latest beta? please let us know http://piwik.org/faq/how-to-update/faq_159/ |
Hi @kofispaceman @emirb let us know if the issue is still here |
Hello,
I'm running PIWIK on a VPS with Ubuntu 15.04, HHVM 3.12.0 and NGINX 1.9.10. I have both PHP 5.6.4 and HHVM installed on that server. I use PHP to serve old web applications and HHVM for modern ones.
PIWIK works great under HHVM and reduces CPU load but PDF reports cannot be generated under HHVM.
I created a personal daily, weekly and monthly email report for one of my tracking sites under my account. On the reports table, there is an option to download the PDF.
When it is clicked this is the error message that comes up:
http://snag.gy/5td22.jpg
When I switch from HHVM to PHP, the PDF works flawlessly.
The text was updated successfully, but these errors were encountered: