• Resolved gevcen

    (@gevcen)


    [01-Jan-2021 13:14:17 UTC] PHP Notice: Trying to get property ‘post_status’ of non-object in /home/customer/www/DOMAIN/public_html/wp-content/plugins/facebook-for-woocommerce/includes/fbproductfeed.php on line 456

    I’m getting the above error in my debug.log file, what is this about? why it fails and throws error?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Siobhan

    (@siobhyb)

    Hi @gevcen, thank you for the report!

    I found an open report that matches up to the error you’re seeing here and have requested for it to be re-opened: https://github.com/facebookincubator/facebook-for-woocommerce/issues/1552

    Would you be able to confirm the version of the plugin that you have installed? In addition, do you have any custom product types created in your store?

    Those extra details will help us to troubleshoot this further.

    Thread Starter gevcen

    (@gevcen)

    Dear,

    I use the latest version of the plugin (2.2.0). Everything on my site (wordpress, woocommerce, plugins) are all up-to-date.

    For the custom product types, I’m not sure what this refers too? Attributes? Variations? Extra custom product options?

    Thanks
    Gevcen

    I also am getting this error.

    Plugin Support Siobhan

    (@siobhyb)

    Thank you for the extra details, @gevcen.

    For the custom product types, I’m not sure what this refers too? Attributes? Variations? Extra custom product options?

    The following are the four default product types that are built into Woocommerce:

    1. Simple product
    2. Variable product
    3. Group product
    4. External/affiliate product

    A custom product type would by any other type of product that’s added either via a plugin or custom code.

    There is a good chance that the error you’re seeing is being caused by a product type that’s been set up in a way that’s different to the default.

    To help track this down further, it would be great if you could add additional logging on line 455 of the plugin’s fbproductfeed.php file. This file can be found under the plugin’s includes folder. Add the following to that line:

    facebook_for_woocommerce()->log( 'DEBUG: Looping over parent of: ' . $post_id );

    That should give us some more details in the logs to investigate further.

    Plugin Support Siobhan

    (@siobhyb)

    @neilscott: Thanks for the report! Would you be able to create a separate forum post if you’d like us to troubleshoot this directly with you? That will help us to avoid any confusion between the separate reports here.

    Plugin Support B C. a11n

    (@battouly)

    Hi there,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved. If you have any further questions, you can start a new thread.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Error in debug.log’ is closed to new replies.