Inconsistent behavior in production server with custom plugin
-
Hi,
I’m trying to get this sorted out but I’ve tried a lot of different things to debug the problem at hand with little success.
I won’t bother you with code (for now), as this is probably something server related or alike.
So I wrote this plugin that extends WooCommerce by adding custom data to it that is passed to cart using AJAX and $_SESSION data. It is running perfectly fine on my home server, I’ve tested it throughout and the custom data functions correctly on all WC modules.
The problem appears on my live server. So basically what is happening is that by adding to cart the one product I’m using (always with variations) is added only considering the variations. If I change the custom data for a new addition to cart, either with the product’s variations changing or staying the same, it won’t matter because the only custom data that will pass is the first one sent in the entire cart.
Can you give me any suggestions on what I can do ?
I’ve tried:
– parsing through PHP settings, but found nothing useful.
– “sessions” are configured practically as a carbon copy.
– changin theme to twenty 15
– disabling all other plugins other than mine and WooCommerce
– disabling caching on the browser and on siteOn my local server I’m running FPM/FascCGI and on the remote server it’s LiteSpeed V6.9, both running PHP 5.6.20.
Thank you for any kind of suggestion you might have.
- The topic ‘Inconsistent behavior in production server with custom plugin’ is closed to new replies.