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

Payment method redirect gives 404
 
sinebeg
Jr. Member
 
Total Posts:  6
Joined:  2008-11-19
 

Afternoon all,

New payment module giving me a 404 when looking for redirect code:

public function getOrderPlaceRedirectUrl()
{
Mage::log("getOrderPlaceRedirectUrl called");
$redirectUrl = Mage::getUrl([’mymod]/standard/redirect’, array(’_secure’ => true));
Mage::log($redirectUrl);
return $redirectUrl;
}

the $redirectUrl being logged is http://[mysite]/magento/[mymod]/standard/redirect/
which appears to be correct, but Mage is not finding my php code :

[public_html]/magento/app/code/local/Mage/[mymod]/Block/Standard/Redirect.php

I have some more log entries being produced in the Redirect.php as well as a die before the return statement, none of which are being reached.

Can some please give me some pointers as to where my error might be?
BTW I have Web Server Rewrites=Yes

s

EDIT: Forgot to mention: Using Magento ver. 1.2.0.2

 
Magento Community Magento Community
Magento Community
Magento Community
 
mzentrale1
Guru
 
Total Posts:  731
Joined:  2007-12-06
Stuttgart, Germany
 

Hi,

you have to refer to a controller not to a block…

cheers

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