osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Major Meltdown/Reconstruction - several small issues

This is a discussion on Major Meltdown/Reconstruction - several small issues within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; Michael, I am having a problem here.. My friend/client site was completely lost.. the server he was on had a ...



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Welcome to osCMax Join osCMax Now! Download osCMax Here
Reply

 

LinkBack Thread Tools
  #1  
Old 01-13-2009, 07:26 PM
wkdwich's Avatar
Member
 
Join Date: Jul 2007
Posts: 72
Thanks: 4
Thanked 0 Times in 0 Posts
Rep Power: 2
wkdwich is on a distinguished road
Post Invalid IPN issue

Michael, I am having a problem here.. My friend/client site was completely lost.. the server he was on had a catastrophic failure with no chance at recovery.. I recreated his site on another server yesterday.. I had a huge issue with the register_globals, but finally found all the right fixes and he's back in business except for the payment.. The new host refuses to turn register_globals ON

Running osCMAX_RC3_0_2 -- mildly tweaked, on a UNIX box, php5.2.5, cPanel, sql 5.0.67-community

I've tried several paypal_ipn versions and while some work better than others, it's still not right..

At this point I have this version:
$Id: paypal_ipn.php,v 2.1.0.0 13/01/2007 16:30:28 Edith Karnitsch Exp $
Copyright (c) 2004 osCommerce
Released under the GNU General Public License

Original Authors: Harald Ponce de Leon, Mark Evans
Updates by PandA.nl, Navyhost, Zoeticlight, David, gravyface, AlexStudio, windfjf and Terra


