Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    Join Date
    Oct 2004
    Location
    Ontario
    Posts
    116
    Plugin Contributions
    1

    Default Re: v1.3.6, moved to new host, no logins

    In error logs:
    Code:
    [17-Feb-2009 21:06:59] PHP Fatal error:  Call to a member function Execute() on a non-object in /home/kylegilb/public_html/lisasdesigns/shop/includes/functions/sessions.php on line 61
    Code:
    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 {
            $sql = "insert into " . TABLE_SESSIONS . "
                    values ('" . zen_db_input($key) . "', '" . zen_db_input($expiry) . "', '" .
                             zen_db_input($value) . "')";
    
            return $db->Execute($sql);
    
          }
        }
    Thats the only error.

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

    Default Re: v1.3.6, moved to new host, no logins

    Edit the function _sess_write and change it to read:
    Code:
        function _sess_write($key, $val) {
          global $SESS_LIFE, $db;
    
    // bof: work around code
          if (!is_object($db)) {
            //PHP 5.2.0 bug workaround ...
            $db = new queryFactory();
            $db->connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD, DB_DATABASE, USE_PCONNECT, false);
          }
    // eof: work around code
    
          $expiry = time() + $SESS_LIFE;
    See if that works for you ...
    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!

  3. #13
    Join Date
    Oct 2004
    Location
    Ontario
    Posts
    116
    Plugin Contributions
    1

    Default Re: v1.3.6, moved to new host, no logins

    That did it....

    Shouldn't the DB to initialized by then?

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

    Default Re: v1.3.6, moved to new host, no logins

    php 5.x threw issues in the old, ancient, dead, out-dated versions of Zen Cart ...

    Almost sounds like its time to upgrade, eh?
    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!

  5. #15
    Join Date
    Oct 2004
    Location
    Ontario
    Posts
    116
    Plugin Contributions
    1

    Default Re: v1.3.6, moved to new host, no logins

    Getting the site up on the new host was priority one.

    Thanks for your help.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Moved to New Host and I broke It
    By sportbiker in forum General Questions
    Replies: 11
    Last Post: 29 Dec 2011, 12:47 AM
  2. moved to new host and this error---
    By DarkAngel in forum General Questions
    Replies: 9
    Last Post: 10 Apr 2011, 08:45 PM
  3. Moved to new host, but can't log in!
    By gizmo_girl in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 2 Apr 2009, 06:06 AM
  4. Syntax Error, moved to new host
    By bluelion in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 1 Sep 2008, 02:52 AM
  5. Moved to new host - images not showing
    By amagab in forum General Questions
    Replies: 16
    Last Post: 8 Jul 2006, 04:54 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