Matzy Posted January 5, 2016 Share Posted January 5, 2016 Afternoon all,Having a strange problem with our site in the past few days where the cart is really playing up, we're getting people having "too many redirects" errors when adding multiple items to the cart, its not showing the correct items in the cart, not able to remove products from the cart etc.. rest of the site seems fine apart from the carts.. I switched debug on and this error is at the top.. [Notice] /home/demonpai/public_html/classes/catalogue.class.php:446 - Undefined variable: selected[Notice] /home/demonpai/public_html/classes/catalogue.class.php:446 - Undefined variable: selected[Notice] /home/demonpai/public_html/classes/catalogue.class.php:446 - Undefined variable: selected[Notice] /home/demonpai/public_html/classes/catalogue.class.php:446 - Undefined variable: selected[Notice] /home/demonpai/public_html/classes/catalogue.class.php:446 - Undefined variable: selected[Notice] /home/demonpai/public_html/classes/catalogue.class.php:1100 - Undefined index: contentsAny ideas what the problem could be, or has anyone else experienced this?The site is running on PHP version v5.4.45, mysql is v5.0.1 Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 5, 2016 Share Posted January 5, 2016 Please mention a web address where we can see this.'Undefined variable' notices can be ignored. The developers of PHP thought to include "notices" that suggest better coding practices are desired. Requesting the contents of a variable that has not yet been created causes a notice (if PHP is set to display this level of criticism) to be logged that suggests this is not a 'best practices' style of coding."Too many redirects" is most often caused by a faulty directive in the .htaccess file. However, I think it is possible, but highly improbable, that CubeCart could be doing this based on some weird inventory data being processed.One specific thing I would research is, has your hosting company recently made any kind of change to your hosting account. A strange case happened not too long ago where the server admins configured PHP to use a really long session identifier. This identifier was too long to fit in Cubecart's session database. The result was "session collision" and session loss such that customers were getting logged out, their shopping basket becoming empty, or their shopping baskets acquiring items that the customer did not add. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.