Title: Errors when translating invoice documents
Last modified: June 10, 2022

---

# Errors when translating invoice documents

 *  Resolved [orotec](https://wordpress.org/support/users/orotec/)
 * (@orotec)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/errors-when-translating-invoice-documents/)
 * Since the last update (08/06/2022), the printing of Invoice documents is impossible
   because of a weglot error :
 *     ```
       Fatal error: Cannot access offset of type string on string
       /home/orotede326/domains/3dsupplies.be/public_html/wp-content/plugins/weglot/src/third/woocommercepdf/class-wcpdf-weglot.php (96)
       #0 /home/orotede326/domains/3dsupplies.be/public_html/wp-includes/class-wp-hook.php(307): WeglotWP\Third\Woocommercepdf\WCPDF_Weglot->translate_invoice_pdf()
       #1 /home/orotede326/domains/3dsupplies.be/public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters()
       #2 /home/orotede326/domains/3dsupplies.be/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-pdf-maker.php(53): apply_filters()
       #3 /home/orotede326/domains/3dsupplies.be/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(752): WPO\WC\PDF_Invoices\PDF_Maker->output()
       #4 /home/orotede326/domains/3dsupplies.be/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(814): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf()
       #5 /home/orotede326/domains/3dsupplies.be/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(376): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf()
       #6 /home/orotede326/domains/3dsupplies.be/public_html/wp-includes/class-wp-hook.php(307): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax()
       #7 /home/orotede326/domains/3dsupplies.be/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
       #8 /home/orotede326/domains/3dsupplies.be/public_html/wp-includes/plugin.php(476): WP_Hook->do_action()
       #9 /home/orotede326/domains/3dsupplies.be/public_html/wp-admin/admin-ajax.php(187): do_action()
       #10 {main}
       ```
   
 * I have tried surpressing all other plugins, and only when activating WEGLOT plugin,
   the error occures

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [Edson Galina Fortes](https://wordpress.org/support/users/glx77/)
 * (@glx77)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/errors-when-translating-invoice-documents/#post-15725401)
 * hi [@orotec](https://wordpress.org/support/users/orotec/) ,
 * hope you’re fine? Sorry for the issue you’re facing. A fix should be deploy next
   week to fix it. waiting, can you rollback to the 3.6.1 version? you can find 
   it here : [https://wordpress.org/plugins/weglot/advanced/](https://wordpress.org/plugins/weglot/advanced/)
 * At the bottom page you can download the 3.6.1 version and re-upload it
 * Regards
 *  Plugin Contributor [Edson Galina Fortes](https://wordpress.org/support/users/glx77/)
 * (@glx77)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/errors-when-translating-invoice-documents/#post-15739083)
 * hi [@orotec](https://wordpress.org/support/users/orotec/) ,
 * we’ve passed the 3.7.1 version who fixed your issue. Can you make the update 
   and confirm me it’s ok on your side
 * Regards

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Errors when translating invoice documents’ is closed to new replies.

 * ![](https://ps.w.org/weglot/assets/icon-256x256.gif?rev=3333666)
 * [Translate WordPress with Weglot - Multilingual AI Translation](https://wordpress.org/plugins/weglot/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/weglot/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/weglot/)
 * [Active Topics](https://wordpress.org/support/plugin/weglot/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/weglot/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/weglot/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Edson Galina Fortes](https://wordpress.org/support/users/glx77/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/errors-when-translating-invoice-documents/#post-15739083)
 * Status: resolved