• Resolved roadlink

    (@roadlink)


    Hi there,

    I have updated today and see many of below errors in error.log file.

    When I search google about this error, I saw google indexed many pages with same error. https://prnt.sc/LiOS7zqZ6YQU

    Do you have any advise?

    Warning: Attempt to read property "query_vars" on null in?/srv/htdocs/wp-content/plugins/woocommerce/includes/class-wc-query.php on line 885

    Warning: Attempt to read property "query_vars" on null in?/srv/htdocs/wp-content/plugins/woocommerce/includes/class-wc-query.php on line 873

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @roadlink

    From your provided information, it seems like you’re experiencing a PHP warning after updating to WooCommerce 7.9.0. This warning is related to an attempt to read the property “query_vars” on a null object in the class-wc-query.php file of your WooCommerce plugin.

    This type of issue can sometimes be caused by plugin conflicts, theme conflicts, or outdated PHP versions. Here are some steps you can take to troubleshoot:

    1. Check PHP Version: Ensure that your hosting environment is running a recent version of PHP. WooCommerce recommends PHP 7.4 or greater. You can usually check your PHP version in your hosting control panel.
    2. Disable Plugins: Temporarily disable all plugins except WooCommerce to see if the issue persists. If the error disappears, reactivate your plugins one by one until you find the one causing the conflict. You can find a more detailed explanation of conducting a conflict test here.
    3. Switch Themes: Temporarily switch to the default Storefront theme. If this resolves the issue, the problem might be with your theme.
    4. Check WooCommerce Files: Ensure that all WooCommerce files are correctly updated. Sometimes, files can become corrupt during an update. You can do this by reinstalling the WooCommerce plugin.

    If none of these steps resolve the issue, please can you share a copy of the following:

    • System Status Report: navigate to WooCommerce → Status. Select Get system report and then Copy for support.
    • Fatal Error log: Share a copy of any fatal error log found under WooCommerce → Status → Logs.

    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here. This will help us investigate further and provide you with a more accurate solution.

    Please let me know if you have any further questions or if there’s anything else I can assist you with.

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    It’s been a while since you responded, so I’m marking this as resolved – we’ll be here if/when you need us.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘php error after woocommerce 7.9.0’ is closed to new replies.