安装新的Magento Extension需要注销/登录,否则您将在管理页面中看到404 [英] Installing a new Magento Extension requires logout/login, otherwise you get 404 in admin page

查看:33
本文介绍了安装新的Magento Extension需要注销/登录,否则您将在管理页面中看到404的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

两个不同的人告诉我,以下是Magento的已知问题:

I was told by two different people that the following is a known issue with Magento:

在安装新的扩展程序时,管理员尝试访问 扩展程序的配置,并获得404页面.通往的路 解决此问题的方法是注销,然后登录到他的管理面板.

When installing a new extension, the admin tries to access the configuration of the extension, and gets a 404 page. The way to resolve this issue is to logout and then login into his admin panel.

  • 设计扩展程序时,是否可以解决此问题?
  • 对此有未解决的问题吗?
  • 这是我找到的一页谈论这个问题.

    推荐答案

    发生这种情况的原因是,当您登录到管理面板时,magento会读取ACL规则并将其写入会话.安装新模块时,您将定义会话中未列出的新ACL规则.

    It happens because when you login to the admin panel magento reads ACL rules and writes them to the session. When you install new module you define new ACL rules that are not listed in your session.

    从magento connect安装模块时,您具有清除会话"按钮以强制进行更新.

    When you install modulefrom magento connect you have "clear session" button to force renewal.

    在模块中,您可以使用类似

    In module you can use something like

    $session = $adminuser = Mage::getSingleton('admin/session');
    /* @var $adminuser Mage_Admin_Model_User */
    $adminuser = $session->getUser();
    $adminuser->setReloadAclFlag(true);
    
    $session->refreshAcl();
    

    您还可以查看扩展如何在管理面板中添加重新加载Acl"按钮.

    You can also look at this extension how to add "reload Acl" button to the admin panel.

    这篇关于安装新的Magento Extension需要注销/登录,否则您将在管理页面中看到404的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