Stock Manager will cause several plugin rewrite error
-
hello!
Our client site is using a couple of plugins in their eCommerce site including
Woocommerce Stock Manager
wc-frontend-manager
sumomemberships
with multiple languages, tried WPML and TranslatepressHowever, we found that when woocommerce-stock-manager is activated. It will randomly generate apache error “LimitInternalRecursion” especially the with language path attached eg. domain.com/en, domain.com/zh_tw/.
We tested extensively with different combinations of plugins and sort out this result.Then we take a closer look in the code to see what is happening.
In class-stock-manager.php, there is a function create_table() which is doing require_once WP upgrade API for using the dbdelta() function. We have done an experiment that without loading anything in the plugin and requiring this file. The “LimitInternalRecursion” error will occur immediately.
It might be the fact that the upgrade.php is not suitable to be used in that way or for other reasons.We have deployed the test packages into different hosting including AWS, SG Shared Hosting, SG Managed Cloud. All give the same result. We have eliminated other factors such as individual code by turning them off and on and minimise the set of plugins to test together.
After consideration, we raise the issue here and hopefully it could be resolved or providing alternative options, workaround or updating the code.
Thanks for providing the plugin with essential features and thanks in advance.
- The topic ‘Stock Manager will cause several plugin rewrite error’ is closed to new replies.