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!

3 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

Unknown said...

Thanks to the author for an interesting and useful article. I ran into some difficulties in the cms magento system when I installed the graphic template. The fact is that the template itself was not installed the first time, there were departures, and errors, but I still managed to establish it. Then I found out that the text blocks floated. How can this problem be solved ?

LinkWithin

Related Posts Plugin for WordPress, Blogger...