Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Dec 2005
    Posts
    28
    Plugin Contributions
    0

    Default Call to a member function Execute() on a non-object- ZC v1.2.6

    Hi, I'm moving a Zen Cart installation from one server to a new server. I backed up all the files in the Zen Cart directory and also did a SQL dump of the database. Then uploaded all the files to the new server and reinstated all the SQL tables. Then I updated all the settings in the includes>configure.php file.

    I hit the front end of the store front and everything *appears to be working correctly but at the bottom of the page I get the following error:

    Fatal error: Call to a member function Execute() on a non-object in /home/content/o/h/a/ohanaprod/html/shop/includes/functions/sessions.php on line 72

    Any ideas?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Call to a member function Execute() on a non-object

    What version of PHP was on the old server?
    And what's on the new server?

    What version of Zen Cart are you using?

    Zen Cart v1.3.7.1 and newer work with PHP 5. Prior to that only works on PHP 4.
    .

    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
    Dec 2005
    Posts
    28
    Plugin Contributions
    0

    Default Re: Call to a member function Execute() on a non-object

    Old server: php 4.46
    New Server: php 5.2.5

    I'm not sure what version of Zen cart I'm running but it's over a year old.

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

    Default Re: Call to a member function Execute() on a non-object

    Anything that old won't play well with the new 5.2 PHP.

    Why not take this opportunity to upgrade?

  5. #5
    Join Date
    Dec 2005
    Posts
    28
    Plugin Contributions
    0

    Default Re: Call to a member function Execute() on a non-object

    oooh boy. I'm nervous about upgrading. It took so much work to get Zen Cart working properly in the first place. How hard is it going to be to upgrade? will I loose all my customizations? Is there a walk through somewhere on the site that explains the process of upgrading?

    When I log into the admin area of my zen cart it says in the upper right hand "Your version of Zen Cart™ appears to be current." How can I know if I even need to upgrade? I can't seem to find anywhere what version I'm running.

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

    Default Re: Call to a member function Execute() on a non-object

    If your admin says it's current, it's probably not a year old. When you click on "Version" in the admin toolbar, what version do you see?

  7. #7
    Join Date
    Dec 2005
    Posts
    28
    Plugin Contributions
    0

    Default Re: Call to a member function Execute() on a non-object

    I can't find anywhere in the admin area to click on to show me the version it's running. The word "version" only appears in the sentence in the upper right hand corner and it's not hot linked...

    EDIT:
    OK, in the menu Tools>Server Info the resulting page says I'm running Zen Cart 1.2.6
    Last edited by warpdesign; 24 May 2008 at 10:31 PM.

  8. #8
    Join Date
    Dec 2005
    Posts
    28
    Plugin Contributions
    0

    Default Re: Call to a member function Execute() on a non-object- ZC v1.2.6

    Could this issue have something to do with the sessions settings? Since the error says it's showing up in sessions.php, I thought this might have something to do with is. Obviously all the sessions logged in the database from the old server are no longer valid on the new one.

    I also can not log into the admin area on the new server. When I put in the username and password into login.php it sends me to index.php which instantly takes me back to login.php.

  9. #9
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Call to a member function Execute() on a non-object- ZC v1.2.6

    You need to upgrade your Zen Cart or downgrade your php version -
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  10. #10
    Join Date
    Dec 2005
    Posts
    28
    Plugin Contributions
    0

    Default Re: Call to a member function Execute() on a non-object- ZC v1.2.6

    Thanks Kim! I think that did it.

 

 
Page 1 of 2 12 LastLast

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. 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
  4. Replies: 6
    Last Post: 4 Jun 2007, 11:42 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