Page 1 of 1

[SOLVED] Error: Could not load model payment/free_checkout!

Posted: Tue Oct 05, 2010 11:14 pm
by Web-developer
Hi,

I am still under 1.4.7 and today I've tried to add downloads section and I got following message in stre-front:
Error: Could not load model payment/free_checkout!

In Admin area uppon hiting edit FreeCheckout I've got this error:
Notice: Undefined index: token in /admin/controller/payment/free_checkout.php on line 41Notice: Undefined index: token in /admin/controller/payment/free_checkout.php on line 47Notice: Undefined index: token in /admin/controller/payment/free_checkout.php on line 53Notice: Undefined index: token in /admin/controller/payment/free_checkout.php on line 58Notice: Undefined index: token in /admin/controller/payment/free_checkout.php on line 60Error: Could not load template /admin/view/template/payment/free_checkout.tpl!

What's even more interesting that I've unzipped fresh 1.4.7 and spotted that /admin/view/template/payment/free_checkout.tpl doesn't even exist in install version.

Can anyone suggest me a solution? Is that database error or some files missing?

thank you in advance.

Re: Error: Could not load model payment/free_checkout!

Posted: Tue Oct 05, 2010 11:21 pm
by JAY6390
You've got a token, so the module is for 1.4.8 onwards. You'll need to edit the file /admin/controller/payment/free_checkoout.php and find all of the

Code: Select all

&token=' . $this->session->data['token'] 

Re: Error: Could not load model payment/free_checkout!

Posted: Tue Oct 05, 2010 11:43 pm
by Web-developer
Thanks Jay,

I've got replaced

Code: Select all

&token=' . $this->session->data['token'] 
with

Code: Select all

' 
6 replacements in total. I've added free_checkout.TPL from 1.4.8b - The admin area seems to be sorted. Works fine.

I've also added all free_shipping files from 1.4.8b to
catalog > controler
catalog > language
cataloge > module
ALL WORKING!!

Thanks for giving a clue Joe. Apparently I have probably mixed up files with different versions..

Re: Error: Could not load model payment/free_checkout!

Posted: Wed Oct 06, 2010 12:00 am
by JAY6390
In that case, you've not put the file /catalog/model/payment/free_checkout.php in there from the 1.4.8 version. You'll need to add that in