• Resolved sirrahikkala

    (@sirrahikkala)


    Could you fix this? You are using very old embedded library.

    iconv(): Detected an illegal character in input stringwp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/symfony/polyfill-mbstring/Mbstring.php:416

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor alexmigf

    (@alexmigf)

    Hi @sirrahikkala

    Actually is not that old, we are loading version 1.27 and the latest is 1.28, see here. It seems that you’re passing some illegal char to the PDF HTML, which is causing the error.

    Alternatively you can change the converter tool with the code snippet below:

    add_filter( 'wpo_wcpdf_convert_encoding_tool', function( $tool ) {
    	return 'uconverter'; // default is 'mb_convert_encoding', alternatives are 'uconverter' (PHP8.2+) or 'iconv'
    } );

    If you never worked with filter hooks, please read this documentation page: How to use filters

    Hope that helps!

    Thread Starter sirrahikkala

    (@sirrahikkala)

    To be fair “we” are not passing any illegal char by just using the plugin in woocommerce so it’s a bug somewhere else. Our product names do contain umaults and copyright/trademark symbols but those should be obviously handled correctly by plugins.

    Plugin Contributor alexmigf

    (@alexmigf)

    Are you able to show us a PDF sample with fake customer data somehow?

    Thread Starter sirrahikkala

    (@sirrahikkala)

    I could send actual files privately to some address but that error is reported in admin interface by Query Monitor.

    • This reply was modified 11 months, 4 weeks ago by sirrahikkala.
    Plugin Contributor alexmigf

    (@alexmigf)

    You can use our email address: [email protected]

    Did you tried the code snippet as well?

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @sirrahikkala,

    Since we haven’t heard back from you in the last two weeks, we’re assuming you solved this issue, so I’ll go ahead and mark this ticket as Resolved.

    Feel free to reply to this topic is you still need help with this, or open a new topic if you have any other questions!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP error’ is closed to new replies.