and made this fix I found:
Code:
     // if (tep_session_is_registered('cartID')) {
  // PandA.nl: register_globals fix
     if (array_key_exists('cartID', $_SESSION)) {
        $insert_order = false;
The payment is made, I am no longer getting the function apply_credit error when clicking returning to merchant from the paypal payment screen and am returned to the store, showing the order is completed. The items are no longer showing in the cart on the customer side. The customer gets the payment conf email which looks quite normal.

On the admin side, the order is there, the notation shows:
01/13/2009 18:20:42XPreparing [PayPal IPN]
so the response communication never happened after the payment was completed back to the store. The merchant used to get an Order Process mail, but now is getting 2 emails: Payment confirmation and Paypal IPN Invalid Process mail

The payment confirmation to the merchant shows the store name in the Item/Product Name: section - no order number anywhere that I can see and the order number is not in the Invalid Process mail either.
Here is the entire (edited) Invalid process mail
Code:
$_POST:



mc_gross=22.90

protection_eligibility=Eligible

address_status=confirmed

payer_id=C72X8PUQR76GE

tax=0.00

address_street=1843 Main Ave

payment_date=18:21:05 Jan 13, 2009 PST

payment_status=Completed

charset=windows-1252

address_zip=11779

first_name=Debbie

mc_fee=0.87

address_country_code=US

address_name=Debbie's company name

notify_version=2.6

custom=1683

payer_status=verified

business=[merchant email address]

address_country=United States

address_city=[customer city]

quantity=1

verify_sign=A--8MSCLabuvN8L.-MHjxC9uypBtA3mdzPP5lBYz7Y-cX865UIYZOiRe

payer_email=[customer email]

txn_id=01H51490G1625612Y

payment_type=instant

payer_business_name=Debbie's business name

last_name=Debbie's last name

address_state=NY

receiver_email=[merchant email]

payment_fee=0.87

receiver_id=TM59LCUS7T3YA

txn_type=web_accept

item_name=[Store name]

mc_currency=USD

item_number=

residence_country=US

handling_amount=0.00

transaction_subject=1683

payment_gross=22.90

shipping=0.00



$_GET:
now I added another fix:
Code:
Find in catalog/includes/modules/payment/paypal_ipn.php 


tep_session_register('cart_PayPal_IPN_ID');
// Terra register globals fix
//$_SESSION['cart_PayPal_IPN_ID'] = $cartID . '-' . $insert_id;


Replace with 

// FS start
$GLOBALS['cart_PayPal_IPN_ID'] = $cartID . '-' . $insert_id;
// FS stop 
tep_session_register('cart_PayPal_IPN_ID');
// FS start
// Terra register globals fix
//$_SESSION['cart_PayPal_IPN_ID'] = $cartID . '-' . $insert_id;
// FS stop

The problem : $cart_PayPal_IPN_ID was not always a global (e.g. between functions confirmation and process_button.
and when I clicked confirm order, at the paypal screen I was told this order has already been paid -- oops thats right because we lost about 200 orders.. so I changed the setting temorarily in his paypal account and again I was successfully taken back to the cart with a sucessful payment

This time the cart had some communication:
01/13/2009 20:01:37XPendingPayPal IPN Invalid [Completed]
The merchant received again 2 emails, the payment mail which now shows both the order number and the store name yippee.. but still no order process mail.. again he received PayPal IPN Invlaid Process mail.. good thing is this also shows the order ID in it..

So where do I go with this now?? Find another host that either still runs an earier php version or one that will allow the register_globals ON ?? Or is ther yet another version or tweak I am missing here??
__________________
Debbie D
NY & VA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 01-13-2009, 08:41 PM
wkdwich's Avatar
Member
 
Join Date: Jul 2007
Posts: 72
Thanks: 4
Thanked 0 Times in 0 Posts
Rep Power: 2
wkdwich is on a distinguished road
Default Re: Credit Class & Gift Voucher

just another quick comment.. the merchanet went into PayPal just now to refund my test payments.. I know for a fact that PayPal shoud also note that on the order.. but again there was no communication
__________________
Debbie D
NY & VA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 01-13-2009, 08:43 PM
wkdwich's Avatar
Member
 
Join Date: Jul 2007
Posts: 72
Thanks: 4
Thanked 0 Times in 0 Posts
Rep Power: 2
wkdwich is on a distinguished road
Default Major Meltdown/Reconstruction - several small issues

My friend's hosting server had a catastrophic melt down over the weekend, 175 sites GONE.. his store had over 1500 customers and 4000+ products, 3000+ orders in the history.. He thankfully had a backup, unfortunately it was from Nov.. but any backup is better than none right??

The host I put him on is running a UNIX box, php5.2.5, cPanel, sql 5.0.67-community. I had a hard time with the register_globals issue, the hosting people refused to turn it on.. but I did get almost everything working right now with the fixes I found. This particualr cart is in the public_html/ directory not in public_html/catalog

I have a few minor issues that I could use a hand with:

1. PayPal IPN is not returning an Order Process mail to the merchant, and not updating the order with the proper info.. I posted in another thread on this issue:
Credit Class & Gift Voucher

2. admin password change
When I go to the admin password change screen, click EDIT, enter the current password, click Confirm, I SHOUD get the 3 boxes to enter the existing, and new (2x's) passwords, but I don't.. the message says: All fields are required. Click save to submit. and I get a button that says BACK, and all I see if my account info.

3. click to view larger images
I'm not new to oscmax, mange 4 instances for myself and others.. none of them have the need for extra images and I have gotten each to display the click to view larger images link in the product descriptions.. I have played with every combination of setting in the MoPics section for this cart and still no link to view the larger image. All the images are in the /images/ folder, none in any folders below that. Could this be because I have this store set up in the root???

Thats it.. just 3 small issues.. any help would be appreciated..
__________________
Debbie D
NY & VA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 01-13-2009, 10:22 PM
Active Member
 
Join Date: Sep 2008
Location: holland
Posts: 145
Thanks: 4
Thanked 8 Times in 8 Posts
Rep Power: 1
nostradamus will become famous soon enough
Default Re: Major Meltdown/Reconstruction - several small issues

Quote:
Originally Posted by wkdwich View Post
3. click to view larger images
I'm not new to oscmax, mange 4 instances for myself and others.. none of them have the need for extra images and I have gotten each to display the click to view larger images link in the product descriptions.. I have played with every combination of setting in the MoPics section for this cart and still no link to view the larger image. All the images are in the /images/ folder, none in any folders below that. Could this be because I have this store set up in the root???
you need to put the images in de folders tumbs and images_big
__________________
The seven signs that tell of the coming Armageddon


1. A decline in the strength of the three major religions. check
2. Revolutions and internal turmoil in nations around the world. check
3. War and the rumors of war check
4. Famine check
5. Pollution of the earth dubbel check
6. Earthquakes
7.The coming of plagues and diseases.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 01-14-2009, 02:13 PM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 2,438
Thanks: 8
Thanked 172 Times in 158 Posts
Rep Power: 17
jpf is a splendid one to beholdjpf is a splendid one to beholdjpf is a splendid one to beholdjpf is a splendid one to beholdjpf is a splendid one to beholdjpf is a splendid one to beholdjpf is a splendid one to beholdjpf is a splendid one to behold
Default Re: Major Meltdown/Reconstruction - several small issues

Register global - Solutions

A) - Installed register globals=off fix. (Several - use forum search function)
B) - Install osCMax SVN which is compatible.
C) - move host to a respectable host - like AABOX...
__________________
JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 01-14-2009, 05:05 PM
wkdwich's Avatar
Member
 
Join Date: Jul 2007
Posts: 72
Thanks: 4
Thanked 0 Times in 0 Posts
Rep Power: 2
wkdwich is on a distinguished road
Default Re: Major Meltdown/Reconstruction - several small issues

I may have to consider the AAbox hosting.. I would put this guy on my own server but he has a considerable amount of traffic
__________________
Debbie D
NY & VA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Various small problems, well sort of small spottedhaggis osCMax v2 Installation issues 2 03-23-2006 08:53 AM
paypal website payment pro Major problem!!! HELP!!! acurals7 osCMax v2 Features Discussion 0 02-09-2006 08:40 PM
Major installation problems. Please help! Magician742 osCommerce 2.2 Installation Help 4 12-16-2005 02:25 AM
Major problem, help requried!!!! moreduff osCMax v1.7 Discussion 3 08-02-2005 07:02 AM
MAJOR BUG! PDF Virtual Download File Gets Corrupt! In-Overtime osCMax v1.7 Discussion 4 05-15-2004 04:49 AM


All times are GMT -8. The time now is 04:00 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax