Error Message on Product Page (woocommerce)


I’m getting an error message on the product pages using woocommerce:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘availability_filter_func’ not found or invalid function name in /home/natcoffe/www/ on line 235

I did not unchecked the inventory / manage stock options in the settings, but this does not seem to be the cause of the error (was my assumption that there is something wrong).

Any idea?

Thanks; Mathias

Dear Mathias,

I can confirm that the error isn’t produced by WooCommerce or Sydney Pro theme. There is no availability_filter_func function name to exist over there. It seems like other plugin or third party script does it. What will happen if you try disabling other plugins one by one and check whether the issue remains.


Thanks, Kharis

Found a line in functions.php

add_filter(‘woocommerce_get_availability’, ‘availability_filter_func’);

Removed that one and it seems to work without that function call.