Post by Web-developer » Tue Oct 05, 2010 11:14 pm

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.
Last edited by Web-developer on Wed Oct 06, 2010 12:01 am, edited 1 time in total.

User avatar
Newbie

Posts

Joined
Tue Sep 21, 2010 5:57 pm

Post by JAY6390 » Tue Oct 05, 2010 11:21 pm

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'] 

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by Web-developer » Tue Oct 05, 2010 11:43 pm

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..

User avatar
Newbie

Posts

Joined
Tue Sep 21, 2010 5:57 pm

Post by JAY6390 » Wed Oct 06, 2010 12:00 am

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

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 145 guests