Jump to content

Getting too many redirects on cart


Matzy

Recommended Posts

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: contents

Any 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

 

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...