Title: order-handler.inc.php html_entity_decode() breaking website in php8
Last modified: September 18, 2023

---

# order-handler.inc.php html_entity_decode() breaking website in php8

 *  [arberdesign](https://wordpress.org/support/users/arberdesign/)
 * (@arberdesign)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/order-handler-inc-php-html_entity_decode-breaking-website-in-php8/)
 * Where “PHP Warning: html_entity_decode() expects parameter 1 to be string, array
   given in order-handler.inc.php” only threw a warning, it is now causing “PHP 
   Fatal error: Uncaught TypeError: html_entity_decode()……” when payment gateways
   are active….
   After testing with a manual trigger, it appears that it would be
   BEST to go back to printing only on order-received endpoint. But when I set it
   to do that, of course the plugin has no idea what it’s reading…

The topic ‘order-handler.inc.php html_entity_decode() breaking website in php8’ 
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/star-cloudprnt-for-woocommerce_b4cfd9.
   svg)
 * [Star CloudPRNT for WooCommerce](https://wordpress.org/plugins/star-cloudprnt-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/star-cloudprnt-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/star-cloudprnt-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/star-cloudprnt-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/star-cloudprnt-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/star-cloudprnt-for-woocommerce/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [arberdesign](https://wordpress.org/support/users/arberdesign/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/order-handler-inc-php-html_entity_decode-breaking-website-in-php8/)
 * Status: not resolved