Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2009
    Posts
    158
    Plugin Contributions
    0

    Default Fatal Error - Call to a member function

    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?

  2. #2
    Join Date
    Sep 2004
    Posts
    1,388
    Plugin Contributions
    4

    Default Re: Fatal Error - Call to a member function

    That error doesn't match up with the latest version of Zen Cart, so what version are you running?
    Frank Koehl
    "Cleverly Disguised as a Responsible Adult"

    frankkoehl.com

  3. #3
    Join Date
    May 2008
    Posts
    48
    Plugin Contributions
    0

    Default Re: Fatal Error - Call to a member function

    Hi, I have the exact same error message. I am running 1.3.8a german/english version. When I open up the mentioned file, I find this starting on line 48:
    Code:
     if (!zen_not_null(ltrim($_SESSION['cot_gv'], ' 0')) || $_SESSION['cot_gv'] == '0') $_SESSION['cot_gv'] = '0.00';
        $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'])) : '');
        $this->output = array();
        if (IS_ADMIN_FLAG === true) {
          if ($this->include_tax == 'true' && $this->calculate_tax != "None") {
            $this->title .= '<span class="alert">' . MODULE_ORDER_TOTAL_GV_INCLUDE_ERROR . '</span>';
    I have no idea what this means. Any help would be greatly appreciated.

 

 

Similar Threads

  1. Fatal error: Call to a member function
    By Richard.Tung in forum General Questions
    Replies: 6
    Last Post: 9 Feb 2011, 02:30 PM
  2. Fatal error: Call to a member function add_current_page()
    By mrsocks in forum General Questions
    Replies: 3
    Last Post: 10 Feb 2010, 12:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg