Magento: Fatal error: Call to undefined method Mage_Adminhtml_Block_Widget::getrowurl() in magneto 1.4.2

January 6, 2011 | In: Fatel Error, Magento, php, web development

I installed Magento on my local server. When I tried to add new category then I got a fatel error.
What I did and what I got:

I click on catalog > Manage Categories

I got Fatal error: Call to undefined method Mage_Adminhtml_Block_Widget::getrowurl() in …..app/code/core/Mage/Adminhtml/Block/Widget/Grid.php on line 1607

I tried to find out the error reason then I got my solution. And solution is :

Go To app/code/core/Mage/Adminhtml/Block/Widget/Grid.php

Search function getRowUrl in the file.

public function getRowUrl($item)
{
$res = parent::getRowUrl($item);
return ($res ? $res : '#');
}

Replace this function with below function:

public function getRowUrl($item)
{
$res = parent::getUrl($item);
return ($res ? $res : '#');
}

You may also like these related posts

  • http://haijerome.wordpress.com Jerome Dennis D

    Thanks Dude.

    It seems problem with PHP version for magento new installations of the latest stable version Magento CE : 1.4.2.0.

    FYI : http://www.magentocommerce.com/bug-tracking/issue?issue=10447

    Your post saved my time !!!

    Thanks once again !!!

  • PF

    HI! Work fine Thanks

  • Dev

    Tnx dude. Good post

  • Thanh Thien

    thanks you very much!

  • Ez

    My categories and those news updates displayed a blank grid after a fresh install.

    Thank you for the info and code!

    Champion!

  • Brett

    Many thanks for the fix.

  • http://www.enteract.com.au Ben

    Love your work – thanks, that worked for Magento ver. 1.5.1.0

    Fatal error: Call to undefined method Mage_Adminhtml_Block_Widget::getrowurl() in /home/bhglive/subdomain/shop/app/code/core/Mage/Adminhtml/Block/Widget/Grid.php on line 1622

  • http://www.robinp.nl robin

    works like a charm, thanks

  • Senthil

    Its work for me.version 1.5.0.1

  • Pieru

    I had this problem after moving a magento 1.5.1 to a new server. Your solution saved my time. Thank you!

  • Seba

    thank you!

  • http://zaftechnology.com/ Shaikh zafar

    Really useful post. I was getting the same error but now it it solved. You saved my lots of time. Thanks

By Google