I have created custom shipping module and gets following error:
Fatal error: Call to a member function setStore() on a non-object in /home/devjoand/public_html/includes/src/Mage_Shipping_Model_Shipping.php on line 421
I removed all files including .xml for this shipping module and it still gives me the same error. It doesn't send me to shipping method and stops execution from savebilling controller with above error. I have cleared cache/session and recompile but nothing works. Any help would be appreciated. Thanks in advance!
NOTE: It works fine in my local machine but not working on production server.
setStore()
is not an object. So you are trying to instantiate an object like,$obj = new Obj()
and the try to call$obj->setStore()
, but your$obj
has faild to get instantiated. Wrap it in atry-catch
block and dump the exception, to see if theres an error. – Michal Jul 07 '14 at 11:35