• Resolved damax83

    (@damax83)


    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]

Viewing 16 replies (of 16 total)
  • Plugin Support con

    (@conschneider)

    Engineer

    Hi @damax83,

    > Hi. Elementor support have been on my site overnight and have only been able to turn off the front end php warning.

    Great. As they mentioned these are PHP warnings / notices, not errors. They are for developers only and they must not display on your site to begin with. Turning them off was the right move. You can safely ignore them.

    > They’ve confirmed it’s an issue with the coding within the Facebook app and that it should be fixed from your end.

    That is correct.
    Other than the warning, is there something that is not working as expected?

    Kind regards,

Viewing 16 replies (of 16 total)
  • The topic ‘Warning: Attempt to read property “ID” on int’ is closed to new replies.