Call to undefined method Mage_Adminhtml_Block_Widget::getrowurl

Home / Magento / Call to undefined method Mage_Adminhtml_Block_Widget::getrowurl

If you install new magento or upgrade your magento with latest version or you got the error like below:

Fatal error: Call to undefined method Mage_Adminhtml_Block_Widget::getrowurl() in C:\xampp\htdocs\magento\app\code\core\Mage\Adminhtml\Block\Widget\Grid.php on line 1622

Read this for the solution that workes for me:

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

Look at on line no 1620 on magento 1.5.01

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

And replace this line $res = parent::getRowUrl($item); to $res = parent::getUrl($item);

So your new function look like this:

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

Related Posts

4 Comments

  • Magento developers many times get confused for designing a website in a unique way. After visiting this article, one can easily get the overview of designing a particular Ecommerce website. As the matter of fact, various platforms require different kinds of designs for better engagement of a product. So after visiting here, one can easily get the best overview of designing a website.

  • Heya! I just wanted to ask if you ever have any problems with hackers?
    My last blog (wordpress) was hacked and I ended up losing many months of hard
    work due to no data backup. Do you have any solutions to
    stop hackers?

  • Hello! I know this is kinda off topic but I was wondering which blog platform are you using
    for this website? I’m getting fed up of WordPress because I’ve had issues with hackers and I’m looking at options for another platform.
    I would be awesome if you could point me in the direction of a good platform.

Leave a Reply

Your email address will not be published. Required fields are marked *