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

    Default Fatal error message on functions/sessions.php

    I'm having problems logging into the admin. It was working fine the day before and I have not made any changes or touched any of the files.

    I keep getting this message: Fatal error: Call to a member function Execute() on a non-object in /home/tayna/public_html/includes/functions/sessions.php on line 61

    Here is my url: http://www.taynasminidolls.com/admin/login.php

    Thanks, Tayna

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Fatal error message

    What version of Zen Cart are you using?
    What version of PHP is on your server?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2007
    Posts
    3
    Plugin Contributions
    0

    Default Re: Fatal error message on functions/sessions.php

    Zencart version V1.3.6

    Php version 5.2.5

    Thanks! Tayna

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Fatal error message on functions/sessions.php

    A bug caused by PHP5 was fixed in v1.3.7.1

    You should upgrade the /includes/functions/sessions.php file using the one from 1.3.7.1 or 1.3.8

    ... and you should plan to upgrade your whole site in the near future.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Sep 2007
    Posts
    3
    Plugin Contributions
    0

    Default Re: Fatal error message on functions/sessions.php

    Thanks, I will upgrade now.

  6. #6
    Join Date
    Mar 2005
    Posts
    45
    Plugin Contributions
    0

    Default Re: Fatal error message on functions/sessions.php

    just incase anyone else comes looking a quick fix is to change

    a quick fix is to get a copy of 1.7 or 1.8 session.php and chancge the following change

    Code:
    <?php
    /**
     * functions/sessions.php
     * Session functions
     *
     * @package functions
     * @copyright Copyright 2003-2005 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: sessions.php 6525 2007-06-25 21:49:57Z drbyte $
     */
    if (!defined('IS_ADMIN_FLAG')) {
      die('Illegal Access');
    }
      if (STORE_SESSIONS == 'db') {
        if (defined('DIR_WS_ADMIN')) {
          if (!$SESS_LIFE = (SESSION_TIMEOUT_ADMIN + 900)) {
            $SESS_LIFE = (SESSION_TIMEOUT_ADMIN + 900);
          }
        } else {
          if (!$SESS_LIFE = get_cfg_var('session.gc_maxlifetime')) {
            $SESS_LIFE = 1440;
    for

    Code:
    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce                                       |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers                           |
    // |                                                                      |
    // | http://www.zen-cart.com/index.php                                    |
    // |                                                                      |
    // | Portions Copyright (c) 2003 osCommerce                               |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license,       |
    // | that is bundled with this package in the file LICENSE, and is        |
    // | available through the world-wide-web at the following url:           |
    // | http://www.zen-cart.com/license/2_0.txt.                             |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to       |
    // | [email protected] so we can mail you a copy immediately.          |
    // +----------------------------------------------------------------------+
    // $Id: sessions.php 277 2004-09-10 23:03:52Z wilt $
    //
    /**
     * @package ZenCart_Functions
    */
    
      if (STORE_SESSIONS == 'db') {
        if (defined('DIR_WS_ADMIN')) {
          if (!$SESS_LIFE = (SESSION_TIMEOUT_ADMIN + 900)) {
            $SESS_LIFE = (SESSION_TIMEOUT_ADMIN + 900);
          }
        } else {
          if (!$SESS_LIFE = get_cfg_var('session.gc_maxlifetime')) {
            $SESS_LIFE = 1440;
    then upload over the original sessions.php

    im not a coder so im not sure what the fix is i just know that im running an older version and just swapping the sessions.php causes it to produce "illegal action" or words to that effect but the above fixes this.

    regards Nez.

  7. #7
    Join Date
    Dec 2006
    Location
    Victoria, Australia
    Posts
    360
    Plugin Contributions
    0

    Default Re: Fatal error message on functions/sessions.php

    I had this error too and I did what Deathsdoor said and it worked. The easiest fix I have done... Phew!

    Thanks for the information. i am sure it will help out many. I know I should upgrade but I am worried i will mess it up so for now I fix the bugs
    'E-Start your web store' book - I Got it and now ..... I GET IT !....Well alot more of it anyway (-:

  8. #8
    Join Date
    Aug 2006
    Posts
    89
    Plugin Contributions
    0

    Default Re: Fatal error message on functions/sessions.php

    Quote Originally Posted by deathsdoor View Post
    just incase anyone else comes looking a quick fix is to change

    a quick fix is to get a copy of 1.7 or 1.8 session.php and chancge the following change

    Code:
    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce                                       |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers                           |
    // |                                                                      |
    // | http://www.zen-cart.com/index.php                                    |
    // |                                                                      |
    // | Portions Copyright (c) 2003 osCommerce                               |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license,       |
    // | that is bundled with this package in the file LICENSE, and is        |
    // | available through the world-wide-web at the following url:           |
    // | http://www.zen-cart.com/license/2_0.txt.                             |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to       |
    // | [email protected] so we can mail you a copy immediately.          |
    // +----------------------------------------------------------------------+
    // $Id: sessions.php 277 2004-09-10 23:03:52Z wilt $
    //
    /**
     * @package ZenCart_Functions
    */
    
      if (STORE_SESSIONS == 'db') {
        if (defined('DIR_WS_ADMIN')) {
          if (!$SESS_LIFE = (SESSION_TIMEOUT_ADMIN + 900)) {
            $SESS_LIFE = (SESSION_TIMEOUT_ADMIN + 900);
          }
        } else {
          if (!$SESS_LIFE = get_cfg_var('session.gc_maxlifetime')) {
            $SESS_LIFE = 1440;
    then upload over the original sessions.php

    im not a coder so im not sure what the fix is i just know that im running an older version and just swapping the sessions.php causes it to produce "illegal action" or words to that effect but the above fixes this.

    regards Nez.
    This gave me problems on line 71. Any other ideas?

 

 

Similar Threads

  1. v153 PHP Fatal error: Duplicate entry for key insert into sessions
    By carlwhat in forum General Questions
    Replies: 2
    Last Post: 6 Jan 2015, 02:32 AM
  2. Fatal Error in Sessions.php line 61
    By kevnj in forum Basic Configuration
    Replies: 7
    Last Post: 6 May 2007, 06:41 AM
  3. Fatal Error in sessions.php line 72
    By laurakim in forum General Questions
    Replies: 5
    Last Post: 22 Apr 2007, 06:27 AM
  4. Fatal error with sessions.php
    By Elemi in forum General Questions
    Replies: 4
    Last Post: 7 Jan 2007, 06:48 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