Warning: Attempt to read property “ID” on int
-
Hello. I wish to report the same issue of the error which has been reported “Warning: Attempt to read property “ID” on int in /wp-content/MyDomain/plugins/facebook-for-woocommerce/facebook-commerce-events-tracker.php on line 202” <– Line 202 is specific to my error. It is a repeated warning based on the amount of subcategories there are to select from on any given category page and only appears there. For instance, if I go to the “Bells” page and there two options, there are two warnings. If I go to “Bikes,” with 8 options, then there are 8 warnings, and so on.
I only installed Facebook for Woo two nights ago and this issue wasn’t present on my site before then. Indeed, when I deactivate FB for Woo on my staging site, the error disappears.
For now, as all of my products list well on Facebook and Insta (and look great!) I can’t see any real world issues attached to this PHP warning. To hide this error displaying on my website frontend, I simply went into the Appearance->Customise panel in WordPress, & wrote the following in the Additional CSS box –
/*Hide Facebook error*/
.storefront-sorting {display: none}That obviously does not fix the core issue, but at least removes the warning text for customers. The fact that it looked unprofessional was a major downside on my product category pages. Hopefully the class of storefront can give you a clue as to the issue.
Thanks,
David.
The page I need help with: [log in to see the link]
- The topic ‘Warning: Attempt to read property “ID” on int’ is closed to new replies.