Oh snap! You are using an old version of browser. Update your browser to get new awesome features. Click for more details.

Magento Edit Category Issue In Admin After Updating






Hi Friend's

When you update magento version and everything is working fine and as expected but the catalog/category. when you not able to edit/delete categories from Admin Panel and check your ajax request in console.

The Console details are as follow:

URL being hit each time I click on category name:
http://my-domain.com/index.php/admin/catalog_category/edit/key/<magento_scurity_key(EX.1ac1f1e5f75e665a2fd06eca4569d662)>/?admin%2Fcatalog_category%2Findex%2Fkey%2F1ed297c236a0c9df5530952aaf7e0618%2F=id/7/&isAjax=true

Get Params:

isAjax : true

q : index.php/admin/catalog_category/index/key/bdf7b2cc9b890b6cb7e687a31bc7c35c/id/7/

POST Params:

active_tab_id : category_info_tabs_group_4

form_key : FeUR7dFe2MutCtcB


And This always bring a blank category form.

Solution:

Copy /app/code/core/Mage/Core/Model/Url.php

to /app/code/local/Mage/Core/Model/Url.php

an change line number around 1016 in magento 1.9 another search "if ($query)"

if ($query) {
    $mark = (strpos($url, '?') === false) ? '?' : ($escapeQuery ? '&amp;' : '&');
    $url .= $mark . $query;
}
To replace
//if ($query) {
if ($query && strpos($query, 'catalog_category') === false ) {
    $mark = (strpos($url, '?') === false) ? '?' : ($escapeQuery ? '&amp;' : '&');
    $url .= $mark . $query;
}

Now Flush Magento Cache and refresh page

Hope this information is helpful to you :)
Read more : http://stackoverflow.com/questions/11809272/cannot-edit-categories-in-magento-after-updating-to-1-7

7 comments

  1. Thank's man Its awsum... Cheersss!!!! :) :)

    ReplyDelete
  2. Hi Vithal i tried this it does not work can you pleas tell me in step by step thanks

    ReplyDelete
  3. nice buddy its working hurrrrrrrrreeeyey

    ReplyDelete
  4. Thanks for the best blog.it was very useful for me.keep sharing such ideas in the future as well.this was actually what i was looking for,and i am glad to came here!
    magento development company in bangalore 

    ReplyDelete