Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Paypal IPN 2.0 Fatal error: Cannot instantiate non


Recommended Posts

Yikes, dunno what happened. I double checked and I believe I did everything right in the how-to...


Parse error: parse error in /usr/home/hosting/bloominglily.com/public_html/catalog/includes/classes/order.php on line 120


Fatal error: Cannot instantiate non-existent class: order in /usr/home/hosting/bloominglily.com/public_html/catalog/checkout_shipping.php on line 45


I get that when I hit the Checkout button now! Help please!!! THANKS! :)


Here's starting with line 107:


'id' => $orders_products['products_id'],

//begin PayPal_Shopping_Cart_IPN

'orders_products_id' => $orders_products['orders_products_id'],

//end PayPal_Shopping_Cart_IPN

'name' => $orders_products['products_name'],

'model' => $orders_products['products_model'],

'tax' => $orders_products['products_tax'],

'price' => $orders_products['products_price'],

'final_price' => $orders_products['final_price']);

$subindex = 0;

//begin PayPal_Shopping_Cart_IPN

$attributes_query = tep_db_query("select products_options_id, products_options, products_options_values_id, products_options_values, options_values_price, price_prefix from " . TABLE_ORDERS_PRODUCTS_ATTRIBUTES . " where orders_id = '" . (int)$order_id . "' and orders_products_id = '" . (int)$orders_products['orders_products_id'] . "'");

//end PayPal_Shopping_Cart_IPN

(int)$order_id . "' and orders_products_id = '" . (int)$orders_products['orders_products_id'] . "'");

if (tep_db_num_rows($attributes_query)) {

while ($attributes = tep_db_fetch_array($attributes_query)) {

$this->products[$index]['attributes'][$subindex] = array(

//begin PayPal_Shopping_Cart_IPN

'option_id' => $attributes['products_options_id'],

'value_id' => $attributes['products_options_values_id'],

//end PayPal_Shopping_Cart_IPN

'option' => $attributes['products_options'],

'value' => $attributes['products_options_values'],

'prefix' => $attributes['price_prefix'],

'price' => $attributes['options_values_price']);



120 is:

(int)$order_id . "' and orders_products_id = '" . (int)$orders_products['orders_products_id'] . "'");


on checkout_shipping, line 45 is:

$order = new order;

Edited by fasteddie
Link to comment
Share on other sites

in your above case delete line 120 from that file, looks like a little confusion occured in copying and pasting, i.e. you may not of pasted over the entire line so that line 120 is now a surplus piece of code causing the error.

"Any fool can know. The point is to understand." -- Albert Einstein

Link to comment
Share on other sites

Wow, that is some quick service! Thanks Greg! I guess I really shouldn't be coding at night, but what other time would a store be slow? :)


Well, it LOOKS like it'll work, but that darn Paypal is down for maintenance right now. Thanks for the help, cheers mate! :P

Edited by fasteddie
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...