Magento Forum

Guest/Register checkout problem in the latest version
 
Roderik
Member
 
Avatar
Total Posts:  35
Joined:  2007-09-15
Belgium
 

This is the situation, in Belgium, the state or provice don’t matter. So i removed them from the form. But the saveOrder step thew this exception:

<code>exception ‘Mage_Eav_Exception’ with message ‘Invalid condition’ in /home/projects/pokerkings/site/app/Mage.php:330
Stack trace:
#0 /home/projects/pokerkings/site/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(313): Mage::exception(’Mage_Eav’, ‘Invalid conditi...’)
#1 /home/projects/pokerkings/site/app/code/core/Mage/Customer/Model/Entity/Customer.php(52): Mage_Eav_Model_Entity_Collection_Abstract->addAttributeToFilter(’email’, NULL)
#2 /home/projects/pokerkings/site/app/code/core/Mage/Eav/Model/Entity/Abstract.php(802): Mage_Customer_Model_Entity_Customer->_beforeSave(Object(Mage_Customer_Model_Customer))
#3 /home/projects/pokerkings/site/app/code/core/Mage/Customer/Model/Customer.php(110): Mage_Eav_Model_Entity_Abstract->save(Object(Mage_Customer_Model_Customer))
#4 /home/projects/pokerkings/site/app/code/core/Mage/Checkout/Model/Type/Onepage.php(275): Mage_Customer_Model_Customer->save()
#5 /home/projects/pokerkings/site/app/code/core/Mage/Checkout/controllers/OnepageController.php(200):: Mage_Checkout_Model_Type_Onepage->saveOrder()
#6 /home/projects/pokerkings/site/app/code/core/Mage/Core/Controller/Varien/Action.php(326): Mage_Checkout_OnepageController->saveOrderAction()
#7 /home/projects/pokerkings/site/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(147):: Mage_Core_Controller_Varien_Action->dispatch(’saveOrder’)
#8 /home/projects/pokerkings/site/app/code/core/Mage/Core/Controller/Varien/Front.php(164): Mage_Core_Controller_Varien_Router_Standard-
>match(Object(Zend_Controller_Request_Http))
#9 /home/projects/pokerkings/site/app/Mage.php(378): Mage_Core_Controller_Varien_Front->dispatch()
#10 /home/projects/pokerkings/site/index.php(28): Mage::run(’base’)
#11 {main}</code>

So i readded the fields to be sure this wasn’t the problem, but i still get this exception. The first preview version didn’t have this problem so i gather the removing of the fields didn’t cause this.

Registering, loggin in, and buying works like a charm

R

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

Are you logged in when you are checking out? If not, which checkout method do you use?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Roderik
Member
 
Avatar
Total Posts:  35
Joined:  2007-09-15
Belgium
 

Logged in
—Address filled in in dashboard -> no problem
—Empty address list and filled in during checkout -> no problem
Guest -> exception
Register -> exception

in the one page version

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

The same exception for both Guest and Register modes?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Roderik
Member
 
Avatar
Total Posts:  35
Joined:  2007-09-15
Belgium
 

Guest:

<pre>exception ‘Mage_Eav_Exception’ with message ‘Invalid condition’ in /home/projects/pokerkings/site

/app/Mage.php:330

Stack trace:

#0 /home/projects/pokerkings/site/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(313): Mage

::exception(’Mage_Eav’, ‘Invalid conditi...’)

#1 /home/projects/pokerkings/site/app/code/core/Mage/Customer/Model/Entity/Customer.php(52): Mage_Eav_Model_Entity_Collection_Abstract-

>addAttributeToFilter(’email’, NULL)

#2 /home/projects/pokerkings/site/app/code/core/Mage/Eav/Model/Entity/Abstract.php(802): Mage_Customer_Model_Entity_Customer-

>_beforeSave(Object(Mage_Customer_Model_Customer))

#3 /home/projects/pokerkings/site/app/code/core/Mage/Customer/Model/Customer.php(110): Mage_Eav_Model_Entity_Abstract-

>save(Object(Mage_Customer_Model_Customer))

#4 /home/projects/pokerkings/site/app/code/core/Mage/Checkout/Model/Type/Onepage.php(275): Mage_Customer_Model_Customer-

>save()

#5 /home/projects/pokerkings/site/app/code/core/Mage/Checkout/controllers/OnepageController.php(200)

: Mage_Checkout_Model_Type_Onepage->saveOrder()

#6 /home/projects/pokerkings/site/app/code/core/Mage/Core/Controller/Varien/Action.php(326): Mage_Checkout_OnepageController-

