Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2007
    Posts
    1
    Plugin Contributions
    0

    red flag 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

  2. #2
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default 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.

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. v1.2.x Fatal error: Call to a member function Execute() on a non-object
    By musikmachine in forum General Questions
    Replies: 1
    Last Post: 15 Feb 2012, 12:21 AM
  2. Fatal error: Call to a member function Execute() on a non-object
    By cyberjyber in forum Upgrading from 1.3.x to 1.3.9
    Replies: 13
    Last Post: 29 Dec 2009, 10:38 PM
  3. Replies: 2
    Last Post: 5 Jul 2008, 04:27 PM
  4. Fatal error: Call to a member function Execute() on a non-object
    By OLDTango in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 28 Jul 2007, 03:43 PM
  5. Replies: 4
    Last Post: 28 Feb 2007, 03:31 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR