Fatal error: Uncaught Error: Call to a member function get_attribute() on null
-
Hi there…
I get an error message like this:
Display on the admin page (backend)
Fatal error: Uncaught Error: Call to a member function get_attribute() on null in /home/sitexxx/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(469) : eval()'d code:9 Stack trace: #0 /home/sitexxx/public_html/wp-includes/class-wp-hook.php(303): conditional_product_status('instock', NULL) #1 /home/sitexxx/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters('instock', Array) #2 /home/sitexxx/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php(797): apply_filters('woocommerce_pro...', 'instock', Object(WC_Product_Simple)) #3 /home/sitexxx/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(374): WC_Data->get_prop('stock_status', 'view') #4 /home/sitexxx/public_html/wp-content/plugins/advanced-woo-search/includes/class-aws-table-data.php(481): WC_Product->get_stock_status() #5 /home/sitexxx/public_html/wp-content/plugins/advanced-woo-search/includes/class-aws-table-data.php(69): AWS_Table_Data->get_stock_status() #6 /home/tjep in /home/sitexxx/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(469) : eval()'d code on line 9Display on the front end
Notice: Undefined variable: stock in /home/tjeptuhk/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(469) : eval()'d code on line 42 Notice: Undefined variable: stock in /home/tjeptuhk/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(469) : eval()'d code on line 42 class="entry has-media col span_1_of_2 owp-content-left owp-thumbs-layout-horizontal owp-btn-normal owp-tabs-layout-section product type-product post-570 status-publish first product_cat-band product_cat-phone product_cat-casing product_tag-600 product_tag-industry product_tag-1m-1-49m product_tag-1-mil product_tag-second has-post-thumbnail sold-individually shipping-taxable purchasable product-type-simple">I tried to fix it by disabling the active code one by one but it didn’t work.
Can you help me fix this?
Thank you
The topic ‘Fatal error: Uncaught Error: Call to a member function get_attribute() on null’ is closed to new replies.