This is a discussion on PayPal Errors within the Paypal forums, part of the Payment Modules category; When an order is placed, the customer clicks " Complete your order information. " And they recieve this error: Fatal ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| When an order is placed, the customer clicks "Complete your order information." And they recieve this error: Fatal error: Call to a member function on a non-object in /home/content/d/a/z/dazedangels/html/oscMAX2/catalog/includes/modules/payment/paypal_ipn.php on line 521 Now I know I need to do something to line 521 OR I need to change an option. I'm betting I only need to change an option. Anyone want to take a guess? |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| OH and I get an email that reads: PayPal IPN Invalid Process However the order is processed. Thank you, ~eDee |
|
#3
| |||
| |||
| When an order is placed, the customer clicks "Complete your order information." And they recieve this error: Fatal error: Call to a member function on a non-object in /home/content/d/a/z/dazedangels/html/oscMAX2/catalog/includes/modules/payment/paypal_ipn.php on line 521 Now I know I need to do something to line 521 OR I need to change an option. I'm betting I only need to change an option. Anyone want to take a guess? ![]() OH and I get an email that reads: PayPal IPN Invalid Process However the order is processed. Thank you, ~eDee |
|
#4
| ||||
| ||||
| Do not create multiple posts on the same topic. Merged. Also, you keep posting to the wrong forum. This is a paypal module issue, so it belongs in the paypal forum, not the general osCMax forum. Moved. Next, are you in live or testing mode? If testing in the sandbox, try live...
__________________ Michael Sasek osCMax Developer
|
|
#5
| |||
| |||
| I am in live mode. I made purchase on my CC. Sandbox is impossible and I only want to set this up once. I have not set up where to have the page return in paypal, because I don’t know where it should return to. I was thinking there would be a page the confirmed the purchase on my side, but I don’t know where that would be. I know it needs to return form paypal somewhere on my site to take it out of inventory, but without a manual I can’t look that up. ~eDee |
|
#6
| ||||
| ||||
| No you do not need to set the return url. It is automatically sent with the paypal transaction from your store. There are instructions on how to set up paypal IPN here: osCommerce Documentation by OSCdox :: osCommerce and osCMax installation and users manual, discussion forums (phpWiki) osCommerce Documentation by OSCdox :: osCommerce and osCMax installation and users manual, discussion forums (phpWiki) Read over both and make sure you have it set up per the instructions. Once you have verified this, let us know if you are still getting the error.
__________________ Michael Sasek osCMax Developer
|
|
#7
| |||
| |||
| Sorry it has taken so long to get back to this, had a baby. I'm still lost. I printed the information and read it over, but still don't see my problem. I have gone into catalog/includes/modules/payment/paypal_ipn.php on line 521 And this is what I found. 518: $products_ordered_attributes . "\n"; 519: } 520: // Added Bugfix 157 521: $order_total_modules->apply_credit(); 522: 523: // lets start with the email confirmation 524: $email_order = STORE_NAME . "\n" . 525 EMAIL_SEPARATOR . "\n" . 526 EMAIL_TEXT_ORDER_NUMBER . ' ' . $order_id . "\n" . 527 EMAIL_TEXT_INVOICE_URL . ' ' . 528: tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . 529: $order_id, 'SSL', false) . "\n" . I have no idea where to start. I think it would help if I know what was suppose to happen next. When they click the "complete your order confirmation" what is suppose to happen? Should they be returned to my site or another part of the paypal site? Also, the directions look like they were written for 1.7, I'm using MAX 2.0. I think it's important to tell you I'm not using a SSL at this moment. Does that have anything to do with it? I am using my paypal account and not the sandbox. Didn't want to set it up twice. I started with a sandbox and gave up on it. I am assuming that won't be a problem if I just use my original paypal account. Account Type: Premier. I don't want to change that until I start making money. What should these be set too?: Set Preparing Order Status Preparing [PayPal IPN] Set PayPal Acknowledged Order Status Preparing [PayPal IPN] I can't think of anything else to tell you. This is the LAST thing I have to do before going live. Can anyone help me? ~eDee Last edited by justedee; 07-08-2007 at 10:42 AM. |
|
#8
| ||||
| ||||
| I believe this was resolved in the bugtracker. Your exact error is discussed there and resolved. First you need to make sure the following is set: Per this post Other Paypal Issues Quote:
Quote:
__________________ Michael Sasek osCMax Developer
|
|
#9
| |||
| |||
| UGH! It didn't work and I had such high hopes. However, the problem didn't change - which is good news. I'd hate to trade one for another. First I went to catalog\checkout_process.php Is this correct (lines 50 - 70) // MOVED BELOW Authorizenet ADC // load the before_process function from the payment modules // $payment_modules->before_process(); require(DIR_WS_CLASSES . 'order_total.php'); $order_total_modules = new order_total; $order_totals = $order_total_modules->process(); // BOF: MOD - Authorizenet ADC Direct Connection // Make sure the /catalog/includes/class/order.php is included // and $order object is created before this!!! if(MODULE_PAYMENT_AUTHORIZENET_STATUS == "True") { include(DIR_WS_MODULES . 'authorizenet_direct.php'); } // EOF: MOD - Authorizenet ADC Direct Connection // load the before_process function from the payment modules // $payment_modules->before_process(); $sql_data_array = array('customers_id' => $customer_id, 'customers_name' => $order->customer['firstname'] . ' ' . $order->customer['lastname'], Here are lines 520-527 What is wrong with line 521 (well 520) that is causing this error? I didn't even have a paypal_ipn.php in payments on my website. So I made the changes and uploaded the file to modules\payments\ Now I have the file there. Lines 424 - 432 global $customer_id, $order, $sendto, $billto, $payment, $languages_id, $currencies, $cart, $cart_PayPal_IPN_ID; global $$payment; // include(DIR_WS_CLASSES . 'order_total.php'); // $order_total_modules = new order_total; // $order_totals = $order_total_modules->process(); $order_id = substr($cart_PayPal_IPN_ID, strpos($cart_PayPal_IPN_ID, '-')+1); However, those changes had already been made and this time the file was on my server, but I uploaded it anyway. In Paypal, I've turned Instant Payment Notification (IPN) On Instant Payment Notification (IPN) URL: on and off and still it doesn't work. Does anyone know which it should be set at? I did get an email telling me of payment and the customer (also me but a different email address) received an email telling them the payment went through and it is in orders. But I still get the error email and the customer still gets the 521 error. Any other ideas? ~eDee Last edited by justedee; 07-11-2007 at 01:05 PM. |
|
#10
| ||||
| ||||
| I am also getting this message and I can't really see a way around it. I've been using PayPal IPN for some time and I've just noticed that if you want your stock to be subtracted the customer needs to click back through to your site. I assumed, ok that was my bad, that this was taken care of when PayPal sent the IPN confirmation back to the server, but alas not. So regardless of if IPN updates the status of the order, we need to encourage the customer to click back through after paying for their items (with no error) to make sure the stock levels don't go crazy I will be investigating this problem today to see if I can find the solution. As its not immediately apparent. I've also noticed that the PayPal stock update doesn't support per-attribute stock levels. |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PayPal IPN in RC3 - values not being passed to PayPal? | SavageSinister | osCMax v2 Installation issues | 3 | 02-12-2007 02:57 PM |
| errors i have. | inversechi | osCMax v2 Customization/Mods | 1 | 05-07-2006 11:51 AM |
| errors | litotes | osCommerce 2.2 Modification Help | 1 | 11-07-2003 08:25 PM |
| Errors when clicking on Paypal IPN | Transactions | swalker2000 | osCommerce 2.2 Installation Help | 1 | 09-18-2003 05:29 PM |
| paypal and paypal IPN, whats the diff? | lhotch | osCommerce 2.2 Installation Help | 1 | 09-06-2003 06:34 PM |