WordPress.org

Forums

WooCommerce PDF Invoices & Packing Slips
[resolved] Logo not displayed in PDFs (6 posts)

  1. delerium62
    Member
    Posted 1 year ago #

    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/

  2. Ewout
    Member
    Plugin Author

    Posted 1 year ago #

    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?)

  3. Ewout
    Member
    Plugin Author

    Posted 1 year ago #

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

  4. delerium62
    Member
    Posted 1 year ago #

    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.

  5. Ewout
    Member
    Plugin Author

    Posted 1 year ago #

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

  6. Ewout
    Member
    Plugin Author

    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce PDF Invoices & Packing Slips
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.