1

In the order template, this error shows up in the generated PDFs when adding standard JPG images. We're running Commerce 1.2.x on PHP70.

It could be related to this dompdf issue, but how do we fix it in Craft Commerce?

0

1 Answer 1

3

Try setting:

'pdfAllowRemoteImages' => true,

in your commerce.php config file.

3
  • That worked! Stupid question but updates won't override the config file right?
    – biko
    Commented Jul 6, 2018 at 2:47
  • 1
    No, the commerce.php config file you create in your /config directory will never be overridden. Just don't edit the config.php file in the commerce directory. Commented Jul 6, 2018 at 4:18
  • Thx. Good thing I asked since I actually modified the core commerce/config.php which is definitely not the way to go, and didn't seem right either. I've created a craft/config/commerce.php file now. Thanks again!
    – biko
    Commented Jul 6, 2018 at 5:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.