Menu not working in admin

There's a long standing bug in Magento that means the pull down menus may not work in admin.

There are two methods to fix this. We generally find that setting the permissions works.

 

1) Make sure your file permissions are correct.

You can reset permissions with the following commands via SSH

find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
chmod +x pear

2) edit...

/app/code/core/Mage/Page/Block/Html/Head.php

At around line 104 the code looks like this.

           switch ($item['type']) {

                 case 'js':

                     #$lines[$if]['other'][] = sprintf($script, $baseJs.$item['name'], $item['params']);

                     $lines[$if]['script'][] = $item['name'];


Change it to the following by moving the # symbol to comment out the alternative line

           switch ($item['type']) {

                case 'js':

                    $lines[$if]['other'][] = sprintf($script, $baseJs.$item['name'], $item['params']);

                    #$lines[$if]['script'][] = $item['name'];

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Installing Magento

We've installed it for a number of clients on our 'dingo' server which has all the system...

Using Web Server Rewrites

Magento can use more human looking and search engine friendly addresses for it's pages if you...

Emails not being sent from Magento

If you're not receiving emails from Magento - eg. from the 'Forgotten your password' link in the...

Magento Connect Downloader gives Internal Server Error

There's a bug in Magento's downloader which sets the file permissions to files it has installed...

Magento v1.1 says pdo_mysql not installed

Please delete the php.ini that gets installed with v1.1. This overrides the system php.ini which...