Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

John W

♥Ambassador
  • Posts

    963
  • Joined

  • Last visited

  • Days Won

    18

Everything posted by John W

  1. I know this is an old thread, but I don't have as much experience with Paypal. Do you have IPN and PDT enabled? I was having failed transactions sometimes and now I'm getting duplicate transactions with duplicate payments. Should I enable PDT too? I'm using Paypla Standard.
  2. I'm getting duplicate orders on almost every paypal order lately. I'm getting paid twice too. Most people aren't aware it's happening, but I've had 4 in a row. For a while I was having orders fail, but now, two at a time. Anyone else have this problem?
  3. Hey @burt I remember when you were working on that, so in an effort to keep my memory sharp, I found the thread where you talked about. I don't think you have a link to it but maybe the timeline will help you out. I think this is the same time.
  4. @burt that sentence cracked me up. Sounds like you're getting older and more forgetful, or maybe just sooooo many modules over time. I find myself wondering sometimes "why did I make that change and when did I do it?" . So far, when it comes to aging, I'm not a fan.
  5. I wish I could help you more with this, but I'm sorry I don't have the answer. However, when you find the answer, please post so we can learn.
  6. When I run the two test below after getRates I get true for is_array and false for is_object var_dump(is_array($response->RateReplyDetails)); var_dump(is_object($response->RateReplyDetails)); You can use soem of these to see what's being returned by uncommenting them. It's best to have a test server. // var_dump(property_exists('fedexwebservices','RateReplyDetails')); // var_dump(null !== ('RateReplyDetails')); // var_dump(!empty($RateReplyDetails)); // var_dump(isset($response->RateReplyDetails)); // var_dump(is_array($response->RateReplyDetails)); // var_dump(is_object($response->RateReplyDetails)); // var_dump($response);
  7. Something has changed if this just stopped working. Maybe your host upgraded something. You can see in recent posts a soap error cause by an OpenSSL change. You can use the var_dump to output what's being returned so you can see it, but the line that it errors on isn't necessarily where the problem is. You can Google "Cannot use object of type stdClass" and get a lot of info on it as it's a php error.
  8. You have a problem somewhere else. I think you're not getting rates returned. Has this worked for you at all? Are you working on a test server? If you are working on a test server you can find this line $response = $client->getRates($request); and change it to this var_dump($request['RequestedShipment']['RequestedPackageLineItems']); $response = $client->getRates($request); var_dump($response); The first var_dump will show what you're sending and the second one will show you what they return. I have a bunch of those that I experimented with when I was trying to solve a problem.
  9. @Irin I've modified my file a lot, but you can try my change below. I used to receive notice level errors, but never a failure error on this, so you may have something else wrong causing a problem that just shows up here. Find starting around line 302 foreach ($response->RateReplyDetails as $rateReply) { if (array_key_exists($rateReply->ServiceType, $this->types) && ($method == '' || str_replace('_', '', $rateReply->ServiceType) == $method)) { if(MODULE_SHIPPING_FEDEX_WEB_SERVICES_RATES=='LIST') { foreach($rateReply->RatedShipmentDetails as $ShipmentRateDetail) { if($ShipmentRateDetail->ShipmentRateDetail->RateType=='PAYOR_LIST_PACKAGE') { $cost = $ShipmentRateDetail->ShipmentRateDetail->TotalNetCharge->Amount; $cost = (float)round(preg_replace('/[^0-9.]/', '', $cost), 2); } } } else { $cost = $rateReply->RatedShipmentDetails[0]->ShipmentRateDetail->TotalNetCharge->Amount; $cost = (float)round(preg_replace('/[^0-9.]/', '', $cost), 2); } if (in_array($rateReply->ServiceType, array('GROUND_HOME_DELIVERY', 'FEDEX_GROUND', 'INTERNATIONAL_GROUND'))) { // print_r($rateReply); $transitTime = ' (' . str_replace(array('_', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten', 'eleven', 'twelve', 'thirteen', 'fourteeen'), array(' ', 1,2,3,4,5,6,7,8,9,10,11,12,13,14), strtolower($rateReply->TransitTime)) . ')'; } $methods[] = array('id' => str_replace('_', '', $rateReply->ServiceType), 'title' => ucwords(strtolower(str_replace('_', ' ', $rateReply->ServiceType))) . $transitTime, 'cost' => $cost + (strpos($this->types[$rateReply->ServiceType]['handling_fee'], '%') ? ($cost * (float)$this->types[$rateReply->ServiceType]['handling_fee'] / 100) : (float)$this->types[$rateReply->ServiceType]['handling_fee'])); } } and change it to foreach ($response->RateReplyDetails as $rateReply) { if (in_array($rateReply->ServiceType, $this->types) && ($method == '' || str_replace('_', '', $rateReply->ServiceType) == $method)) { $cost = $rateReply->RatedShipmentDetails[0]->ShipmentRateDetail->TotalNetCharge->Amount; $cost = (float) round(preg_replace('/[^0-9.]/', '', $cost), 2); $methods[] = array('id' => str_replace('_', '', $rateReply->ServiceType), 'title' => ucwords(strtolower(str_replace('_', ' ', $rateReply->ServiceType))), 'cost' => $cost + $this->handling_fee); } }
  10. I'm getting spurts where I see the errors below in my site error log and at the same time failed transactions. The paypal log also shows unknow error. I manually upgraded to 5.018 months ago. Most of the time it works fine but I do get missed sales. The undefined variables and indexes vary. Does anyone have any ideas? [27-Aug-2017 10:47:34 America/New_York] PHP Notice: Undefined index: address_status in /home/username/public_html/includes/modules/payment/paypal_standard.php on line 869 [27-Aug-2017 10:47:34 America/New_York] PHP Notice: Undefined index: pending_reason in /home/username/public_html/includes/modules/payment/paypal_standard.php on line 872 [27-Aug-2017 14:53:34 America/New_York] PHP Notice: Undefined index: address_status in /home/username/public_html/includes/modules/payment/paypal_standard.php on line 869 [27-Aug-2017 14:53:34 America/New_York] PHP Notice: Undefined index: pending_reason in /home/username/public_html/includes/modules/payment/paypal_standard.php on line 872 [27-Aug-2017 14:53:34 America/New_York] PHP Notice: Undefined property: paypal_standard::$email_footer in /home/username/public_html/includes/modules/payment/paypal_standard.php on line 795 [27-Aug-2017 14:53:36 America/New_York] PHP Notice: Undefined index: pending_reason in /home/username/public_html/includes/modules/payment/paypal_standard.php on line 872 [29-Aug-2017 06:51:35 America/New_York] PHP Notice: Undefined variable: products_ordered_attributes in /home/username/public_html/ext/modules/payment/paypal/standard_ipn.php on line 150 [29-Aug-2017 06:51:35 America/New_York] PHP Notice: Undefined index: comments in /home/username/public_html/ext/modules/payment/paypal/standard_ipn.php on line 164 [29-Aug-2017 06:51:35 America/New_York] PHP Notice: Undefined property: paypal_standard::$email_footer in /home/username/public_html/ext/modules/payment/paypal/standard_ipn.php on line 190 [29-Aug-2017 06:51:35 America/New_York] PHP Warning: session_destroy(): Trying to destroy uninitialized session in /home/username/public_html/includes/functions/sessions.php on line 151
  11. No Dan, I missed that I was looking at unread posts and this one was in the list. I guess lucas must have dug this up.
  12. try changing it to this date_added datetime NOT NULL, or you can put a real date in for the default like below, but I would try the first one. date_added datetime DEFAULT '1970-01-01 00:00:01' NOT NULL,
  13. There is a soapfault error that can be coded in, and I think the sample code from Fedex has some code in it. @Roaddoctor I found some info on the Cpanel forums involbing libcurl problems on servers yesterday and there are some reporting problems wiht payment modules. One question for you. Do you know if your server accepts SSLv3? You can run your domain at https://www.ssllabs.com/ssltest/ and it will show you. From some of the threads I've read, that might be the problem. I only use TLS 1.0 and above, mainly using TLS1.2. SSLv3 should be dissabled.
  14. @Roaddoctor, thanks for sharing this info. It had me worried that many of us will be facing it, but i just searched my Cpanel update log and I have that curl update from yesterday morning too. Curl is also needed for many of the payment modules, so I wonder if anyone else is having effects from that upgrade. I know how stressful these things are, especially when they are out of your control. I'm glad they were able to get you up and running again.
  15. Hopefully, it's just corrupted and can be reinstalled. I'm running that same version on WHm/Cpanel 64 installed on 7-25. I also checked the cpanel forums because there's normally a lot of posts when something is broken and i didnn't find anything. I know how frustrating this is and hope it's resolved quickly.
  16. A SOAP problem seems like a good place to check.
  17. David, yes that is what i have. I haven't changed anything. However, the fedex site is having problems right now if you try to go to different pages. I checked their twitter account and they had issues yesterday, but not showing anythign today. You should should call their technical support number. I'm not having any issues at all with the standard WSDL9.
  18. The fedex site seems to be having problems though. Redirection errors, 404s and such.
  19. My test site on my local machine is working fine with Fedex too. I'm using WSDL9 on both sites.
  20. That announcement says Jan 2018. There's a gateway at the end of Wsdl9, but mine is working fine, so I don't think that is it. Maybe you are having a connectivity issiue to Fedex but my server is in Houston. I know you're in TX, but I don't know where your server is. Maybe call fedex and ask if they're having problems. That happened a few years ago with A.net for about an hour when a line was cut.
  21. I got page not found when I clicked your link. What does it say?
  22. I just checked my site and I'm getting normal quotes quickly. If you are getting a 500 level error on your site, then look at your error log for more detail. In the past whenever I've had an error from Fedex it just doesn't return a quote. I've never had a 500 error on the site from it. You might want to verify all your files to make sure none have become corrupted or such.
  23. Actually, I thought about this some more and you have to convert to a unix time stamp something like this. I was just playing around with this when you posted. $secondsSessions = 30*86400; $today_minus_30 = (time()-(int)$secondsSessions); // Unix timestamp 30 days ago tep_db_query("delete from sessions where expiry < '" . $today_minus_30 . "'");
  24. Hi Jack, I have a question after looking through this. You have a statement to delete sessions older than a month. The code I see is tep_db_query("delete from sessions where expiry > '" . $secondsSessions . "'"); //clear the sessions table of entries greater than time in the settings But should it be "<" instead of ">"? Because, the higher number is more current and the lower number is older. Where 1501683562 is Wednesday 2nd August 2017 02:19:22 PM UTC And 1495000000 is Wednesday 17th May 2017 05:46:40 AM UTC Am I wrong in my thought?
  25. Using FB this time I got " Data incomplete - social login aborted. Please choose another login method. " However, I had deleted the app on FB yesterday after it worked. So, I have my account info on your test site unless you deleted it, but not the matching FB app. I'll be AFK this weekend, so I won't check until Sunday night.
×
×
  • Create New...