• On facebook-for-woocommerce/facebook-commerce-events-tracker.php on line 189

    Our log is full of this error….

    Patched with:

    
    $products = array_values(
    				array_map(
    					function( $item ) {
                            if ( !is_object( $item ) ) {
                                return;
                            }
                            
    						return wc_get_product( $item->ID );
    					},
    					$wp_query->posts
    				)
    			);
    
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support B C. a11n

    (@battouly)

    Hi @mte90,

    I’m sorry to hear you are having some problems with the Facebook for WooCommerce plugin.

    Based on the code you shared here, it looks like there’s a conflict with WooCommerce pagination functionality on the product-category page. This function is indeed somewhere in facebook-commerce-events-tracker.php.

    Are the errors all gone when you deactivate Facebook for WooCommerce ?

    It will be great if you could share your current System Status Report. You can get it by navigating to the WooCommerce / Status section of your site. Once there, click on the Get system report button and then copy it by clicking on the Copy for support button. Then paste it here in a comment.

    The SSR will help understand the versions of plugins you are using and start narrowing down from there.

    I just did that patch and now there aren’t any errors.
    The error happens just with this plugin

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://ellius.com
    Site address (URL): https://ellius.com
    WC Version: 4.8.0
    REST API Version: ? 4.8.0
    WC Blocks Version: ? 3.8.1
    Action Scheduler Version: ? 3.1.6
    WC Admin Version: ? 1.7.3
    Log Directory Writable: ?
    WP Version: 5.6
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: ?
    WP Cron: –
    Language: it_IT
    External object cache: ?
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.3.25
    PHP Post Max Size: 128 MB
    PHP Time Limit: 600
    PHP Max Input Vars: 10000
    cURL Version: 7.74.0
    OpenSSL/1.1.1i
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.32
    Max Upload Size: 128 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Dropin Plugins (3) ###
    
    advanced-cache.php: advanced-cache.php
    db.php: db.php
    object-cache.php: object-cache.php
    
    ### Theme ###
    
    Name: 
    Version: 1.0
    Author URL: https://oceanwp.org/
    Child Theme: ?
    Parent Theme Name: OceanWP
    Parent Theme Version: 2.0.2
    Parent Theme Author URL: https://oceanwp.org/about-me/
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: oceanwp/woocommerce/cart/mini-cart.php
    oceanwp/woocommerce/content-single-product.php
    oceanwp/woocommerce/loop/loop-start.php
    oceanwp/woocommerce/single-product/title.php
    
    
    Plugin Support B C. a11n

    (@battouly)

    Thanks for sharing.

    I just did that patch and now there aren’t any errors.
    The error happens just with this plugin.

    So yes, there could be a conflict somewhere. What is the version of the Facebook for WooCommerce you are using? I couldn’t find it in the system status report you shared.

    It is the 2.2.0 version.
    We have also W3 total cache installed maybe it is the reason of the problem?

    Plugin Support B C. a11n

    (@battouly)

    It is the 2.2.0 version.
    We have also W3 total cache installed maybe it is the reason of the problem?

    Let’s start by deactivating the caching plugins and clear the cache. You are using the latest version of Facebook for WooCommerce, this conflict is not expected to happen at this point.

    I’d recommend conflict testing it, in case deactivating the cache plugin did not help.

    Here’s how: https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    I disable the page cache but I cannot remove my patch right now.

    Plugin Support B C. a11n

    (@battouly)

    I disable the page cache, but I cannot remove my patch right now.

    It sounds like a staging site would be a good idea here. If your host doesn’t offer that option, I recommend WP Staging for quickly spinning up a new test site.

    Once you have the staging site ready, on the staging site you can disable all plugins except for WooCommerce and Facebook for WooCommerce then switch your theme to the Storefront theme or twenty-twenty clear cache and see if it persists.

    Plugin Support B C. a11n

    (@battouly)

    Hi Daniele,

    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!

    I removed the plugin so I am not facing anymore that issue.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Trying to get property ‘ID’ of non-object’ is closed to new replies.