0

I have following error after my upgrade :

Fatal error: Call to undefined method Mage_Core_Model_Config::getResourceHelper() in /home/koala/dev/magento/koala/app/Mage.php on line 531 

I ve set up some debug here :

/**
 * Retreive resource helper object
 *
 * @param string $moduleName
 * @return Mage_Core_Model_Resource_Helper_Abstract
 */
public static function getResourceHelper($moduleName)
{
    $registryKey = '_resource_helper/' . $moduleName;
    var_dump($registryKey);
    if (!self::registry($registryKey)) {
        $helperClass = self::getConfig()->getResourceHelper($moduleName);
        self::register($registryKey, $helperClass);
    }

    return self::registry($registryKey);
}

And the resource helper called is :

string(21) "_resource_helper/core"

Does anyone had and fixed this issue?

Thanks

4
  • Google helps stackoverflow.com/questions/28475293/… Apr 18, 2017 at 11:53
  • Check getResourceHelper function in Mage.php Apr 18, 2017 at 12:07
  • @PankajPareek sorry i edited my question, error is in fact in Mage.php call of app/code/core/Mage/Core/Model/Config.php file but I don't know what s going badly there
    – Nicolas D
    Apr 18, 2017 at 12:44
  • I had a deeper look and all the calls to core getResourceHelper are made by magento from core folder, not a single thing is calling this in local so it is not due to custom developments
    – Nicolas D
    Apr 18, 2017 at 13:31

1 Answer 1

0

I fixed this, we had in local an override on app/code/local/Mage/Core/Model/Config.php that was broken

2
  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review Apr 18, 2017 at 16:08
  • In this override function was missing, so basically once added, it works
    – Nicolas D
    Apr 19, 2017 at 13:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.