Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Fatal error: Using $this

    DrByte raises a good point. In 1.3.8 this bypass is handled in a completely different way in a completely different place (i.e. modules/pages/create_account_success/header_php.php. So if you were to upgrade to 1.3.8, I would recommend making sure that the extra bit of code about which you asked is removed completely.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  2. #2
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,587
    Plugin Contributions
    29

    Default Re: Fatal error: Using $this

    I looked in a few other Zen cart installs I have, all 1.3.7, and did not find that same bit of code in any of them. They all had:

    zen_redirect(zen_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL'));

    I replaced it all with the code above and it''s working just fine. I'm not really sure where that other code came from.

  3. #3
    Join Date
    Nov 2004
    Location
    West Mids, England
    Posts
    203
    Plugin Contributions
    1

    Default Re: Fatal error: Using $this

    Hi, just had the same problem after upgrading to php5.

    This section of code:

    if (is_array($this->contents)) { // if items in cart, then by pass create account success
    zen_redirect(zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')); // Redirects the
    user to the "Shipping Information" part of the checkout (more streamlined).
    } else { // no items in cart to show create account success page
    zen_redirect(zen_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL')); //
    Original line of code that redirects the user to the "create account success" page. Adds another
    step to the checkout process, and is not needed for a more streamlined approach.
    }

    Is from: 20 Surefire Ways to Increase Sales Using Zen Cart. by:
    Eric Leuenberger
    http://www.zencartoptimization.com
    Zen Forum ID: econcepts

    Obviously conflicts with php5.

    It was a way of streamlining the checkout process.

    I shall let him know. Not sure if he has updated the code recently.

    Thanks Kuroi, your alteration worked for me too.

    Craig

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Fatal error: Using $this

    Thanks Craig, it's useful to know where this snippet originated.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 

Similar Threads

  1. Replies: 6
    Last Post: 15 Oct 2013, 08:33 PM
  2. Fatal error: Using $this when not in object context (one-page-checkout)
    By gsdcypher in forum All Other Contributions/Addons
    Replies: 14
    Last Post: 28 Feb 2008, 08:08 AM
  3. Got This Fatal error using links manager
    By weezee in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 1 Sep 2007, 05:52 AM
  4. Fatal error (using PHP 5.2.0)
    By benamin in forum General Questions
    Replies: 8
    Last Post: 3 Dec 2006, 03:22 PM

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