Fatal error: Call to a member function Execute() on a non-object in /home/.grable/dam
Fatal error: Call to a member function Execute() on a non-object in /home/.grable/damianw2002/allnonebbq.com/shopping_cart/includes/functions/sessions.php on line 61
Not sure what happened but when I went to log into admin area I got this message and it won't let me in. Any ideas??
function _sess_write($key, $val) {
global $db;
global $SESS_LIFE;
$expiry = time() + $SESS_LIFE;
$value = $val;
$qid = "select count(*) as total
from " . TABLE_SESSIONS . "
where sesskey = '" . zen_db_input($key) . "'";
$total = $db->Execute($qid);
if ($total->fields['total'] > 0) {
$sql = "update " . TABLE_SESSIONS . "
set expiry = '" . zen_db_input($expiry) . "', value = '" . zen_db_input($value) . "'
where sesskey = '" . zen_db_input($key) . "'";
return $db->Execute($sql);
} else {
heres lines 50 through 68
Re: Fatal error: Call to a member function Execute() on a non-object in /home/.grable
Which PHP version are you using and which Zen-Cart version ? This error seem to come from an earlier version of Zen-Cart since this kind of error was already reported in the past.
Re: Fatal error: Call to a member function Execute() on a non-object in /home/.grable
This is caused by a php 5.2.0 bug ...
We have put in a temporary fix to work around this php error in v1.3.7 ... good idea to upgrade for this and other issues ...
You can use the work around posted ... but not nearly as smart as upgrading to the current version, of course:
http://www.zen-cart.com/forum/showpo...7&postcount=26
NOTE: v1.3.7 patch at:
http://www.zen-cart.com/forum/showthread.php?t=56216