If this is your first visit, check our documentation. To post, register or login.

Order Total Mods Error

Started by missconfused on 18 Nov 2012, 5:58 PM · Views: 1,053

Results 1 to 5 of 5
18 Nov 2012, 5:58 PM
#1
missconfused avatar

missconfused

New Zenner

Join Date:
Nov 2012
Posts:
3
Plugin Contributions:
0

Post #1 by missconfused

I enabled gift certificates and now I receive this error in the Order Total Modules

Fatal error: Call to a member function format() on a non-object in /home/*****/public_html/store/includes/modules/order_total/ot_gv.php on line 49

Can anyone help?

18 Nov 2012, 6:02 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

When you reply - Scroll up and read posting tips and answer the questions

Zen-Venom Get Bitten

18 Nov 2012, 6:07 PM
#3
missconfused avatar

missconfused

New Zenner

Join Date:
Nov 2012
Posts:
3
Plugin Contributions:
0

Post #3 by missconfused

I have never posted about this issue before.
I'm using version 138.a
No my site has not been upgraded.
I searched the forum and the only threads I found with the same problem as me did not help rectify my problem.
The problem started when I enabled gift certificates.
This is not my first store.

18 Nov 2012, 6:11 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #4 by kobra

I'm using version 138.a
You really need to upgrade as known vulnerabilities have been known since approx Jul '09

Support for that old of a version is sparse
Hopefully someone still has 1.3.8a & knows something about this issue

Zen-Venom Get Bitten

18 Nov 2012, 7:31 PM
#5
missconfused avatar

missconfused

New Zenner

Join Date:
Nov 2012
Posts:
3
Plugin Contributions:
0

Post #5 by missconfused

Ok thanks for the reply, I understand I need to upgrade but at this moment in time it's not possible.

This is the code line that supposedly has the error, if anyone could help I would truly appreciate it since it seems my customers now can't use Gift Certificate Balances while checking out

$this->checkbox = $this->user_prompt . '<input type="text" size="6" onkeyup="submitFunction()" name="cot_gv" value="' . number_format($_SESSION['cot_gv'], 2) . '" onfocus="if (this.value == \'' . number_format($_SESSION['cot_gv'], 2) . '\') this.value = \'\';" />' . ($this->user_has_gv_account($_SESSION['customer_id']) > 0 ? '<br />' . MODULE_ORDER_TOTAL_GV_USER_BALANCE . $currencies->format($this->user_has_gv_account($_SESSION['customer_id'])) : '');