>saveOrderAction()

#7 /home/projects/pokerkings/site/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(147)

: Mage_Core_Controller_Varien_Action->dispatch(’saveOrder’)

#8 /home/projects/pokerkings/site/app/code/core/Mage/Core/Controller/Varien/Front.php(164): Mage_Core_Controller_Varien_Router_Standard-

>match(Object(Zend_Controller_Request_Http))

#9 /home/projects/pokerkings/site/app/Mage.php(378): Mage_Core_Controller_Varien_Front->dispatch()

#10 /home/projects/pokerkings/site/index.php(28): Mage::run(’base’)

#11 {main}</pre>

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

Do you leave Email field empty?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Roderik
Member
 
Avatar
Total Posts:  35
Joined:  2007-09-15
Belgium
 

Register:

<pre>exception ‘Mage_Eav_Exception’ with message ‘Invalid condition’ in /home/projects/pokerkings/site

/app/Mage.php:330

Stack trace:

#0 /home/projects/pokerkings/site/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(313): Mage

::exception(’Mage_Eav’, ‘Invalid conditi...’)

#1 /home/projects/pokerkings/site/app/code/core/Mage/Customer/Model/Entity/Customer.php(52): Mage_Eav_Model_Entity_Collection_Abstract-

>addAttributeToFilter(’email’, NULL)

#2 /home/projects/pokerkings/site/app/code/core/Mage/Eav/Model/Entity/Abstract.php(802): Mage_Customer_Model_Entity_Customer-

>_beforeSave(Object(Mage_Customer_Model_Customer))

#3 /home/projects/pokerkings/site/app/code/core/Mage/Customer/Model/Customer.php(110): Mage_Eav_Model_Entity_Abstract-

>save(Object(Mage_Customer_Model_Customer))

#4 /home/projects/pokerkings/site/app/code/core/Mage/Checkout/Model/Type/Onepage.php(275): Mage_Customer_Model_Customer-

>save()

#5 /home/projects/pokerkings/site/app/code/core/Mage/Checkout/controllers/OnepageController.php(200)

: Mage_Checkout_Model_Type_Onepage->saveOrder()

#6 /home/projects/pokerkings/site/app/code/core/Mage/Core/Controller/Varien/Action.php(326): Mage_Checkout_OnepageController-

>saveOrderAction()

#7 /home/projects/pokerkings/site/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(147)

: Mage_Core_Controller_Varien_Action->dispatch(’saveOrder’)

#8 /home/projects/pokerkings/site/app/code/core/Mage/Core/Controller/Varien/Front.php(164): Mage_Core_Controller_Varien_Router_Standard-

>match(Object(Zend_Controller_Request_Http))

#9 /home/projects/pokerkings/site/app/Mage.php(378): Mage_Core_Controller_Varien_Front->dispatch()

#10 /home/projects/pokerkings/site/index.php(28): Mage::run(’base’)

#11 {main}</pre>

 
Magento Community Magento Community
Magento Community
Magento Community
 
Roderik
Member
 
Avatar
Total Posts:  35
Joined:  2007-09-15
Belgium
 

No i’m absolutely positive i did not. I even got an js validation warnign when trying as address. And since the field is required i’m sure it was filled in

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

I see, could you please put in app/code/Core/Mage/Ceckout/Model/Type/Onepage.php right before approx line 247:

switch ($this->getQuote()->getCheckoutMethod()) {
put this code:
echo " *** CHECKOUT.METHOD: ".$this->getQuote()->getCheckoutMethod()." *** ";
And paste what you get there.
Thanks
 
Magento Community Magento Community
Magento Community
Magento Community
 
Roderik
Member
 
Avatar
Total Posts:  35
Joined:  2007-09-15
Belgium
 

*** CHECKOUT.METHOD:  ***

this is weird smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
Roderik
Member
 
Avatar
Total Posts:  35
Joined:  2007-09-15
Belgium
 

I am very sorry, it was my damn own fault. I added

‘<?=$this->getUrl('checkout/onepage/ogone')?>’,

to

var checkout = new Checkout(accordion,
‘<?=$this->getUrl('checkout/onepage/progress')?>’,
‘<?=$this->getUrl('checkout/onepage/review')?>’,
‘<?=$this->getUrl('checkout/onepage/saveMethod')?>’
);

and by doing so, it ran an ajax request on the ogone page when loading the page, messing with the data for the checkout, messing the following steps up

Thanks for the fast assistance and sorry for the troubles!

R

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

I’m glad it’s resolved smile

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top