Forums / Basic Configuration / Fatal error message on functions/sessions.php

Fatal error message on functions/sessions.php

Locked
Results 1 to 8 of 8
This thread is locked. New replies are disabled.
05 Jan 2008, 22:17
#1
tayna avatar

tayna

New Zenner

Join Date:
Sep 2007
Posts:
3
Plugin Contributions:
0

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
05 Jan 2008, 22:24
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Fatal error message on functions/sessions.php

What version of Zen Cart are you using?
What version of PHP is on your server?
05 Jan 2008, 22:44
#3
tayna avatar

tayna

New Zenner

Join Date:
Sep 2007
Posts:
3
Plugin Contributions:
0

Re: Fatal error message on functions/sessions.php

Zencart version V1.3.6

Php version 5.2.5

Thanks! Tayna
05 Jan 2008, 23:03
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

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.
05 Jan 2008, 23:04
#5
tayna avatar

tayna

New Zenner

Join Date:
Sep 2007
Posts:
3
Plugin Contributions:
0

Re: Fatal error message on functions/sessions.php

Thanks, I will upgrade now.
14 Jan 2008, 12:02
#6
deathsdoor avatar

deathsdoor

New Zenner

Join Date:
Mar 2005
Posts:
27
Plugin Contributions:
0

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

<?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

<?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.
26 Feb 2008, 21:04
#7
blind1 avatar

blind1

Zen Follower

Join Date:
Dec 2006
Posts:
351
Plugin Contributions:
0

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!:clap:

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:lookaroun
12 Mar 2008, 13:36
#8
nancyok avatar

nancyok

New Zenner

Join Date:
Aug 2006
Posts:
89
Plugin Contributions:
0

Re: Fatal error message on functions/sessions.php

deathsdoor:

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

<?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?