Title: PHP Warning
Last modified: October 19, 2023

---

# PHP Warning

 *  [convidentcas](https://wordpress.org/support/users/convidentcas/)
 * (@convidentcas)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/php-warning-455/)
 * Can you fix this warning? 
   `PHP Warning: foreach() argument must be of type array
   |object, null given in /wp-content/plugins/ean-for-woocommerce/includes/class-
   alg-wc-ean-rest-api.php on line 157`

Viewing 1 replies (of 1 total)

 *  Plugin Author [Algoritmika](https://wordpress.org/support/users/algoritmika/)
 * (@algoritmika)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/php-warning-455/#post-17138254)
 * Hi, [@convidentcas](https://wordpress.org/support/users/convidentcas/),
 * Although I wasn’t able to reproduce the issue on my test site, I’ve added additional
   checks to the code to prevent this warning. Could you please update the plugin
   to the latest v4.8.2 and let me know if that solves the issue?

Viewing 1 replies (of 1 total)

The topic ‘PHP Warning’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ean-for-woocommerce_dedeed.svg)
 * [EAN Barcode Generator for WooCommerce: UPC, ISBN & GTIN Inventory](https://wordpress.org/plugins/ean-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/ean-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/ean-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ean-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ean-for-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Algoritmika](https://wordpress.org/support/users/algoritmika/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/php-warning-455/#post-17138254)
 * Status: not resolved