Forums / General Questions / WARNING error during checkout attached to Free Shipping

WARNING error during checkout attached to Free Shipping

Views: 4,713

Results 1 to 8 of 8
21 Feb 2012, 2:56 AM
#1
wiccan0974 avatar

wiccan0974

New Zenner

Join Date:
Jul 2008
Location:
Australia
Posts:
73
Plugin Contributions:
0

WARNING error during checkout attached to Free Shipping

I have recently upgraded from 1.3.8a to 1.3.9h and I am sorting out a few bugs, most of which I now have under control...but this one is confusing me...during checkout with a free shipping module, the following error displays

WARNING: Could not locate language file: includes/languages/english/modules/order_total/ot_insurance.php

I have not used an insurance module before and the error message is correct in there isnt an ot_insurance.php language file...do I need it to make this error go away or is there a way for zc to recognise that it is not required?

any help is appreciated :)

https://www.thecrookedpath.com.au

21 Feb 2012, 3:02 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: WARNING error during checkout attached to Free Shipping

It sounds like you have the file:
/includes/modules/order_total/ot_insurance.php

but you do not have the associated language file:
/includes/languages/english/modules/order_total/ot_insurance.php

if you do not want to use the insurance, then you should delete the file:
/includes/modules/order_total/ot_insurance.php

If you do want the insurance module, then you need to load the language file:
/includes/languages/english/modules/order_total/ot_insurance.php

to the server ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

21 Feb 2012, 3:04 AM
#3
wiccan0974 avatar

wiccan0974

New Zenner

Join Date:
Jul 2008
Location:
Australia
Posts:
73
Plugin Contributions:
0

Re: WARNING error during checkout attached to Free Shipping

Well, as I was typing out the question, I had an idea...what would happen if I simply went to /includes/languages/english/modules/order_total and simply make a blank file that was titled ot_insurance.php?

So I tried...

And now Im not getting the error message...

Is this the "fix" or are there repercussions to doing this that I am not aware of?

Thanks again :)

21 Feb 2012, 3:07 AM
#4
wiccan0974 avatar

wiccan0974

New Zenner

Join Date:
Jul 2008
Location:
Australia
Posts:
73
Plugin Contributions:
0

Re: WARNING error during checkout attached to Free Shipping

Thanks Ajeh, I have just checked to see if I do in fact have the /includes/modules/order_total/ot_insurance.php - but I don't... :frusty:

I'm confused :wacko:

21 Feb 2012, 3:30 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: WARNING error during checkout attached to Free Shipping

It could be in your database for this Order Total module and was never properly deleted ...

If you go to the Modules ... Order Totals ... do you see Insurance ot_insurance in there?

Otherwise, you would need to clean up the database table for the configuration to get rid of this properly ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

5 Feb 2013, 9:11 PM
#6
joe_davila avatar

joe_davila

New Zenner

Join Date:
Aug 2008
Posts:
40
Plugin Contributions:
0

Re: WARNING error during checkout attached to Free Shipping

Hi Ajeh
I am getting this error too, but I don't have either file in their respective directories. Do you know where I need to look in the database to clean this up?

6 Feb 2013, 6:11 AM
#7
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: WARNING error during checkout attached to Free Shipping

wiccan0974:

Well, as I was typing out the question, I had an idea...what would happen if I simply went to /includes/languages/english/modules/order_total and simply make a blank file that was titled ot_insurance.php?

So I tried...

And now Im not getting the error message...

Is this the "fix" or are there repercussions to doing this that I am not aware of?

Thanks again :)

Good question. The /languages/ files generally only contain 'define' statements, which are used to output the relevant text in any given language. In this case, English.

The lack of these defines won't cause any operational issues, but if you see any output in all capitals, such as 'INSURANCE_FEE' (or similar) it means that the 'define' statement is missing, and should be added.

Cheers
Rod

Ooops, just realised that this was a very old post. Sorry about that.

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

6 Feb 2013, 6:13 AM
#8
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: WARNING error during checkout attached to Free Shipping

joe.davila:

Hi Ajeh
I am getting this error too, but I don't have either file in their respective directories. Do you know where I need to look in the database to clean this up?

If you have neither of the aforementioned files then you won't be getting the same error.

Please describe the actual error that you are getting and we may be able to help.

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.