Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

AccountController Url ERROR
 
pumaka
Member
 
Total Posts:  34
Joined:  2009-04-07
 

Added this code to AccountController.php

if ($this->getRequest()->getParam(’is_subscribed’, false)) {
$dbo = Mage::getSingleton(’core/resource’)->getConnection(’core_write’);
$cust_id = $customer->getData("entity_id");
$dbo->query("UPDATE customer_entity SET type=’free’ WHERE entity_id=$cust_id");
}

When I test customer registration, upon registration it redirects me to the wrong url now, instead of

https://domain.com/shop/index.php/customer/account/index/

it takes me to

https://domain.com/shop/index.php/http:/index/www.domain.com/shop/index.php/

Above is the only code I changed/added to the registration. If I remove it, it reverts back to working normally.

Any ideas on how to fix it?

Thanks!

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