05Nov

Magento Admin Menu Not Working (js 404 error)

AJAX, Magento, PHP

While i was installing a Magento oscommerce platform I encountered a problem, a new problem i might add, because i never saw it before. I’ve worked before with Magento but never had any issues. This time, after getting it up and running i noticed that my admin menu wasn’t working, the options weren’t dropping down as usual.

You obviously can’t work without a menu so i started googling the issue. The first page i looked into gave some indications but nothing clear, and those guys we’re having the problem on ver 1.0 of Magento which is really old.

After trying and testing various methods i finally got it to work, and here is how i did it:

  • step1: replace app/code/core/Mage/Page/Block/Html/Head.php with this head.php
  • step2: chmod 755 the js/ folder, and folders within.
  • step3: chmod 644 the javascript files inside js/lib/
  • step4: chmod 644 js/index.php
  • step5: there is no step 5 :) your menu is now working
Share This:
  • StumbleUpon
  • del.icio.us
  • Technorati
  • Reddit
  • Digg
  • Live
  • Google Bookmarks
38 comments

Wednesday, November 5th, 2008 at 7:16 pm and is filed under AJAX, Magento, PHP. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Comments so far.

  1. Posted by Andy on Wednesday 17th December

    Omg man, thanks very very much. This fixed my magento! :)

  2. Posted by ProXy on Wednesday 17th December

    I’m glad it helped

  3. Posted by Canaan on Monday 29th December

    Thanks, worked great. I clicked on an add for you.

  4. Posted by ProXy on Monday 29th December

    Don’t do that ever again. That is against Google’s term of use.
    It’s enough to say thank you.

  5. Posted by eth0 on Monday 5th January

    thanks… ;)

  6. Posted by yvette on Friday 9th January

    Very Good, You spared me lots me time:) except Head.php should not be change or it will result to a fatal error

  7. Posted by ben on Friday 23rd January

    omg, you rock! where do i send the beer?

  8. Posted by ProXy on Friday 23rd January

    hihi :) thanks

  9. Posted by anthony on Saturday 14th February

    DUDE THANKS I LOVE YOU. :)

  10. Posted by Dan on Monday 16th March

    Just wanna say thanks… I had the problem with the admin menu, which was solved so thanks number one.

    Thanks number two is that its solved another major problem I had!!

  11. Posted by Dan on Monday 16th March

    PS. Is this wordpress? Very nice layout!

  12. Posted by ProXy on Monday 16th March

    What’s that second problem, that you solved ?

    and yes it’s wordpress, thanks.

  13. Posted by Dan on Monday 16th March

    oh, yea .. it was:

    when I installed the ‘blue’ theme, the checkout page didnt work! As in, it showed the list of boxes to complete, but could not click, choose, or otherwise enter any info. It didnt even show the option to register/checkout as guest – nothing!

    I tried so many options today, even installing an older version of magento and no joy..

    to add insult to injury, I came back to it this evening to find the admin menu had stopped working!!!

    Good thing, actually, because I then stumbled across your post which solved both in one hit.

    Thanks. Again!

    D

  14. Posted by ProXy on Monday 16th March

    Okay then, I’m glad I helped

  15. Posted by DiM on Thursday 19th March

    I have the same problem and with your solution, I solve it.

    Thanks ProXy.

  16. Posted by SWd on Sunday 29th March

    I try but still cannot. The admin panel just go back to the magento blank page. pls help. I am a dummie when it comes to web

  17. Posted by brennan on Thursday 2nd April

    Thanx a bunch, saved me hours of work!

  18. Posted by Christopher on Friday 17th April

    Great tip. Thank you for posting it.

  19. Posted by Jeremy on Thursday 23rd April

    Not wanting to be hackish, I tried just the permissions fixes and it worked great for me!!

    Thank-you so much!

    I’d also suggest a few keywords for you because I’d been searching round the world for the root cause “magento js 404 error” in stead of just typing in “magento admin menus not working” because I could clearly see in firebug that my server was throwing a 404 when looking for /js/index.php?….

  20. Posted by ProXy on Thursday 23rd April

    Thanks for the hint Jeremy.

  21. Posted by ismael on Wednesday 29th April

    i had spent almost 10 hours on this problem, i even reinstalled magento a few times.
    thanks so much!!!

  22. Posted by Bomo on Saturday 30th May

    Thanx very much. I spent hours .. reinstalling …
    I ‘m new to Magento, and i must say, perhaps (i don’t know yet) it has great possibilities, but the install and configure isn’t very much friendly.

    Thanx again, at least my admin page works.

  23. Posted by Ryan on Wednesday 10th June

    this was about the 5th thing i tried, the only one that worked!

    Thanks alot.

  24. Posted by Mohamed Elhassani on Saturday 4th July

    after upgrading from magento version 1.3.2.1 to 1.3.2.2 the tabs on admin stopped working. But this thing fixed it beautifully.
    Can you tell us the reason why we should replace the head.php?
    for me everything started working fine again after changing the file permissions.

    Thank you much

  25. Posted by Erick on Monday 3rd August

    Great bit of information, I didn’t have to upload the new head.php file, just reset the permissions and it fixed my errors. I’m about a week in learning the Magento ropes and this software is seriously touchy.

  26. Posted by jasethekiwi on Thursday 3rd September

    THANKS YOU’RE A LEGEND, IT WORKED.

  27. Posted by Bhatti on Sunday 13th September

    Great great great..
    Just logged into magento and my surprice the admin links were not popping down.
    I got worried that may be something’s gone wrong to the database.
    Finally, googled the problem and got to your page and solved in less than 2minutes.
    Thank you ever so much….

  28. Posted by jack donald on Wednesday 14th October

    Great post! Thanks a lot!
    We were stuck at this point from 2 days. Now resolved the issue.

  29. Posted by beau on Monday 26th October

    Oh I feel so excited, I have spent hours trying to fix this problem and I have just followed the step to step guide above and it works, wow!

  30. Posted by Mike Lucid on Wednesday 28th October

    thanks aot bro, fixed me right up!

  31. Posted by Sara on Monday 2nd November

    Thanks!!Saved me a lot of time!

  32. Posted by Jorn on Friday 6th November

    thanks for the info. It finally works.

  33. Posted by Frank on Wednesday 23rd December

    Thank’s! I just replaced your head.php and everything is ok again.

  34. Posted by Pierre74 on Saturday 9th January

    Be carreful before updating rights on your server, if you are using the french ATOS SIPS credit card payment extension, don’t forget to change request and response file write to allow execution ! otherwise your extension will not work.

  35. Posted by Odeh on Sunday 7th February

    Thanks alot mate .. I think that Magento Team should include this file in there new release .. i spent 3 hours trying to solve this stupid issue and finally this file save my night!

  36. Posted by adam on Monday 15th February

    Wow!! thanks a million

  37. Posted by yyyloyu on Wednesday 28th April

    good!thank you very much!

  38. Posted by webst9 on Monday 31st May

    My website can not find js files in the js/varien folder. They stopped workign all of a sudden. Nothing seemed to work. Any suggestions?

Leave a reply