Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

Error when creating PDF

Christopher Peeters   ( User )

Commented 6 years ago

When I create a PDF from my invoice I get an error "Whoops, looks like something went wrong."


I've checked the logs and found the following error:


production.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method DOMDocument::hasAttribute() in /var/www/vhosts/example.com/vendor/dompdf/dompdf/src/Css/Stylesheet.php:970


With a bit of help of Google I found this issue for dompdf:


https://github.com/dompdf/dompdf/issues/1563


The last comment on the issue mentions that dompdf 0.8.0 might work fine. Is it possible to switch to this version to test wether it works?

Denis Dulici   ( Admin )

Commented 6 years ago

I'm not able to reproduce such an error but will update dompdf within the next version.

Christopher Peeters   ( User )

Commented 6 years ago

I'm running it on a CentOS 7.3 with Plesk Onyx 17.5.3


I followed the installation steps according to the procedure described in the documentation. I hope I've given you some usefull information to be able to find out what's going wrong?

Denis Dulici   ( Admin )

Commented 6 years ago

Thanks Christopher, will try this again after updating dompdf library.

Please login or register to leave a response.

Showing 1 to 4 of 4 discussions