1

I have a slightly strange problem that I need your help with.

I have three independent Magento installations on my server. Two of which under an SSL certificate as such: https ://apps.domain.com/store1 & https ://apps.domain.com/store2. Both of these stores how custom themes. The third installation is a fresh install on the root of the domain without an SSL certificate as such: http:// www.domain.com/store3

What happens is that, all of a sudden, all three stores stop being able to add items to cart and give me this error "Cannot add the item to shopping cart.". And then an hour or a couple of hours later or so, the add to cart buttons start working again. The weird thing is that I don't change anything to make it work or stop working, and they all work or stop working simultaneously.

I'm using magento 1.8.

Please advise!

Update:

Actually I found this in my exception log:

2014-07-27T21:09:35+00:00 DEBUG (7): Exception message: Notice: Undefined offset: 2  in /home/---/store2/lib/Zend/Locale/Format.php on line 577
Trace: #0 /home/---/store2/lib/Zend/Locale/Format.php(577): mageCoreErrorHandler(8, 'Undefined offse...', '/home/vmegypt/p...', 577, Array)
1 /home/---/store2/lib/Zend/Locale/Format.php(513): Zend_Locale_Format::_getRegexForType('decimalnumber', Array)
2 /home/---/store2/lib/Zend/Filter/LocalizedToNormalized.php(100): Zend_Locale_Format::isNumber('3', Array)
3 /home/---/store2/app/code/core/Mage/Checkout/controllers/CartController.php(187): Zend_Filter_LocalizedToNormalized->filter('3')
4 /home/---/store2/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Checkout_CartController->addAction()
5 /home/---/store2/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('add')
6 /home/---/store2/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
7 /home/---/store2/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
8 /home/---/store2/app/Mage.php(683): Mage_Core_Model_App->run(Array)
9 /home/---/store2/index.php(117): Mage::run('', 'store')
10 {main}
2014-07-27T21:09:35+00:00 ERR (3): 
exception 'Exception' with message 'Notice: Undefined offset: 2  in /home/---/store2/lib/Zend/Locale/Format.php on line 577' in /home/---/store2/app/code/core/Mage/Core/functions.php:245
Stack trace:
0 /home/---/store2/lib/Zend/Locale/Format.php(577): mageCoreErrorHandler(8, 'Undefined offse...', '/home/vmegypt/p...', 577, Array)
1 /home/---/store2/lib/Zend/Locale/Format.php(513): Zend_Locale_Format::_getRegexForType('decimalnumber', Array)
2 /home/---/store2/lib/Zend/Filter/LocalizedToNormalized.php(100): Zend_Locale_Format::isNumber('3', Array)
3 /home/---/store2/app/code/core/Mage/Checkout/controllers/CartController.php(187): Zend_Filter_LocalizedToNormalized->filter('3')
4 /home/---/store2/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Checkout_CartController->addAction()
5 /home/---/store2/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('add')
6 /home/---/store2/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
7 /home/---/store2/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
8 /home/---/store2/app/Mage.php(683): Mage_Core_Model_App->run(Array)
9 /home/---/store2/index.php(117): Mage::run('', 'store')
10 {main}
  • 1
    check var/log for error messages. – Marius Jul 27 '14 at 11:49
  • It sounds like a session issue, where are you storing your sessions? – brentwpeterson Jul 27 '14 at 13:49
  • Try to clear your cookies and try again. Does it work in the first store? And then not in the second? – Fabian Blechschmidt Jul 27 '14 at 14:36
  • @Marius: I checked the system and exception logs. No errors that are relevant there. No errors are triggered by the add to cart action. – mandoz Jul 27 '14 at 20:57
  • @brentwpeterson I'm storing my sessions on file system. – mandoz Jul 27 '14 at 21:02
1

OP noted that this answer to "Magento cart not updating quantity in arabic store view" solved his issue.

This is a tenuous fix though. It's not apparent how this could be an intermittent issue given the Zend component referenced in the fix.

  • I have same issue on magento 1.9.2.4 (arabic process worked)whats we do ? can we follow this process and this right? – ravi patel Mar 9 '16 at 6:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.