Good day,

An error was encountered when I was trying to export order details to PDF in Store Module.

Following are the errors:

A PHP Error was encountered:
Severity: Warning ;  
Message: Illegal string offset 'hex';   
Filename: include/style.cls.php ;  
Line Number: 1418;

Unable to stream pdf: headers already sent

Version of EE and Store are 2.6.1 and 1.64 respectively.

  • 1
    Which version of PHP are you running? It's probably best you email [email protected] with instructions on how to reproduce the issue so that we can take a look into this for you. Aug 18, 2013 at 4:27
  • @AdrianMacneil My version of PHP is PHP 5.4.17 (cli) (built: Aug 6 2013 12:19:53). Thank you for your advice. I will definitely send a ticket to [email protected].
    – tebesfinwo
    Aug 18, 2013 at 16:25
  • This appears to be a bug in DOMPDF, the pdf library we use. We will release Store 1.6.5 soon with an updated version of this library, but if anyone wants to test this sooner please email [email protected]. Aug 25, 2013 at 20:54

1 Answer 1


This was a bug in the PDF generation library Store uses (dompdf). It only happened on servers running PHP 5.4 or newer.

This has been fixed in Store 1.6.5:


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.