• Resolved commaster

    (@commaster)


    Hello,This issue happens alot, I go to shop page, and no products gets shown, with additional couple of error messages appears in my sidebar filters section states the below:

    <span style=”color: rgb(85, 85, 85); font-family: Roboto, sans-serif; white-space-collapse: collapse;”>Warning: Attempt to read property “query_vars” on null in /var/www/vhosts/shop.tyachic.com/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-query.php on line 873</span>

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

Viewing 1 replies (of 1 total)
  • Hi @commaster

    Products are not showing in Shop page, with errors. This issue happens alot, I go to shop page, and no products gets shown, with additional couple of error messages appears in my sidebar filters section states the below:

    Warning: Attempt to read property “query_vars” on null in /var/www/vhosts/shop.tyachic.com/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-query.php on line 873

    From what I understand, you’re experiencing a recurring issue where no products are displayed on your shop page. Additionally, you’re receiving an error message in your sidebar filters section that reads: “Warning: Attempt to read property “query_vars” on null in /var/www/vhosts/shop.tyachic.com/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-query.php on line 873”.

    This error message indicates that the website is trying to access a property on a null object, which is causing the issue. Here are the steps to troubleshoot this issue:

    1. Disable all plugins except WooCommerce: Sometimes, other plugins can interfere with WooCommerce’s functionality. To rule this out, try disabling all other plugins. If the issue is resolved, you can then re-enable each plugin one by one to identify the conflicting plugins.
    2. Switch to a default WordPress theme: Theme conflicts can also cause this issue. Try switching to a default WordPress theme like Storefront to see if the issue persists. Here’s a helpful guide on how to test for conflicts: ?? How to Test for Plugin and Theme Conflicts
    3. Check for updates: Make sure your WordPress, WooCommerce, and all other plugins are up-to-date. An outdated plugin or version of WordPress may cause compatibility issues.
    4. Enable Debug mode: Turn on debugging in WordPress to see if it logs any specific errors. Add these lines to your wp-config.php file:
    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );

    Then, try to reproduce the error by visiting the /shop page. Check the debug.log file in your wp-content directory for any error messages.

    If the error continues after these steps, can you share more details, like the exact error messages you see when debug mode is on? This will help us diagnose and fix the problem more effectively.

    Also, we’d find it helpful if you could share your site’s System Status report. This will give us a better understanding of your site’s setup and help us pinpoint the problem. You can find it via WooCommerce > Status. Select Get system report and then Copy for support.

    Lastly, could you share the fatal error logs (if any) under WooCommerce > Status > Logs.

    Once you have that, please paste it inside a Code block in your reply, or use https://pastebin.com/ to paste it and share the link with us.

    Thank you for your patience and cooperation in this matter. I’m looking forward to your response so we can solve this issue for you.

Viewing 1 replies (of 1 total)
  • The topic ‘Products are not showing in Shop page, with errors’ is closed to new replies.