Title: PHP 8
Last modified: September 23, 2021

---

# PHP 8

 *  Resolved [Robert](https://wordpress.org/support/users/roberthedlund/)
 * (@roberthedlund)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-8-33/)
 * Hi
 * Thank you for an great plugin.
    I tried PHP 8 on my staging site tho, and Im 
   getting some errors in the error log. Does this mean the plugin doesn’t fully
   support PHP 8 yet?
 * Example log:
    `[error] 278#278: *2839 FastCGI sent in stderr: "PHP message: PHP
   Warning: Attempt to read property "post_type" on null in /www/XXXXXXXX/public/
   wp-content/plugins/ean-for-woocommerce/includes/class-alg-wc-ean-search.php on
   line 203PHP message: PHP Warning: Attempt to read property "ID" on null in /www/
   XXXXXXXX/public/wp-content/plugins/ean-for-woocommerce/includes/class-alg-wc-
   ean-search.php on line 207" while reading response header from upstream, client:
   217.213.70.225, server: stagingXXXXXX, request: "GET /produkter/nyheter/ HTTP/
   1.0", upstream: "fastcgi://unix:/var/run/php8.0-fpm-staging.sock:", host: "stagingXXXXX",
   referrer: "https://stagingXXXXX.site/"`
 * Thanks 🙂

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

 *  Plugin Author [Algoritmika](https://wordpress.org/support/users/algoritmika/)
 * (@algoritmika)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-8-33/#post-14903702)
 * Hi [@roberthedlund](https://wordpress.org/support/users/roberthedlund/),
 * Thank you 🙂
 * I’ve just tested it on my server with PHP v8.0.0 but unfortunately couldn’t reproduce
   the issue – it seems to be working fine here, and there are no errors in the 
   logs. And, to be honest, from your log it doesn’t look like an error related 
   to the PHP version.
 * Anyway, please update the plugin to the latest v2.3.0. I’ve just added some safe-
   checks to the plugin code based on what I see in your log. I believe the error
   should be gone now. Please give it a try and let me know if it’s ok now?
 *  Thread Starter [Robert](https://wordpress.org/support/users/roberthedlund/)
 * (@roberthedlund)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-8-33/#post-14904346)
 * [@algoritmika](https://wordpress.org/support/users/algoritmika/) Weehoo! After
   i update the plugin I cant see any more errors 🙂
    Thank you alot, will defently
   buy the premium!
 * Have a nice weekend! 🙂
 *  Plugin Author [Algoritmika](https://wordpress.org/support/users/algoritmika/)
 * (@algoritmika)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-8-33/#post-14906197)
 * Hi [@roberthedlund](https://wordpress.org/support/users/roberthedlund/),
 * Happy to hear it’s solved 🙂 Let me know if you need anything else. And if you
   like the plugin, please consider [leaving me a rating](https://wordpress.org/support/plugin/ean-for-woocommerce/reviews/).
 *  [urbanbiker](https://wordpress.org/support/users/urbanbiker/)
 * (@urbanbiker)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-8-33/#post-14920151)
 * Hello we need to know the system field to be able to pass the data to an API 
   and we do not know which one to put. They are products with EAN in several variations.
   We attach screenshot to show it.
    Thank you
 * [https://ibb.co/GTfhxGf](https://ibb.co/GTfhxGf)
 *  Plugin Author [Algoritmika](https://wordpress.org/support/users/algoritmika/)
 * (@algoritmika)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-8-33/#post-14921012)
 * Hi [@urbanbiker](https://wordpress.org/support/users/urbanbiker/),
 * The field key is `_alg_ean` for all products, including variations, main variable
   products, simple products, etc. So from your screenshot, I think all you need
   to do is put `_alg_ean` in the “EAN source field name” field.
 * Hope that helps. Please let me know if you have any questions.

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

The topic ‘PHP 8’ 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/)

 * 5 replies
 * 3 participants
 * Last reply from: [Algoritmika](https://wordpress.org/support/users/algoritmika/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/php-8-33/#post-14921012)
 * Status: resolved