Support » Plugin: PDF Invoices & Packing Slips for WooCommerce » Logo not displayed in PDFs

  • Resolved Wil

    (@delerium62)


    Hello,

    The logo does not display on either of the PDFs created. Output to html shows this error:

    Fatal error: Call to undefined function mb_convert_encoding() in /home/mydomain/public_html/store/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 96

    The permission for the two directories you’ve mentioned are 755 – not sure if that has anything to do with it (you didn’t mention what they should be set to).

    https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi There,
    755 should be ok on the directories. Some people use 777 but IMO that’s just a bad way to fix a wrongly configured server.

    I think the fatal error may be the root cause of this issue (although it’s interesting that the PDF actually gets created!). mb_convert_encoding is a PHP function – in 99% of the servers that is installed by default, but apparently in your case it isn’t. Contact your host to ask if they can install php-mbstring.

    Just to check: What is the filetype of the logo? (jpg/png?)

    Plugin Contributor Ewout

    (@pomegranate)

    Hi! Have you been able to figure out the root cause of this issue? Let me know if you need any help.

    Thread Starter Wil

    (@delerium62)

    We’ve discovered that php-mbstring is not installed and at the same time noticed we have an older version of PHP (5.2), so we’re just preparing for updating & recompiling PHP to the latest version and then installing that extension. However, that probably won;t happen till next week, so I’ll let you know then.

    Plugin Contributor Ewout

    (@pomegranate)

    @delerium62 did you manage to solve this issue? Let me know so I can close this thread.

    Plugin Contributor Ewout

    (@pomegranate)

    I’m closing this topic for now, but let me know if you still need help with this!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Logo not displayed in PDFs’ is closed to new replies.