Call to undefined method Mage_Adminhtml_Block_Widget::getrowurl

April 14, 2011 | In: Magento

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

Leave a Reply

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


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Inquire Now



PSD to Magento Advertisement Advertisement Advertisement

Latest comments

  • None found