0

Is there anyway I can force Magento to create a log file that contains the offending script path that is causing a redirect to no-route?

1

You need to create small module

config.xml

<frontend>
    <routers>
        <routeurfrontend>
            <use>standard</use>
                <args>
                    <module>Module_Noroughtlog</module>
                    <frontName>error</frontName>
                </args>
        </routeurfrontend>
    </routers>
</frontend>

Add below code on IndexController.php

class Module_Noroughtlog_IndexController extends Mage_Core_Controller_Front_Action {

    public function indexAction() {
        Mage::log($this->getRequest()->getRequestUri()), null, "404-url-list.log");
    }
}

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.