TypeError when attempting to enable
-
Hi there hope you can help me and advice me on this, i encounted a
TypeErrorwhen attempting to enable and configure the native Store API Rate Limiting feature in WooCommerce. I used the “Rate Limiting UI for WooCommerce” plugin (though I didn’t save any settings in its UI, only installed it) to control this, but the error appeared.TypeError: $proxy_support (bool) given string when enabling Store API Rate Limiting
The specific error from my logs is:
TypeError: Automattic\WooCommerce\StoreApi\Authentication::get_rate_limiting_id(): Argument #1 ($proxy_support) must be of type bool, string givenlink to your documentation (https://github.com/woocommerce/woocommerce/blob/trunk/plugins/woocommerce/src/StoreApi/docs/rate-limiting.md)
I’m thinking on removed that plug-in. Could you please advise on this, it seems strange that gave error even if this ui plug-in was not set up.
my AI code helper says this but i want answer from real human thanks a lot. The “UI Rate Limiter for WooCommerce” plugin has a bug where it attempts to filter
woocommerce_store_api_rate_limit_optionswith an invalid default value (a string instead of a boolean forproxy_support) immediately upon activation or even just by being present. This would mean its default behavior is flawed.Thanks for your help! Could you please advise on this, it seems strange that gave error even if this ui plug-in was not set up!
The topic ‘TypeError when attempting to enable’ is closed to new replies.