• Resolved hungpham

    (@hungpham)


    I am on WP 6.3.1, WooCommerce 8.0.3, PHP 8.2. In the server error log, I got multiple lines like this

    2023-09-08 09:36:29.270248 [NOTICE] [1076936] [195.123.219.41:48386:HTTP2-3#my.domain-443] [STDERR] PHP Warning: Attempt to read property “term_id” on null in /home/xxxxxxxx/domains/my.domain/private_html/wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-layered-nav.php on line 219

    What is the reason for this error, please?

    Thanks.

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

    The error is coming from the file class-wc-widget-layered-nav.php on line 219, which seems to be related to the WooCommerce Layered Nav widget, or WooCommerce Product Filters.

    The error could be due to a variety of reasons, such as a conflict with another plugin or a theme conflict.

    First, make sure that all plugins are up-to-date. Also, what changes have been made prior to this error? If all are up-to-date, I would suggest you perform a conflict test (by switching to a default WordPress theme and see if the issue is gone; if not, try deactivating all plugins and reactivating each to see which one causes the problem). You can find a more detailed explanation of how to do a conflict test here.

    It is a best practice to backup your site before making any changes.

    I hope it helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Attempt to read property “term_id” on null in’ is closed to new replies.