Title: Error when using PHP 8.x
Last modified: March 23, 2025

---

# Error when using PHP 8.x

 *  Resolved [redfevers](https://wordpress.org/support/users/redfevers/)
 * (@redfevers)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/error-when-using-php-8-x/)
 * Hello,
   I hope someone can help me out. I am facing an error messages shown on
   brand (not listing of all brands, but when viewing the brand domain/perfect-brand-
   slug/brand-x), when I go to any brand, the message is shown before listing of
   products (and under the text if there is any description of a brand). I tried
   with any plugin deactivation but basic ones to run woocommerce + woodmart ones,
   with no luck at all. Everything runs smooth using PHP 7.x.
 * I suspect it has to be Perfect Brands plugin that causing this, as it is directly
   affected the pages that belongs to them. On the rest of the page, no errors.
 * These are the errors:
   `Warning: Attempt to read property "ID" on null in /home/
   xxxx/public_html/wp-includes/link-template.php on line 394Warning: Attempt to
   read property "ID" on null in /home/xxxx/public_html/wp-includes/link-template.
   php on line 409Warning: Attempt to read property "ID" on null in /home/xxxx/public_html/
   wp-includes/link-template.php on line 394Warning: Attempt to read property "ID"
   on null in /home/xxxx/public_html/wp-includes/link-template.php on line 409
 * Appreciate any help or suggestion you might have, or fix by update of plugin.

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

 *  Plugin Support [jmatiasmastro](https://wordpress.org/support/users/jmatiasmastro/)
 * (@jmatiasmastro)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/error-when-using-php-8-x/#post-18391958)
 * [@redfevers](https://wordpress.org/support/users/redfevers/) Hello mate, could
   you please tell us which version of our plugin (Free and/or Pro) you are using
   in addition to the WordPress version?
   Best regards.
 *  Thread Starter [redfevers](https://wordpress.org/support/users/redfevers/)
 * (@redfevers)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/error-when-using-php-8-x/#post-18394659)
 * Hello [@jmatiasmastro](https://wordpress.org/support/users/jmatiasmastro/) , 
   it’s free version 3.5.0 with WP 6.7.2.
 * Kind regards
 *  Plugin Support [jmatiasmastro](https://wordpress.org/support/users/jmatiasmastro/)
 * (@jmatiasmastro)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/error-when-using-php-8-x/#post-18406578)
 * [@redfevers](https://wordpress.org/support/users/redfevers/) Ok mate, could you
   try switching temporarily to a default theme (like Storefron/Twenty Twenty-Four)
   and let us know if the error still occurs? That would help confirm if there’s
   a conflict with the current theme.
   Best regards.

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

The topic ‘Error when using PHP 8.x’ is closed to new replies.

 * ![](https://ps.w.org/perfect-woocommerce-brands/assets/icon-256x256.jpg?rev=2912506)
 * [Perfect Brands for WooCommerce](https://wordpress.org/plugins/perfect-woocommerce-brands/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/perfect-woocommerce-brands/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/perfect-woocommerce-brands/)
 * [Active Topics](https://wordpress.org/support/plugin/perfect-woocommerce-brands/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/perfect-woocommerce-brands/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/perfect-woocommerce-brands/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [jmatiasmastro](https://wordpress.org/support/users/jmatiasmastro/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/error-when-using-php-8-x/#post-18406578)
 * Status: resolved