Magento Forum

   
Can’t Save Customer
 
Faro
Jr. Member
 
Total Posts:  3
Joined:  2008-10-15
 

Is here anybody who can help me pls?

I’m using magento ver. 1.3.2.4 and I get “Can’t save customer” message when trying to register new account or buy something.

I tried many tricks and nothing helped so far.  All I know by now is that registration or items ordering is working with this shop domain e-mail addresses. No other e-mail domains are supported.
All other functions are working as before and last update of any component/module or any change in the system was 1-2 months ago.

I will be grateful for your support.

 
Magento Community Magento Community
Magento Community
Magento Community
 
rdvn
Jr. Member
 
Total Posts:  1
Joined:  2010-06-21
 

Ok, I’ve managed to fix this. Here’s the deal:

2010-06-21T18:42:04+00:00 DEBUG (7): Exception messageWarningcall_user_func(Zend_Validate_Hostname_Com::getCharacters[<a href=\'function.call-user-func\'>function.call-user-func</a>]First argument is expected to be a valid callback  in /var/www/freeskiershop.sk/htdocs/lib/Zend/Validate/Hostname.php on line 331
Trace
#0 [internal function]: mageCoreErrorHandler(2, \'call_user_func(...\', \'/var/www/freesk...\', 331, Array)
#1 /var/www/freeskiershop.sk/htdocs/lib/Zend/Validate/Hostname.php(331): call_user_func(Array)
#2 /var/www/freeskiershop.sk/htdocs/lib/Zend/Validate/EmailAddress.php(184): Zend_Validate_Hostname->isValid(\'gmail.com\')
#3 /var/www/freeskiershop.sk/htdocs/lib/Zend/Validate.php(157): Zend_Validate_EmailAddress->isValid(\'psychedelict@gm...\')
#4 /var/www/freeskiershop.sk/htdocs/app/code/core/Mage/Customer/Model/Customer.php(674): Zend_Validate::is(\'psychedelict@gm...\', \'EmailAddress\')
#5 /var/www/freeskiershop.sk/htdocs/app/code/core/Mage/Customer/controllers/AccountController.php(277): Mage_Customer_Model_Customer->validate()
#6 /var/www/freeskiershop.sk/htdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(376): Mage_Customer_AccountController->createPostAction()
#7 /var/www/freeskiershop.sk/htdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(248): Mage_Core_Controller_Varien_Action->dispatch(\'createpost\')
#8 /var/www/freeskiershop.sk/htdocs/app/code/community/ArtsOnIT/OfflineMaintenance/Controller/Router/Standard.php(46): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#9 /var/www/freeskiershop.sk/htdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(158): ArtsOnIT_OfflineMaintenance_Controller_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#10 /var/www/freeskiershop.sk/htdocs/app/Mage.php(460): Mage_Core_Controller_Varien_Front->dispatch()
#11 /var/www/freeskiershop.sk/htdocs/index.php(65): Mage::run(\'default\')
#12 {main}

Now it’s clean it’s not a direct magento problem but seems to be Zend Framework bug. So I’ve commented out whole Match against IDN hostnames and replaced it with this part of code (refference: http://www.magentocommerce.com/boards/viewthread/38577/P15/#t154233)

/**
                     * Match against IDN hostnames
                     * @see Zend_Validate_Hostname_Interface
                     */
                    $labelChars 'a-z0-9';
                    
$utf8 false;
                    
$tld ucfirst($this->_tld);
                    
$classFile 'Zend/Validate/Hostname/' $tld '.php';
                    if (
$this->_validateIdn{
                        
if (file_exists($classFile) && Zend_Loader::isReadable($classFile)) {

                            
// Load additional characters
                            
$className 'Zend_Validate_Hostname_' $tld;
                            
#Zend_Loader::loadClass($className);
                            
$labelChars .= call_user_func(array($className'getCharacters'));
                            
$utf8 true;
                        
}
                    }

Have a nice day,
rdvn

 
Magento Community Magento Community
Magento Community
Magento Community
 
Faro
Jr. Member
 
Total Posts:  3
Joined:  2008-10-15
 

It works !

Thank you very much

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