Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Magento Currency Symbol 404's when i go to admin

Any ideas what would cause:

admin->system->manage currency->symbols

to 404 when i go to it in the admin?

admin->system->manage currency->rates (works fine).

This is on my mamp local.

i guess i'm asking is there a 'troubleshooting' way to find out why it's 404'ing for any module in the admin?

like image 867
Flakx Avatar asked Mar 28 '13 09:03

Flakx


3 Answers

I had the same problem - though I do not know whether it is caused by any extensions. Somehow not many people seem to have encountered this problem yet.

Change line 68 in app\code\core\Mage\CurrencySymbol\etc\config.xml: and

change From

<currencysymbol>Mage_CurrencySymbol_Adminhtml</currencysymbol>

to

<currencysymbol before="Mage_Adminhtml">Mage_CurrencySymbol_Adminhtml</currencysymbol>
like image 76
Philipp Avatar answered Nov 21 '22 14:11

Philipp


Go to line 68 in app/code/core/Mage/CurrencySymbol/etc/config.xml

<currencysymbol>Mage_CurrencySymbol_Adminhtml</currencysymbol>

Replace to

<currencysymbol before="Mage_Adminhtml">Mage_CurrencySymbol_Adminhtml</currencysymbol>

Go to line 34 in app/etc/modules/Mage_CurrencySymbol.xml add the Mage_Adminhtml tag

<depends>
 <Mage_Adminhtml />
 <Mage_Widget/>
</depends>
like image 37
PriyankaOrange Avatar answered Nov 21 '22 16:11

PriyankaOrange


The error occurs with the definition of the admin router. It appears not only to be a windows error as I am also getting this on a linux machine. Currently it looks as follows:

<admin>
    <routers>
        <adminhtml>
            <args>
                <modules>
                    <currencysymbol>Mage_CurrencySymbol_Adminhtml</currencysymbol>
                </modules>
            </args>
        </adminhtml>
    </routers>
</admin>

But if you use the "before" tag and specify "Mage_Adminhtml" then it will work.

<admin>
    <routers>
        <adminhtml>
            <args>
                <modules>
                    <currencysymbol before="Mage_Adminhtml">Mage_CurrencySymbol_Adminhtml</currencysymbol>
                </modules>
            </args>
        </adminhtml>
    </routers>
</admin>

You should also add the dependency to the /app/etc/modules/Mage_CurrencySymbol.xml

<config>
    <modules>
        <Mage_CurrencySymbol>
            <active>true</active>
            <codePool>core</codePool>
            <depends>
                <Mage_Adminhtml />
                <Mage_Widget/>
            </depends>
        </Mage_CurrencySymbol>
    </modules>
</config>

There appears to have been a bug/fix raised on github

like image 31
Amit Garg Avatar answered Nov 21 '22 15:11

Amit Garg