Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


nemike last won the day on October 15

nemike had the most liked content!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. nemike

    Help capturing data sent to Paypal

    Actually I found the code and fixed it and now all transactions that were failing are now working, for anyone else on old code like me here is the fix: edit includes/modules/payment/paypal.php inside the function "formFields" add a line after: $item_number = ''; for ($i=0; $i<sizeof($order->products); $i++) $item_number .= ' '.$order->products[$i]['name'].' ,'; $item_number = substr_replace($item_number,'',-2); This is the new line to add after: if( strlen($item_number) > 127 ) { $item_number = substr($item_number, 0, 124) . "..."; } That fixes the problem. Hope this helps someone. Mike
  2. nemike

    Help capturing data sent to Paypal

    Jack_mcs any idea where that fix might have been put? Is there a git repository with the code and a possible fix that I can look at? I can not upgrade as a completely new commerce site would have to be done. I am trying to find the code to fix this myself, if nothing else I was going to truncate the field and end it with ... Thanks, Mike
  3. nemike

    Help capturing data sent to Paypal

    Well I found the problem, but not sure how to fix it yet, will probably search around in the paypal code... The problem is the (for a lack of what to call it) purchase description can only by a max of 127 characters, but the we are sending the entire purchase list in that field and if the customer orders enough items it overflows that field and then paypal complains.
  4. Sorry if this is the wrong place to ask, please redirect me if there is a better place to ask for help. Occasionally we run into a customer who says they are seeing the "Things don't appear to be working at the moment. Please try again later" message from paypal once the transaction is handed off from our server to paypal. And the url has a code=BAD_INPUT_ERROR in it. I was able to get some information from the customer and have found that some combination of the items they are trying to purchase is causing this problem, but I can't seem to narrow it to only one item. I removed items until it started accepting the transaction but then just putting that same item in the cart alone did not trigger the problem. So I'm asking how I can capture (ie debug) what data is sent to paypal so I can determine if we have something weird going on in the data. Thanks, Mike
  5. Thanks Heatherbell, this looks promising, I will setup a site copy and a new server and try the migration out! Hopefully osCommerce 2.2-MS2 works with the migration...
  6. Oops I was in the wrong system window when I looked at the file includes/application_top.php, I was on the system I had stood up the latest version of osCommerce which I realize now it not really the latest version, I'd have to move to CE Phoenix. Here is the version from the running site: define('PROJECT_VERSION', 'osCommerce 2.2-MS2'); Mike
  7. oh WOW thanks Jack, the version in there says: define('PROJECT_VERSION', 'osCommerce Online Merchant v2.3'); Nowhere near as bad as I thought!!! So half as old as I though... I should explain I am completely new to any kind of commerce stuff, I'm helping out a shop owner who no nothing about his site, I'm a software engineer but my focus for 25 years was networking. So please bear with me if I stumble my way through this. I was fooled by the date string in the index.php, I would have thought on each release that all files would be updated to the current release date. I would assume there are security fixes that the site would benefit from by upgrading to the latest? The only payment types (modules) his site supports is paypal and check/money order.
  8. Hi, I read over the upgrade thread here in General Support and looked at the database migration and in general good information, but since I am dealing with an ANCIENT site that needs LOTS of loving, I thought I'd see what people suggested is a good approach to upgrading... Yes it's really 2003, index.php has the following: /* $Id: index.php,v 1.1 2003/06/11 17:37:59 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ So should I attempt to upgrade every version one at a time from 2003 to now? Or should I ??? I've at least upgraded the OS, php, mysql/mariadb and apache, I believe I will have to upgrade all of those again to get to all the way to present version. Thanks for any advise! Mike