Zen Follower
- Join Date:
- Sep 2006
- Posts:
- 455
- Plugin Contributions:
- 0
Occurred out of nowhere--Fatal error: Call to a member function format() in ot_gv.php
I went to double check the modules/order total to make SURE the red dot for Gift Certificates was on and got this message
Fatal error: Call to a member function format() on a non-object in /includes/modules/order_total/ot_gv.php on line **49
WHAT THE???
**
Line 49 has this code:
$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'])) : '');
Is it possible that when reinstalling another module that it overwrote something? To answer my own question, no, I compared my retail site files and wholesale site files and they are the same. I even reinstalled the retail file to the wholesale file. It worked for about an hour, then went all weird again (like above).
I am now officially freaking out :) It was fine yesterday!