Title: Error with php 7.4
Last modified: March 2, 2026

---

# Error with php 7.4

 *  Resolved [antoine56](https://wordpress.org/support/users/antoine56/)
 * (@antoine56)
 * [3 months, 1 week ago](https://wordpress.org/support/topic/error-with-php-7-4-3/)
 * Hi, there is an error when you update the plugin version 5.7 to version 5.8, 
   the error happen on all my site with this configuration, any solution ?

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

 *  Plugin Contributor [alexmigf](https://wordpress.org/support/users/alexmigf/)
 * (@alexmigf)
 * [3 months, 1 week ago](https://wordpress.org/support/topic/error-with-php-7-4-3/#post-18838285)
 * Hi [@antoine56](https://wordpress.org/support/users/antoine56/)
 * Could you please paste the error trace here?
 *  Thread Starter [antoine56](https://wordpress.org/support/users/antoine56/)
 * (@antoine56)
 * [3 months, 1 week ago](https://wordpress.org/support/topic/error-with-php-7-4-3/#post-18838293)
 * yes, here it is : 
   Une erreur de type E_PARSE a été causée dans la ligne 393 
   du fichier /home/arbores/www/wp-content/plugins/woocommerce-pdf-invoices-packing-
   slips/vendor/strauss/thecodingmachine/safe/lib/special_cases.php. Message d’erreur:
   syntax error, unexpected ‘|’, expecting ‘{‘
 *  [ryankline](https://wordpress.org/support/users/ryankline/)
 * (@ryankline)
 * [3 months, 1 week ago](https://wordpress.org/support/topic/error-with-php-7-4-3/#post-18838318)
 * Came here to report the same thing.
 * PHP Parse error: syntax error, unexpected ‘|’, expecting ‘{‘ in /wp-content/plugins/
   woocommerce-pdf-invoices-packing-slips/vendor/strauss/thecodingmachine/safe/lib/
   special_cases.php on line 393
 *  Plugin Contributor [alexmigf](https://wordpress.org/support/users/alexmigf/)
 * (@alexmigf)
 * [3 months, 1 week ago](https://wordpress.org/support/topic/error-with-php-7-4-3/#post-18838321)
 * Please try this version instead: [https://github.com/wpovernight/woocommerce-pdf-invoices-packing-slips/releases/download/v5.8.1-i1445.1/woocommerce-pdf-invoices-packing-slips.5.8.1-i1445.1.zip](https://github.com/wpovernight/woocommerce-pdf-invoices-packing-slips/releases/download/v5.8.1-i1445.1/woocommerce-pdf-invoices-packing-slips.5.8.1-i1445.1.zip)
 * Let me know if that fixes the issue.
 *  Thread Starter [antoine56](https://wordpress.org/support/users/antoine56/)
 * (@antoine56)
 * [3 months, 1 week ago](https://wordpress.org/support/topic/error-with-php-7-4-3/#post-18838357)
 * Yes; it’s good with this version, thanks a lot !

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-with-php-7-4-3%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

## Tags

 * [update](https://wordpress.org/support/topic-tag/update/)

 * 5 replies
 * 3 participants
 * Last reply from: [antoine56](https://wordpress.org/support/users/antoine56/)
 * Last activity: [3 months, 1 week ago](https://wordpress.org/support/topic/error-with-php-7-4-3/#post-18838357)
 * Status: resolved