Error for the products “quick edit” throught this plugin
-
hi everyone, i always used this plugin without receive errors or something like that but today i was trying to quick edit the products on my website but I couldn’t so I try to see what’s happened to make this function removed and it appear this error: `[14-Oct-2022 13:25:06 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_total_stock() on null in /srv/htdocs/wp-content/plugins/code-snippets/php/snippet-ops.php(505) : eval()’d code:7
Stack trace:
#0 /wordpress/core/6.0.2/wp-includes/class-wp-hook.php(307): custom_get_availability(Array, Object(WC_Product_Simple))
#1 /wordpress/core/6.0.2/wp-includes/plugin.php(191): WP_Hook->apply_filters(Array, Array)
#2 /wordpress/plugins/woocommerce/7.0.0/includes/abstracts/abstract-wc-product.php(2093): apply_filters(‘woocommerce_get…’, Array, Object(WC_Product_Simple))
#3 /srv/htdocs/wp-content/plugins/ajax-search-for-woocommerce/includes/Product.php(592): WC_Product->get_availability()
#4 /srv/htdocs/wp-content/plugins/ajax-search-for-woocommerce/includes/Engines/WordPressNative/DetailsBox.php(146): DgoraWcas\Product->getStockAvailability()
#5 /srv/htdocs/wp-content/plugins/ajax-search-for-woocommerce/includes/Engines/WordPressNative/DetailsBox.php(81): DgoraWcas\Engines\WordPressNative\DetailsBox->getProductDetails(9802)
#6 /wordpress/core/6.0.2/wp-includes/class-wp-hook.php(307): DgoraWcas\Engines\WordPressNative\DetailsBox->getResultDetails(”)
#7 /wordpress/core/6.0.2/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”, Array)
#8 /wordpress/core/6.0.2/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#9 /wordpress/plugins/woocommerce/7.0.0/includes/class-wc-ajax.php(93): do_action(‘wc_ajax_dgwt_wc…’)
#10 /wordpress/core/6.0.2/wp-includes/class-wp-hook.php(307): WC_AJAX::do_wc_ajax(”)
#11 /wordpress/core/6.0.2/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(false, Array)
#12 /wordpress/core/6.0.2/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#13 /wordpress/core/6.0.2/wp-includes/template-loader.php(13): do_action(‘template_redire…’)
#14 /wordpress/core/6.0.2/wp-blog-header.php(19): require_once(‘/wordpress/core…’)
#15 /wordpress/core/6.0.2/index.php(17): require(‘/wordpress/core…’)
#16 {main}
thrown in /srv/htdocs/wp-content/plugins/code-snippets/php/snippet-ops.php(505) : eval()’d code on line 7`Hope for a solution, thanks in advance
- The topic ‘Error for the products “quick edit” throught this plugin’ is closed to new replies.