Support » Plugin: WooCommerce » 2 PHP warnings in error log

  • Resolved sostoss


    I keep getting these 2 errors

    Notice: Trying to get property of non-object in /home/ulook/public_html/wp-content/plugins/woocommerce/includes/class-wc-query.php on line 722

    Notice: Trying to get property of non-object in /home/ulook/public_html/wp-content/plugins/woocommerce/includes/class-wc-query.php on line 710

    Could you please help me with this?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there,

    This kind of problem is usually caused by either a conflict with your theme or with another plugin.

    The best way to determine if the issue is being caused by a theme and/or plugin is to temporarily switch your theme to Storefront and disable all plugins except for WooCommerce. If you can install plugins, install Health Check. On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you while you’re logged in to that session without affecting normal visitors to your site. Note that Health Check may not count Storefront as a default theme, so you can also use Twenty Seventeen as well.

    If that resolves the issue, then one-by-one you can switch back your theme and re-enable your plugins, testing in between, until you find the one causing the conflict.

    Hope that helps, let me know!

    Thread Starter sostoss


    I would love to check Health Check, but it seems from the reviews that the specific plugin has destroyed several wordpress installations……

    If you prefer to avoid Health Check, you can create a staging site by using this plugin:

    It will create an exact copy of your site that can be used for testing purposes (please make a backup of your site before running it). This way, you can perform plugin/theme conflict test without influencing your live site.

    Plugin Support Luminus Alabi a11n


    Automattic Happiness Engineer


    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.

    Go to WordPress Dashboard / Settings / Permalinks => Click “Save Changes” (no need to make any changes). Helped here with the exact same notices. Also clear the caches.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘2 PHP warnings in error log’ is closed to new replies.