gsdcypher:
they say they have fixed everything, but when someone tries to go through the checkout process they get this error:
Fatal error: Using $this when not in object context in /home/allk9/public_html/includes/modules/ALLK9/create_account.php on line 413
Please help... :frusty:
gsdcypher:
here is the code that is differnt from the clean file:
//The following bypasses the Create Account Success page if items are in the cart.
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 mroe streamlined approach.
}
// *******************************************************************************
It was working just fine... what do you think is the problem in the code?
According to the error message you first reported, the $this->content is the problem referenced.
One of your addons/contributions has likely added some extra code to the file, but you're missing a dependency from elsewhere for one reason or another.