Forum

Error when creating PDF

Posted in CategoryGeneral
  • Christopher
    Christopher Peeters   ( User ) 6 months 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
    Denis Duliçi   ( Admin ) 6 months ago

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

  • Christopher
    Christopher Peeters   ( User ) 6 months 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
    Denis Duliçi   ( Admin ) 6 months ago

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

Please login or register to leave a response.