404 on Custom route for admin moduleOverride Adminhtml importexport dataflow Profile ControllerCustom Contact Form - Override ControllerNew Admin Module created showing 404 errorExtending magento sales order controller not workingCustom Admin Route giving 404Consistent 404 from custom module URL… Why?magento2 extend customer route with customer moduleModule route with subdirectory handlingMass creation of invoice in magento 1.9404 error in custom module frontname

Fear of getting stuck on one programming language / technology that is not used in my country

Probability that THHT occurs in a sequence of 10 coin tosses

Why is so much work done on numerical verification of the Riemann Hypothesis?

Has any country ever had 2 former presidents in jail simultaneously?

Why does a simple loop result in ASYNC_NETWORK_IO waits?

Quoting Keynes in a lecture

Extract more than nine arguments that occur periodically in a sentence to use in macros in order to typset

Invalid date error by date command

Does the Linux kernel need a file system to run?

Quasinilpotent , non-compact operators

Does malloc reserve more space while allocating memory?

putting logo on same line but after title, latex

Why Shazam when there is already Superman?

How does a computer interpret real numbers?

Why is it that I can sometimes guess the next note?

Do the primes contain an infinite almost arithmetic progression?

What if you are holding an Iron Flask with a demon inside and walk into Antimagic Field?

Creepy dinosaur pc game identification

Why "had" in "[something] we would have made had we used [something]"?

Add big quotation marks inside my colorbox

How to explain what's wrong with this application of the chain rule?

Store Credit Card Information in Password Manager?

Hero deduces identity of a killer

When were female captains banned from Starfleet?



404 on Custom route for admin module


Override Adminhtml importexport dataflow Profile ControllerCustom Contact Form - Override ControllerNew Admin Module created showing 404 errorExtending magento sales order controller not workingCustom Admin Route giving 404Consistent 404 from custom module URL… Why?magento2 extend customer route with customer moduleModule route with subdirectory handlingMass creation of invoice in magento 1.9404 error in custom module frontname













1















I'm adding a new action in orders grid (it works), but the action route gives 404 error (route error).



I have a custom config.xml like this (app/code/local/AAAA/MassActions/etc/config.xml).



<config>
<modules>
<AAAA_MassActions>
<version>0.0.1</version>
</AAAA_MassActions>
</modules>
<admin>
<routers>
<adminhtml>
<args>
<modules>
<AAAA_MassActions before="Mage_Adminhtml">AAAA_MassActions_Adminhtml</AAAA_MassActions>
</modules>
</args>
<frontName>massactions</frontName>
</adminhtml>
</routers>
</admin>


Controller looks like (app/code/local/AAAA/MassActions/controllers/Adminhtml/MassActionsController.php)



<?php

