Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PayPal notification called multiple times by mod_php


mhoennig

Recommended Posts

Posted

Dear osCommerce-Community,

 

A customer uses osCommerce and it mostly works fine. But when PayPal calls paypal_notify.php ONCE (by Apache log), it is actually executed up to 15 times. Dorry I have no idea where I can find the version number, but maybe this helps:

 

$Id: application_top.php,v 1.264 2003/02/17 16:37:52 hpdl Exp $

$Id: sessions.php,v 1.13 2003/02/11 01:31:02 hpdl Exp $

 

We are running osCommerce on a Debian GNU/Linux Woody with PHP 4.1.2 via mod_php in a Apache 1.3.26 on an Pentium III based SMP system.

 

If we exit the script before session_start() (called from tep_session_start()) is executed, it is only executed once. If tep_session_start() is executed, then the script will be called after it terminated, up to 14 more times again. There are no Apache log entries for these subsequent calls, thus we guess, mod_php for some strange reason calls it multiple times.

 

This way, the customer get's up to 15 payment notifications by email. We are thinking about a workaround by storing notified order numbers in an extra table, but a real solution would be better.

 

Does anybody have an idea?

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...