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

Error message in Modules

Started by dmagic on 26 Nov 2012, 8:51 PM · Views: 736

Results 1 to 2 of 2
26 Nov 2012, 8:51 PM
#1
dmagic avatar

dmagic

Totally Zenned

Join Date:
Oct 2008
Posts:
594
Plugin Contributions:
0

Post #1 by dmagic

I have been setting up gift certificates today but now I have this error message in Modules > Order Total

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

I don't even remember opening this .php file and I have no idea how to fix it. Can anyone help, please?

26 Nov 2012, 9:59 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

That suggests that you've changed or altered the /your_admin_folder/includes/init_includes/init_currencies.php, or you've added an altered version of it at /your_admin_folder/includes/init_includes/overrides/init_currencies.php

And/or you've changed /your_admin_folder/includes/classes/currencies.php

Put back the original version of those files, or figure out why you've changed the files in a way that breaks currency handling in the admin.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.