Skip to content
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

Stops an Loading page 50% with an error #376

Closed
patriceckhart opened this issue Sep 29, 2021 · 4 comments
Closed

Stops an Loading page 50% with an error #376

patriceckhart opened this issue Sep 29, 2021 · 4 comments

Comments

@patriceckhart
Copy link

I have now installed wkhtmltopdf on alpine apk add wkhtmltopdf It can be called in the shell. If I now execute the following code in the controller, I get the following error: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-www-data' Loading page (1/2) [> ] 0% [==============================> ] 50%

$pdf = new Pdf('/data/neos/Data/foo.html');
if (!$pdf->saveAs('/data/neos/Data/Test.pdf')) {
   $error = $pdf->getError();
}
@mikehaertl
Copy link
Owner

mikehaertl commented Sep 30, 2021

[Deleted]

@mikehaertl
Copy link
Owner

mikehaertl commented Sep 30, 2021

Sorry, I misread your issue. It's not about a hanging task but an error.

What happens if you run wkhtmltopdf on the command line for that file? Does it work there?

@mikehaertl
Copy link
Owner

Closing this as there was no further feedback. I also think it's rather an issue with wkhtmldopf on alpine so nothing we can fix here. See https://gitlab.alpinelinux.org/alpine/aports/-/issues/12110

@mikehaertl
Copy link
Owner

Also: wkhtmltopdf/packaging#2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants