Magento has released the beta version for Magento 2. Magento developers are keenly following these releases and are trying to analyze Magento 2 Upgrades. One of the common issues noted by developers are the broken links in Magento 2 when installed in Windows.

The beta version (Magento ver. 0.74.0-beta13) is working fine when installed in Linux. When the beta version is installed in Windows, the links and CSS are disabled.  The images in the admin panel and front end are not loaded (i.e.) there are inactive admin links in windows.

This has been a common issue faced by many Windows developers (under Xampp) for Magento 2 (Magento ver. 0.74.0-beta13).

Before Fix – Links Are Inactive

Magento2

After installing Magento 2 in Windows under Xampp, if your admin and front end link’s are not working, please follow the below steps to fix the same…

  1. Remove everything, except .htaccess file from pub/static folder
  2. Open up app/etc/di.xml find the path “Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink” and replace to “Magento\Framework\App\View\Asset\MaterializationStrategy\Copy”

Note: Remove entire files and folder under pub/static except .htaccess file.

After Fix – Links Are Active

Magento2fixed

Now if you refresh the admin panel, the images in the admin panel and the front end will load and be active and functional.

This solution for “Magento 2 broken admin links” is a contribution to the Magento Open Source Community.

Be the first to Know

Subscribe to our blog to get the latest articles directly to your inbox.

READY TO DRIVE SALES?

Ready to drive online revenue

Get In Touch

68 thoughts on “Solution for Inactive Admin Links in Magento 2 (Windows)

  1. Man, I am not even kidding – you just saved my life! I was in full panic mode and you made it all work for me – thank you very much!

    1. Hi Judith,

      Thanks so much and looking forward to helping you in future as well. Do subscribe to our blogs for further updates and other immersive topics.

  2. Thank you it worked. Only needed to run the following command in cli:

    $ cd pub/static
    $ rm -rf adminhtml/ _cache/ frontend/ _requirejs/

    1. Hi Karunakar,
      Could you answer for few of question to dig your problem deep.
      What is your OS ?
      What is magento 2 version your are using ?
      Did you followed above blog solution ?
      Did you did static content deployment ?

  3. Hello Admin,
    I’ve been following you blogs, which are very helpful.
    Hope I get a solution for this.
    By removing all the files in the pub folder, the CSS part has been disturbed and the whole page is displayed in an un organised manner. Please help with a solution

  4. By deleting all content under pub/static except .htaccess, it’s broken all the CSS now. I can’t get these damn left hand links working.

    1. Hi Vijay,

      Can you let us know what is the exact issue you are facing?
      Are you getting any error messages?
      Can you elaborate, please? We will be more than happy to help you.
      Thanks.

    1. So, for whom it did NOT WORK: i just made the changes in Filezilla itself. basically the data needs to be reloaded after the change. it was not ovious for me, it is mentioned nowhere. now it works!!

      1) Remove everything, except .htaccess file from pub/static folder inFilezilla
      2) Upload/drag and drop the changed file ( “MagentoFrameworkAppViewAssetMaterializationStrategyCopy”) to filezilla

  5. do all above step and followed by remove var/cache, var/composer_home, var/generation, var/page_cache, var/view_preprocessed then only it ll b worked

    1. Hi Chirag,

      Good to know. It is working.
      Also, please this with your friends and colleagues so that they may benefit too.
      Keep reading our blogs, we are planning to post more such good ones.

  6. great solution and works for the backend dashboard admin panel…I am however still having problems with the frontend, the theme and css of the actual shop LUMA are simply not loading.

    Glad to hear though that it’s a general Windows/Xampp problem and not something individual.

  7. Please help me, It’s not worked for me. I already follow each step. The files on pub/static except htaccess has been deleted, di.dll already modified. But the page seems like can’t load the css now.

    1. Hi Justin,

      Thanks for your comments.
      Can you please let us know what is the issue that you are facing. It will help us to resolve your issue.

  8. Am glad I saw this. I have re-installed xampp over 4 times and repeated the install over and over again. This is what would have saved me all that.
    Thanks a bunch.

    1. Hi Matt,

      Thanks for your comments.
      We are happy that the blog helped.
      We will be publishing a lot more blogs on M2 soon.
      Keep reading. Thanks again.

  9. Hey everyone!

    You can even test if only Step 2 is enough. For me after changing the di.xml the Admin Menue is working and the Images are there.

    Maybe Step 1 is deleting something importend I don’t know. But maybe Step 1 is also necessary and I havn’t find out why until this moment i realy don’t know^^

    But if you have problems after Step1 try only Step2!

    And thanks a lot for this post!

  10. Hi,

    Your demo store showing below error

    There has been an error processing your request

    Exception printing is disabled by default for security reasons.

    Error log record number: 1102643467486

    Meanwhile I am also creating a new theme but confused do you have any idea/post of guiding the same?

  11. if i removed that folder under pub/static except .htaccess all folder and flies created automatically within few minitues, again i need to change permission of that folders but nothing happen!! really need help at least admin and front 🙁

  12. Hello, please please help me if i remove all the files from your given instruction, my front side and backend side, lost all design means its look like disband my admin and front, css and js not loaded. before this step front is working fine admin also working fine but links is not working.

    Please what can i do for that ?

  13. Hi it works fine and thanks a lot for this but can you please explain what exactly your solution does and what its effect on magento default

  14. You solution work and links are working now. Can you please tell me why i need to do this? And i downloaded and installed m2 with sample data but there is no product and categories in admin. what can be the reason for this?

  15. Thanks! It works! I must say that I’m quite disappointed with magento 2 so far:

    installation via composer doesn’t work (at least, it took me a day to figure it out, then I gave up)
    installation via zip archive takes forever
    installation via zip archive with sample data takes even longer (couldn’t they just have an sql file like they used to???)
    both admin and frontend take forever to load

    and then, when finally everything is loaded and you think you got your new magento.. half of the things are not even there! You have to delete folder, edit xml files.. what a piece of crap!

    And, of course, you can install magento2 without composer, but then you cannot upgrade it without composer.. wtf??? Who’s the genius behind this great decisions, I wonder!

    I think I’ll stick with magento 1.. it has a lot of problems, but at least they are problems which makes sense!

  16. You are just perfect. I am trying to sort out this problem pretty long and you solution is simple and very effective. It helped me so much. Thank you mate.

Leave a Reply

Your email address will not be published. Required fields are marked *