1

I have uploaded patch SUPEE-6788 on Magento 1.9.2.1 and tried the following:

  • Using This file I have fixed all the modules through command line after uploading the patch.
  • I have also fixed whitelisting issues using the same file.
  • Tried logging out of admin and re logged in.
  • Removed all cache from /var/cache.
  • Reindexed my store.

But still all custom modules are showing page 404 in admin.

Note: All the code of custom module is as per This Solution

The functionality is working fine on frontend but admin pages of these modules are not working.

As I have checked after using the FIX code the action in config is the same before and after fix. Check below:

<menu>
      <banners module="banners">
        <title>Banners</title>
        <sort_order>100</sort_order>
        <children>
          <banners module="banners">
            <title>Manage Banners</title>
            <sort_order>0</sort_order>
            <action>admin_banners/adminhtml_banners</action>
          </banners>
        </children>
      </banners>
    </menu> 

Update 1

After applying changes mentioned by Kunj following is my action code and controller file location:

<action>adminhtml/banners/banners</action>

Controller for above action :

app/code/local/{My_Package}/Banners/controllers/Adminhtml/Banners/BannersController.php

I have re-indexed, cleared cache, Logged out and logged in but it still shows page 404.

1 Answer 1

1

I think your action should be like this:

<action>adminhtml/banners</action>

And as per action your file path should be like this:

/path/to/magento/app/code/local/{module package name}/Banners/controllers/Adminhtml/Banners/IndexController.php
4
  • I have added update 1 to my question as per your provided solution. Commented May 15, 2018 at 5:02
  • 1
    As per your banners module's admin controller file structure, your action should be like This: <action>adminhtml/banners_banners/index</action> banners is your controller and index is action which located in app/code/local/{My_Package}/Banners/controllers/Adminhtml/Banners/BannersController.php file.
    – kunj
    Commented May 15, 2018 at 5:13
  • Welcome, happy to help you!
    – kunj
    Commented May 15, 2018 at 5:27
  • can you also check this question? Commented May 16, 2018 at 6:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.