Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2006
    Posts
    3
    Plugin Contributions
    0

    Default Session Error on Admin/index.php page - local server

    Fatal error: Call to a member function Execute() on a non-object in C:\WebSites\zen-cart-v1.3.5-full-fileset-09042006\zen-cart-v1.3.5-full-fileset-09042006\includes\functions\sessions.php on line 74

    Get the above error msg. Have isolated error to $db->Execute($qid) command in the function _sess_write(..). Have viewed sql statement via echo ($qid) and pasted in MySQL query browser and executed successfully. Below is an example of sql statement that is failing

    insert into sessions values ('76h3k9d1itsmkiod2d9hm78tl3', '1159907571', 'language|s:7:\"english\";languages_id|s:1:\"1\";languages_code|s:2:\"en\";selec ted_box|s:13:\"configuration\";html_editor_preference_status|s:4:\"NONE\";')

    This is a new install w/ php 5 and mysql 5. Thanks.

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,704
    Plugin Contributions
    11

    Default Re: Session Error on Admin/index.php page

    If you are hosting yourself, you might want to back off on the mysql.

    http://www.zen-cart.com/wiki/index.php/Installation
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  3. #3
    Join Date
    Oct 2006
    Posts
    3
    Plugin Contributions
    0

    Default Re: Session Error on Admin/index.php page

    locally installed for now. can you be more specific on 'backing off' are you implying that I should user an earlier version of mySQL?

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,704
    Plugin Contributions
    11

    Default Re: Session Error on Admin/index.php page

    The link I sent talks about the various combinations of PHP and MySQL and how they interact.
    Since Zen versions below 1.3.x don't work with MySQL 5 and Zen 1.3.x and up don't use the advanced features of MySQL 5, I've had better luck backing off of 5 to a more useable 4.x.
    I've found that the Zen developers are Very good about keeping as close as possible to the latest PHP and MySQL. Most other programs either lag farther behind or blindly jump to the latest version without testing.
    Hats off to the team for their measured constraint.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  5. #5
    Join Date
    Sep 2004
    Posts
    1,388
    Plugin Contributions
    4

    Default Re: Session Error on Admin/index.php page

    I think you searching "too deep." Look at your URL...

    C:\WebSites\zen-cart-v1.3.5-full-fileset-09042006\zen-cart-v1.3.5-full-fileset-09042006\includes\functions\sessions.php
    You have the folder nested within itself. Did you intend to do that?
    Frank Koehl
    "Cleverly Disguised as a Responsible Adult"

    frankkoehl.com

  6. #6
    Join Date
    Oct 2006
    Posts
    3
    Plugin Contributions
    0

    Default Re: Session Error on Admin/index.php page

    re-installed mysql to version 4 and re-installed zen cart w/ different naming convention. unfortunately still getting same errors on session.php.

    Fatal error: Call to a member function Execute() on a non-object in C:\WebSites\zen-cart-v1.3.5\zen-cart\includes\functions\sessions.php on line 61

    This is really confusing, because some of the db->execute commands are working, but certain ones fail. Admin

    Store works fine. Can create a new login (customer) saves record, etc. so its something about session creation process that is failing.

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

    Default Re: Session Error on Admin/index.php page

    PHP5 has done some things differently with sessions. Not sure exactly the rest of your configuration in order to comment.

    If you put it up on a traditional webserver, you'll find it works properly.

    You might try downgrading to PHP4. At least to narrow down whether your PHP configuration is the issue or not.

    Or you could post a link to your zc_install/techsupp.php or at least its output ...
    .

    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.

  8. #8
    Join Date
    Aug 2005
    Posts
    33
    Plugin Contributions
    0

    Default Re: Session Error on Admin/index.php page - local server

    I'm also experiencing this (Windows, PHP 5.2.0RC4, MySQL 5.0.18). As a workaround during the installation you can select to store the sessions in a file instead of the in the database.

  9. #9
    Join Date
    Sep 2004
    Posts
    1,388
    Plugin Contributions
    4

    Default Re: Session Error on Admin/index.php page - local server

    Downgrading PHP to v4 is definitely your best bet. Like most PHP-based software, Zen is not fully compatible with PHP 5 just yet.
    Frank Koehl
    "Cleverly Disguised as a Responsible Adult"

    frankkoehl.com

 

 

Similar Threads

  1. Replies: 0
    Last Post: 6 Aug 2014, 11:14 PM
  2. v151 ERROR: date.timezone not set in php.ini on local Windows 2008 server
    By jodean in forum Installing on a Windows Server
    Replies: 7
    Last Post: 22 Apr 2014, 06:22 PM
  3. Session.php Error when logging into Admin
    By rohanale in forum General Questions
    Replies: 4
    Last Post: 2 Feb 2007, 11:51 PM
  4. Blank index.php and /admin/index.php page after install
    By gsummerlin in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 14 Jul 2006, 10:04 PM
  5. Error: The requested URL /index.php was not found on this server.
    By etoile03 in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 6 Jul 2006, 04:28 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