class AAAA_MassActions_Adminhtml_MassActionsController extends Mage_Adminhtml_Controller_Action
{
public function massPaymentChange()
{
$method = (int)$this->getRequest()->getParam('method');


And my observer (working because is adding the mass) but the route problem probably is in this part of code (app/code/local/AAAA/MassActions/Model/Observer.php):



$block->addItem('massactions', array(
'label' => 'Payment Method change',
'url' => Mage::helper("adminhtml")->getUrl('adminhtml/massactions/massPaymentChange'),
'confirm' => __('Confirm?'),
'additional' => array(
'visibility' => array(
'name' => 'method',
'type' => 'select',
'class' => 'required-entry',
'label' => __('Payment Method'),
'values' => $methods
)
)
));


IN my adminhtml looks like:



<?xml version="1.0"?>
<config>
<acl>
<resources>
<all>
<title>Payment Method Change</title>
</all>
<admin>
<children>
<system>
<children>
<config>
<children>
<massactions translate="title">
<title>Payment Method Change</title>
</massactions>
</children>
</config>
</children>
</system>
</children>
</admin>
</resources>
</acl>
</config>


404 error url is in: example.com/index.php/admin/massactions/massPaymentChange/










share|improve this question






















  • I guess that's because the controller is missing in the URL: You have the route to the module and the action, but not the controller in the URL. The URL should rather be example.com/index.php/admin/massactions/massActions/massPaymentChange/

    – HelgeB
    yesterday











  • How this will works in 'url' => Mage::helper("adminhtml")->getUrl('adminhtml/massactions/massActions/massPaymentChange'), ?

    – user2925795
    yesterday















1















I'm adding a new action in orders grid (it works), but the action route gives 404 error (route error).



I have a custom config.xml like this (app/code/local/AAAA/MassActions/etc/config.xml).



<config>
<modules>
<AAAA_MassActions>
<version>0.0.1</version>
</AAAA_MassActions>
</modules>
<admin>
<routers>
<adminhtml>
<args>
<modules>
<AAAA_MassActions before="Mage_Adminhtml">AAAA_MassActions_Adminhtml</AAAA_MassActions>
</modules>
</args>
<frontName>massactions</frontName>
</adminhtml>
</routers>
</admin>


Controller looks like (app/code/local/AAAA/MassActions/controllers/Adminhtml/MassActionsController.php)



<?php

class AAAA_MassActions_Adminhtml_MassActionsController extends Mage_Adminhtml_Controller_Action
{
public function massPaymentChange()
{
$method = (int)$this->getRequest()->getParam('method');


And my observer (working because is adding the mass) but the route problem probably is in this part of code (app/code/local/AAAA/MassActions/Model/Observer.php):



$block->addItem('massactions', array(
'label' => 'Payment Method change',
'url' => Mage::helper("adminhtml")->getUrl('adminhtml/massactions/massPaymentChange'),
'confirm' => __('Confirm?'),
'additional' => array(
'visibility' => array(
'name' => 'method',
'type' => 'select',
'class' => 'required-entry',
'label' => __('Payment Method'),
'values' => $methods
)
)
));


IN my adminhtml looks like:



<?xml version="1.0"?>
<config>
<acl>
<resources>
<all>
<title>Payment Method Change</title>
</all>
<admin>
<children>
<system>
<children>
<config>
<children>
<massactions translate="title">
<title>Payment Method Change</title>
</massactions>
</children>
</config>
</children>
</system>
</children>
</admin>
</resources>
</acl>
</config>


404 error url is in: example.com/index.php/admin/massactions/massPaymentChange/










share|improve this question






















  • I guess that's because the controller is missing in the URL: You have the route to the module and the action, but not the controller in the URL. The URL should rather be example.com/index.php/admin/massactions/massActions/massPaymentChange/

    – HelgeB
    yesterday











  • How this will works in 'url' => Mage::helper("adminhtml")->getUrl('adminhtml/massactions/massActions/massPaymentChange'), ?

    – user2925795
    yesterday













1












1








1








I'm adding a new action in orders grid (it works), but the action route gives 404 error (route error).



I have a custom config.xml like this (app/code/local/AAAA/MassActions/etc/config.xml).



<config>
<modules>
<AAAA_MassActions>
<version>0.0.1</version>
</AAAA_MassActions>
</modules>
<admin>
<routers>
<adminhtml>
<args>
<modules>
<AAAA_MassActions before="Mage_Adminhtml">AAAA_MassActions_Adminhtml</AAAA_MassActions>
</modules>
</args>
<frontName>massactions</frontName>
</adminhtml>
</routers>
</admin>


Controller looks like (app/code/local/AAAA/MassActions/controllers/Adminhtml/MassActionsController.php)



<?php

class AAAA_MassActions_Adminhtml_MassActionsController extends Mage_Adminhtml_Controller_Action
{
public function massPaymentChange()
{
$method = (int)$this->getRequest()->getParam('method');


And my observer (working because is adding the mass) but the route problem probably is in this part of code (app/code/local/AAAA/MassActions/Model/Observer.php):



$block->addItem('massactions', array(
'label' => 'Payment Method change',
'url' => Mage::helper("adminhtml")->getUrl('adminhtml/massactions/massPaymentChange'),
'confirm' => __('Confirm?'),
'additional' => array(
'visibility' => array(
'name' => 'method',
'type' => 'select',
'class' => 'required-entry',
'label' => __('Payment Method'),
'values' => $methods
)
)
));


IN my adminhtml looks like:



<?xml version="1.0"?>
<config>
<acl>
<resources>
<all>
<title>Payment Method Change</title>
</all>
<admin>
<children>
<system>
<children>
<config>
<children>
<massactions translate="title">
<title>Payment Method Change</title>
</massactions>
</children>
</config>
</children>
</system>
</children>
</admin>
</resources>
</acl>
</config>


404 error url is in: example.com/index.php/admin/massactions/massPaymentChange/










share|improve this question














I'm adding a new action in orders grid (it works), but the action route gives 404 error (route error).



I have a custom config.xml like this (app/code/local/AAAA/MassActions/etc/config.xml).



<config>
<modules>
<AAAA_MassActions>
<version>0.0.1</version>
</AAAA_MassActions>
</modules>
<admin>
<routers>
<adminhtml>
<args>
<modules>
<AAAA_MassActions before="Mage_Adminhtml">AAAA_MassActions_Adminhtml</AAAA_MassActions>
</modules>
</args>
<frontName>massactions</frontName>
</adminhtml>
</routers>
</admin>


Controller looks like (app/code/local/AAAA/MassActions/controllers/Adminhtml/MassActionsController.php)



<?php

class AAAA_MassActions_Adminhtml_MassActionsController extends Mage_Adminhtml_Controller_Action
{
public function massPaymentChange()
{
$method = (int)$this->getRequest()->getParam('method');


And my observer (working because is adding the mass) but the route problem probably is in this part of code (app/code/local/AAAA/MassActions/Model/Observer.php):



$block->addItem('massactions', array(
'label' => 'Payment Method change',
'url' => Mage::helper("adminhtml")->getUrl('adminhtml/massactions/massPaymentChange'),
'confirm' => __('Confirm?'),
'additional' => array(
'visibility' => array(
'name' => 'method',
'type' => 'select',
'class' => 'required-entry',
'label' => __('Payment Method'),
'values' => $methods
)
)
));


IN my adminhtml looks like:



<?xml version="1.0"?>
<config>
<acl>
<resources>
<all>
<title>Payment Method Change</title>
</all>
<admin>
<children>
<system>
<children>
<config>
<children>
<massactions translate="title">
<title>Payment Method Change</title>
</massactions>
</children>
</config>
</children>
</system>
</children>
</admin>
</resources>
</acl>
</config>


404 error url is in: example.com/index.php/admin/massactions/massPaymentChange/







magento-1.9 router






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked yesterday









user2925795user2925795

148213




148213












  • I guess that's because the controller is missing in the URL: You have the route to the module and the action, but not the controller in the URL. The URL should rather be example.com/index.php/admin/massactions/massActions/massPaymentChange/

    – HelgeB
    yesterday











  • How this will works in 'url' => Mage::helper("adminhtml")->getUrl('adminhtml/massactions/massActions/massPaymentChange'), ?

    – user2925795
    yesterday

















  • I guess that's because the controller is missing in the URL: You have the route to the module and the action, but not the controller in the URL. The URL should rather be example.com/index.php/admin/massactions/massActions/massPaymentChange/

    – HelgeB
    yesterday











  • How this will works in 'url' => Mage::helper("adminhtml")->getUrl('adminhtml/massactions/massActions/massPaymentChange'), ?

    – user2925795
    yesterday
















I guess that's because the controller is missing in the URL: You have the route to the module and the action, but not the controller in the URL. The URL should rather be example.com/index.php/admin/massactions/massActions/massPaymentChange/

– HelgeB
yesterday





I guess that's because the controller is missing in the URL: You have the route to the module and the action, but not the controller in the URL. The URL should rather be example.com/index.php/admin/massactions/massActions/massPaymentChange/

– HelgeB
yesterday













How this will works in 'url' => Mage::helper("adminhtml")->getUrl('adminhtml/massactions/massActions/massPaymentChange'), ?

– user2925795
yesterday





How this will works in 'url' => Mage::helper("adminhtml")->getUrl('adminhtml/massactions/massActions/massPaymentChange'), ?

– user2925795
yesterday










0






active

oldest

votes











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f266846%2f404-on-custom-route-for-admin-module%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f266846%2f404-on-custom-route-for-admin-module%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Sum ergo cogito? 1 nng

419 nièngy_Soadمي 19bal1.5o_g

Queiggey Chernihivv 9NnOo i Zw X QqKk LpB