0
When I press for a PDF to be created I get this line on the PHP_ERROR:

[23-May-2016 23:14:27 Europe/Paris] PHP Warning: Illegal string offset 'hex' in components\com_invoices\helpers\dompdf\include\style.cls.php on line 1418

It is not major since it works but still there is something going on!!
Responses (12)
  • Accepted Answer

    Tuesday, May 24 2016, 03:53 PM - #Permalink
    0
    hI!

    where do you get the error? inside the PDF?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, May 24 2016, 08:33 PM - #Permalink
    0
    Germinal Camps wrote:

    hI!

    where do you get the error? inside the PDF?


    No it is in my PHP error log!!
    • Germinal Camps
      more than a month ago
      oh, I see. I'll take a look. In any case it's probably not important, since it's just a warning and doesn't affect the PDF itself..
    The reply is currently minimized Show
  • Accepted Answer

    Syn Soft
    Syn Soft
    Offline
    Friday, March 31 2017, 03:10 PM - #Permalink
    0
    I am getting the same error, do you know if there is a resolve for it:


    Warning: Illegal string offset 'hex' in components/com_invoices/helpers/dompdf/include/style.cls.php on line 1418

    Fatal error: Call to undefined function imagecreatefrompng() in /components/com_invoices/helpers/dompdf/lib/class.pdf.php on line 4258
    The reply is currently minimized Show
  • Accepted Answer

    Friday, March 31 2017, 03:16 PM - #Permalink
    0
    have you altered the invoice template?
    The reply is currently minimized Show
  • Accepted Answer

    Syn Soft
    Syn Soft
    Offline
    Friday, March 31 2017, 03:45 PM - #Permalink
    0
    Germinal Camps wrote:

    have you altered the invoice template?


    No just uploaded the logo
    The reply is currently minimized Show
  • Accepted Answer

    Friday, March 31 2017, 03:46 PM - #Permalink
    0
    if you remove the logo, it works?
    The reply is currently minimized Show
  • Accepted Answer

    Syn Soft
    Syn Soft
    Offline
    Friday, March 31 2017, 05:06 PM - #Permalink
    0
    Hi Germinal, thanks very much for your help.

    To be more specific, I first was not able to get it installed by using the Joomla extension installer so I manually moved the files into here:

    components/com_invoices/helpers/dompdf

    as per the installation instructions. Everything else works except that. It did not work before adding the logo. I left the template as is, with line #3...





    and in the template I uploaded the logo using the "company logo" update option. I removed it and the problem still exists.

    Thanks again for your help.
    The reply is currently minimized Show
  • Accepted Answer

    Syn Soft
    Syn Soft
    Offline
    Friday, March 31 2017, 05:10 PM - #Permalink
    0
    Also, it only happens when you click the "download PDF" option in the admin and the front end. It goes to:

    /index.php/1-invoice-1000?format=dompdf

    Warning: Illegal string offset 'hex' in /components/com_invoices/helpers/dompdf/include/style.cls.php on line 1418

    Fatal error: Call to undefined function imagecreatefrompng() in /components/com_invoices/helpers/dompdf/lib/class.pdf.php on line 4258

    I have read that this has been fixed in "dompdf" v. 6.0 in a few places, here is one link: https://github.com/sliknl/dompdfbundle/issues/9

    What version is the one sent in the install?
    The reply is currently minimized Show
  • Accepted Answer

    Syn Soft
    Syn Soft
    Offline
    Saturday, April 01 2017, 02:15 PM - #Permalink
    0
    Hi Germinal. Do you know of a resolve for this because we can't do a PDF download and therefore can't bill a customer. Do you want SFTP or SSH access?

    Thanks for your help.
    d.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, April 01 2017, 04:04 PM - #Permalink
    0
    hello

    please send me joomla and FTP access at support@ joomlathat.com and I'll check.
    The reply is currently minimized Show
  • Accepted Answer

    Syn Soft
    Syn Soft
    Offline
    Saturday, April 01 2017, 11:21 PM - #Permalink
    0
    Germinal Camps wrote:

    hello

    please send me joomla and FTP access at support@ joomlathat.com and I'll check.


    Ok I just sent it, thanks very much for your help!! :)
    The reply is currently minimized Show
  • Accepted Answer

    Syn Soft
    Syn Soft
    Offline
    Monday, April 03 2017, 02:06 PM - #Permalink
    0
    Ok I fixed it!

    I am on CentOS 7 with PHP 5.6 and I had to manually install the following two packages:

    php-tcpdf
    and
    php56-php-pecl-pdflib

    and it works fine.

    Thanks for your support Germinal and offering to work on our server. :)
    The reply is currently minimized Show
Your Reply