Magento Admin Menu action not working gives 404 error Magento 1.9.2.4Admin personal module routes failedMagento custom admin module not routing to controllerCustom Module back end keeps coming up as a 404Admin page gives 404 error after domain name change404 Error. Magento2 admin page not workingCustom Module Displays Blank PageAdmin custom page form action not workingCustom module admin panel section gives 404 error on saveMagento Custom Admin Module gives 404 errorNew extension appears in admin menu but gives error 404 when i click on it
Diode in opposite direction?
Is there a word to describe the feeling of being transfixed out of horror?
Global amount of publications over time
Folder comparison
Did arcade monitors have same pixel aspect ratio as TV sets?
Can a significant change in incentives void an employment contract?
Difference between -| and |- in TikZ
Could solar power be utilized and substitute coal in the 19th Century
Did US corporations pay demonstrators in the German demonstrations against article 13?
A social experiment. What is the worst that can happen?
List of people who lose a child in תנ"ך
Sampling Theorem and reconstruction
What does this horizontal bar at the first measure mean?
How do I implement a file system driver driver in Linux?
Reply 'no position' while the job posting is still there
What linear sensor for a keyboard?
Are lightweight LN wallets vulnerable to transaction withholding?
Is it possible to have a strip of cold climate in the middle of a planet?
Is there a conventional notation or name for the slip angle?
What is this type of notehead called?
A Permanent Norse Presence in America
How do ground effect vehicles perform turns?
Proving a function is onto where f(x)=|x|.
Can someone explain how this makes sense electrically?
Magento Admin Menu action not working gives 404 error Magento 1.9.2.4
Admin personal module routes failedMagento custom admin module not routing to controllerCustom Module back end keeps coming up as a 404Admin page gives 404 error after domain name change404 Error. Magento2 admin page not workingCustom Module Displays Blank PageAdmin custom page form action not workingCustom module admin panel section gives 404 error on saveMagento Custom Admin Module gives 404 errorNew extension appears in admin menu but gives error 404 when i click on it
Problem Statement: I have created an adminmenu and call an action on it. For the action, I have created one controller. When click on menu it redirects to 404 page on front side.(Can't access to controller and it jump to frontarea)
Code is as below:
config.xml (demo/etc/config.xml
)
<?xml version="1.0"?>
<config>
<modules>
<Sevenbits_Demo>
<version>1.0.0</version>
</Sevenbits_Demo>
</modules>
<global>
<models>
<demo>
<class>Sevenbits_Demo_Model</class>
</demo>
</models>
<helpers>
<demo>
<class>Sevenbits_Demo_Helper</class>
</demo>
</helpers>
<blocks>
<demo>
<class>Sevenbits_Demo_Block</class>
</demo>
</blocks>
</global>
<!-- Frontend Controller started here -->
<frontend>
<routers>
<demo>
<use>standard</use>
<args>
<frontName>Demo</frontName>
<module>Sevenbits_Demo</module>
</args>
</demo>
</routers>
<layout>
<updates>
<demo>
<file>demo.xml</file>
</demo>
</updates>
</layout>
</frontend>
<!-- Frontend Controller end here -->
<!-- Frontend Controller started here -->
<admin>
<routers>
<adminhtml>
<args>
<module>
<demo before="Mage_Adminhtml">
Sevenbits_Demo_Adminhtml
</demo>
</module>
</args>
</adminhtml>
</routers>
</admin>
<!-- Frontend Controller end here -->
</config>
adminhtml.xml(demo/etc/adminhtml.xml
)
<?xml version="1.0"?>
<config>
<menu>
<demo transalte="title" module="demo">
<title>Mage Hunter</title>
<sort_order>1000</sort_order>
<action>Adminhtml/demo</action>
</demo>
</menu>
</config>
DemoController.php (/demo/controllers/Adminhtml/DemoController.php
)
<?php
class Sevenbits_Demo_Adminhtml_DemoController extends Mage_Adminhtml_Controller_Action
public function indexAction()
//$this->loadLayout();
echo "Hwll";
return $this->renderLayout();
After Menu click (page redirect to 404 page and display frontend layout) get this output.
magento-1.9 admin 404
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
Problem Statement: I have created an adminmenu and call an action on it. For the action, I have created one controller. When click on menu it redirects to 404 page on front side.(Can't access to controller and it jump to frontarea)
Code is as below:
config.xml (demo/etc/config.xml
)
<?xml version="1.0"?>
<config>
<modules>
<Sevenbits_Demo>
<version>1.0.0</version>
</Sevenbits_Demo>
</modules>
<global>
<models>
<demo>
<class>Sevenbits_Demo_Model</class>
</demo>
</models>
<helpers>
<demo>
<class>Sevenbits_Demo_Helper</class>
</demo>
</helpers>
<blocks>
<demo>
<class>Sevenbits_Demo_Block</class>
</demo>
</blocks>
</global>
<!-- Frontend Controller started here -->
<frontend>
<routers>
<demo>
<use>standard</use>
<args>
<frontName>Demo</frontName>
<module>Sevenbits_Demo</module>
</args>
</demo>
</routers>
<layout>
<updates>
<demo>
<file>demo.xml</file>
</demo>
</updates>
</layout>
</frontend>
<!-- Frontend Controller end here -->
<!-- Frontend Controller started here -->
<admin>
<routers>
<adminhtml>
<args>
<module>
<demo before="Mage_Adminhtml">
Sevenbits_Demo_Adminhtml
</demo>
</module>
</args>
</adminhtml>
</routers>
</admin>
<!-- Frontend Controller end here -->
</config>
adminhtml.xml(demo/etc/adminhtml.xml
)
<?xml version="1.0"?>
<config>
<menu>
<demo transalte="title" module="demo">
<title>Mage Hunter</title>
<sort_order>1000</sort_order>
<action>Adminhtml/demo</action>
</demo>
</menu>
</config>
DemoController.php (/demo/controllers/Adminhtml/DemoController.php
)
<?php
class Sevenbits_Demo_Adminhtml_DemoController extends Mage_Adminhtml_Controller_Action
public function indexAction()
//$this->loadLayout();
echo "Hwll";
return $this->renderLayout();
After Menu click (page redirect to 404 page and display frontend layout) get this output.
magento-1.9 admin 404
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
Problem Statement: I have created an adminmenu and call an action on it. For the action, I have created one controller. When click on menu it redirects to 404 page on front side.(Can't access to controller and it jump to frontarea)
Code is as below:
config.xml (demo/etc/config.xml
)
<?xml version="1.0"?>
<config>
<modules>
<Sevenbits_Demo>
<version>1.0.0</version>
</Sevenbits_Demo>
</modules>
<global>
<models>
<demo>
<class>Sevenbits_Demo_Model</class>
</demo>
</models>
<helpers>
<demo>
<class>Sevenbits_Demo_Helper</class>
</demo>
</helpers>
<blocks>
<demo>
<class>Sevenbits_Demo_Block</class>
</demo>
</blocks>
</global>
<!-- Frontend Controller started here -->
<frontend>
<routers>
<demo>
<use>standard</use>
<args>
<frontName>Demo</frontName>
<module>Sevenbits_Demo</module>
</args>
</demo>
</routers>
<layout>
<updates>
<demo>
<file>demo.xml</file>
</demo>
</updates>
</layout>
</frontend>
<!-- Frontend Controller end here -->
<!-- Frontend Controller started here -->
<admin>
<routers>
<adminhtml>
<args>
<module>
<demo before="Mage_Adminhtml">
Sevenbits_Demo_Adminhtml
</demo>
</module>
</args>
</adminhtml>
</routers>
</admin>
<!-- Frontend Controller end here -->
</config>
adminhtml.xml(demo/etc/adminhtml.xml
)
<?xml version="1.0"?>
<config>
<menu>
<demo transalte="title" module="demo">
<title>Mage Hunter</title>
<sort_order>1000</sort_order>
<action>Adminhtml/demo</action>
</demo>
</menu>
</config>
DemoController.php (/demo/controllers/Adminhtml/DemoController.php
)
<?php
class Sevenbits_Demo_Adminhtml_DemoController extends Mage_Adminhtml_Controller_Action
public function indexAction()
//$this->loadLayout();
echo "Hwll";
return $this->renderLayout();
After Menu click (page redirect to 404 page and display frontend layout) get this output.
magento-1.9 admin 404
Problem Statement: I have created an adminmenu and call an action on it. For the action, I have created one controller. When click on menu it redirects to 404 page on front side.(Can't access to controller and it jump to frontarea)
Code is as below:
config.xml (demo/etc/config.xml
)
<?xml version="1.0"?>
<config>
<modules>
<Sevenbits_Demo>
<version>1.0.0</version>
</Sevenbits_Demo>
</modules>
<global>
<models>
<demo>
<class>Sevenbits_Demo_Model</class>
</demo>
</models>
<helpers>
<demo>
<class>Sevenbits_Demo_Helper</class>
</demo>
</helpers>
<blocks>
<demo>
<class>Sevenbits_Demo_Block</class>
</demo>
</blocks>
</global>
<!-- Frontend Controller started here -->
<frontend>
<routers>
<demo>
<use>standard</use>
<args>
<frontName>Demo</frontName>
<module>Sevenbits_Demo</module>
</args>
</demo>
</routers>
<layout>
<updates>
<demo>
<file>demo.xml</file>
</demo>
</updates>
</layout>
</frontend>
<!-- Frontend Controller end here -->
<!-- Frontend Controller started here -->
<admin>
<routers>
<adminhtml>
<args>
<module>
<demo before="Mage_Adminhtml">
Sevenbits_Demo_Adminhtml
</demo>
</module>
</args>
</adminhtml>
</routers>
</admin>
<!-- Frontend Controller end here -->
</config>
adminhtml.xml(demo/etc/adminhtml.xml
)
<?xml version="1.0"?>
<config>
<menu>
<demo transalte="title" module="demo">
<title>Mage Hunter</title>
<sort_order>1000</sort_order>
<action>Adminhtml/demo</action>
</demo>
</menu>
</config>
DemoController.php (/demo/controllers/Adminhtml/DemoController.php
)
<?php
class Sevenbits_Demo_Adminhtml_DemoController extends Mage_Adminhtml_Controller_Action
public function indexAction()
//$this->loadLayout();
echo "Hwll";
return $this->renderLayout();
After Menu click (page redirect to 404 page and display frontend layout) get this output.
magento-1.9 admin 404
magento-1.9 admin 404
edited Jul 19 '16 at 6:20
Vasim Shaikh
asked Jul 18 '16 at 11:00
Vasim ShaikhVasim Shaikh
12519
12519
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
remove the new lines in here:
<demo before="Mage_Adminhtml">
Sevenbits_Demo_Adminhtml
</demo>
make that look like this
<demo before="Mage_Adminhtml">Sevenbits_Demo_Adminhtml</demo>
still same issue
– Vasim Shaikh
Jul 18 '16 at 11:08
add a comment |
You need to define layout for it
Create file for it app/design/adminhtml/default/default/layout/demo.xml
add below code to it:
<?xml version="1.0"?>
<layout version="0.1.0">
<adminhtml_demo_index>
<reference name="content">
<block type="demo/adminhtml_demo" name="demo" />
</reference>
</adminhtml_demo_index>
</layout>
Also you need to add below code in config.xml file between <adminhtml></adminhtml>
<layout>
<updates>
<demo>
<file>demo.xml</file>
</demo>
</updates>
</layout>
Also give the link
<action>adminhtml/demo</action>
instead of <action>Adminhtml/demo</action>
ok @prashant let me check
– Vasim Shaikh
Jul 18 '16 at 11:16
I have already demo.xml
– Vasim Shaikh
Jul 18 '16 at 11:17
Where it is located and what is inside it?
– Prashant Valanda
Jul 18 '16 at 11:18
its in frontend
– Vasim Shaikh
Jul 18 '16 at 11:18
I just added into adminhtml
– Vasim Shaikh
Jul 18 '16 at 11:19
|
show 9 more comments
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f126170%2fmagento-admin-menu-action-not-working-gives-404-error-magento-1-9-2-4%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
remove the new lines in here:
<demo before="Mage_Adminhtml">
Sevenbits_Demo_Adminhtml
</demo>
make that look like this
<demo before="Mage_Adminhtml">Sevenbits_Demo_Adminhtml</demo>
still same issue
– Vasim Shaikh
Jul 18 '16 at 11:08
add a comment |
remove the new lines in here:
<demo before="Mage_Adminhtml">
Sevenbits_Demo_Adminhtml
</demo>
make that look like this
<demo before="Mage_Adminhtml">Sevenbits_Demo_Adminhtml</demo>
still same issue
– Vasim Shaikh
Jul 18 '16 at 11:08
add a comment |
remove the new lines in here:
<demo before="Mage_Adminhtml">
Sevenbits_Demo_Adminhtml
</demo>
make that look like this
<demo before="Mage_Adminhtml">Sevenbits_Demo_Adminhtml</demo>
remove the new lines in here:
<demo before="Mage_Adminhtml">
Sevenbits_Demo_Adminhtml
</demo>
make that look like this
<demo before="Mage_Adminhtml">Sevenbits_Demo_Adminhtml</demo>
answered Jul 18 '16 at 11:03
Marius♦Marius
167k28319685
167k28319685
still same issue
– Vasim Shaikh
Jul 18 '16 at 11:08
add a comment |
still same issue
– Vasim Shaikh
Jul 18 '16 at 11:08
still same issue
– Vasim Shaikh
Jul 18 '16 at 11:08
still same issue
– Vasim Shaikh
Jul 18 '16 at 11:08
add a comment |
You need to define layout for it
Create file for it app/design/adminhtml/default/default/layout/demo.xml
add below code to it:
<?xml version="1.0"?>
<layout version="0.1.0">
<adminhtml_demo_index>
<reference name="content">
<block type="demo/adminhtml_demo" name="demo" />
</reference>
</adminhtml_demo_index>
</layout>
Also you need to add below code in config.xml file between <adminhtml></adminhtml>
<layout>
<updates>
<demo>
<file>demo.xml</file>
</demo>
</updates>
</layout>
Also give the link
<action>adminhtml/demo</action>
instead of <action>Adminhtml/demo</action>
ok @prashant let me check
– Vasim Shaikh
Jul 18 '16 at 11:16
I have already demo.xml
– Vasim Shaikh
Jul 18 '16 at 11:17
Where it is located and what is inside it?
– Prashant Valanda
Jul 18 '16 at 11:18
its in frontend
– Vasim Shaikh
Jul 18 '16 at 11:18
I just added into adminhtml
– Vasim Shaikh
Jul 18 '16 at 11:19
|
show 9 more comments
You need to define layout for it
Create file for it app/design/adminhtml/default/default/layout/demo.xml
add below code to it:
<?xml version="1.0"?>
<layout version="0.1.0">
<adminhtml_demo_index>
<reference name="content">
<block type="demo/adminhtml_demo" name="demo" />
</reference>
</adminhtml_demo_index>
</layout>
Also you need to add below code in config.xml file between <adminhtml></adminhtml>
<layout>
<updates>
<demo>
<file>demo.xml</file>
</demo>
</updates>
</layout>
Also give the link
<action>adminhtml/demo</action>
instead of <action>Adminhtml/demo</action>
ok @prashant let me check
– Vasim Shaikh
Jul 18 '16 at 11:16
I have already demo.xml
– Vasim Shaikh
Jul 18 '16 at 11:17
Where it is located and what is inside it?
– Prashant Valanda
Jul 18 '16 at 11:18
its in frontend
– Vasim Shaikh
Jul 18 '16 at 11:18
I just added into adminhtml
– Vasim Shaikh
Jul 18 '16 at 11:19
|
show 9 more comments
You need to define layout for it
Create file for it app/design/adminhtml/default/default/layout/demo.xml
add below code to it:
<?xml version="1.0"?>
<layout version="0.1.0">
<adminhtml_demo_index>
<reference name="content">
<block type="demo/adminhtml_demo" name="demo" />
</reference>
</adminhtml_demo_index>
</layout>
Also you need to add below code in config.xml file between <adminhtml></adminhtml>
<layout>
<updates>
<demo>
<file>demo.xml</file>
</demo>
</updates>
</layout>
Also give the link
<action>adminhtml/demo</action>
instead of <action>Adminhtml/demo</action>
You need to define layout for it
Create file for it app/design/adminhtml/default/default/layout/demo.xml
add below code to it:
<?xml version="1.0"?>
<layout version="0.1.0">
<adminhtml_demo_index>
<reference name="content">
<block type="demo/adminhtml_demo" name="demo" />
</reference>
</adminhtml_demo_index>
</layout>
Also you need to add below code in config.xml file between <adminhtml></adminhtml>
<layout>
<updates>
<demo>
<file>demo.xml</file>
</demo>
</updates>
</layout>
Also give the link
<action>adminhtml/demo</action>
instead of <action>Adminhtml/demo</action>
edited Jul 18 '16 at 11:26
answered Jul 18 '16 at 11:13
Prashant ValandaPrashant Valanda
9,84212355
9,84212355
ok @prashant let me check
– Vasim Shaikh
Jul 18 '16 at 11:16
I have already demo.xml
– Vasim Shaikh
Jul 18 '16 at 11:17
Where it is located and what is inside it?
– Prashant Valanda
Jul 18 '16 at 11:18
its in frontend
– Vasim Shaikh
Jul 18 '16 at 11:18
I just added into adminhtml
– Vasim Shaikh
Jul 18 '16 at 11:19
|
show 9 more comments
ok @prashant let me check
– Vasim Shaikh
Jul 18 '16 at 11:16
I have already demo.xml
– Vasim Shaikh
Jul 18 '16 at 11:17
Where it is located and what is inside it?
– Prashant Valanda
Jul 18 '16 at 11:18
its in frontend
– Vasim Shaikh
Jul 18 '16 at 11:18
I just added into adminhtml
– Vasim Shaikh
Jul 18 '16 at 11:19
ok @prashant let me check
– Vasim Shaikh
Jul 18 '16 at 11:16
ok @prashant let me check
– Vasim Shaikh
Jul 18 '16 at 11:16
I have already demo.xml
– Vasim Shaikh
Jul 18 '16 at 11:17
I have already demo.xml
– Vasim Shaikh
Jul 18 '16 at 11:17
Where it is located and what is inside it?
– Prashant Valanda
Jul 18 '16 at 11:18
Where it is located and what is inside it?
– Prashant Valanda
Jul 18 '16 at 11:18
its in frontend
– Vasim Shaikh
Jul 18 '16 at 11:18
its in frontend
– Vasim Shaikh
Jul 18 '16 at 11:18
I just added into adminhtml
– Vasim Shaikh
Jul 18 '16 at 11:19
I just added into adminhtml
– Vasim Shaikh
Jul 18 '16 at 11:19
|
show 9 more comments
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f126170%2fmagento-admin-menu-action-not-working-gives-404-error-magento-1-9-2-4%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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