Friday, February 25, 2011

Fix Magento Invalid model for shipping method

Since a couple of days I had been playing around with various shipping method modules and installing & uninstalling them to see which fit the requirements. Then when I tried to ship an order from the backend, I would just get the error and on checking the logs, saw the error message "Invalid model for shipping method:" with a huge unintelligible stack trace.

I suspected foul play between my custom theme and the various shipping methods modules that I had tried so I removed all of them and then tried but got the same result. On reinstalling the modules, I noticed that the configuration data was being pre-populated automatically and this got me thinking.

I poked around in the database and found that the configuration info is stored in the table core_config_data.  In this table, I saw rows of data for all the modules that I was playing around with!

I deleted all these errant rows carefully, then cleared Magento cache and tried again and eureka! The order was processed & completed successfully!

2 comments:

Ante Logarusic said...

Thanks for this! I was tearing my hair out trying to figure out how to fix this glitch.

Anonymous said...

Much appreciated! Worked Great Thanks

LinkWithin

Related Posts Plugin for WordPress, Blogger...