Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

standard_ipn.php fails with mysql 2013 error


sgoodwin

Recommended Posts

I'm trying to use paypal ipn. I've tried 2.2.3 as well as paypal standard 1.0. The orders don't get updated to the pending status after the payment is successfully made. When I tried to run the IPN script (catalog/ext/modules/payment/paypal/standard_ipn.php) from a browser window, it fails with this error:

 

 

2013 - Lost connection to MySQL server during query

 

select count(*) as total from sessions where sesskey = '59f6308791b09b88ee14d6864a2843b0'

 

[TEP STOP]

 

2006 - MySQL server has gone away

 

select count(*) as total from sessions where sesskey = '59f6308791b09b88ee14d6864a2843b0'

 

[TEP STOP]

 

 

Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0

 

 

 

Any ideas what the issue is? Your assistance would be greatly appreciated.

 

Steve

Link to comment
Share on other sites

Tables checked out OK.

 

The problem turned out to be application_top.php.

 

I took out application_top.php, and took the the following code from application_top and added it directly into standard_paypal.php:

 

require('includes/configure.php');

require(DIR_WS_INCLUDES . 'filenames.php');

require(DIR_WS_INCLUDES . 'database_tables.php');

require(DIR_WS_FUNCTIONS . 'general.php');

require(DIR_WS_FUNCTIONS . 'html_output.php');

require(DIR_WS_FUNCTIONS . 'database.php');

 

I replaced the call to tep_mail (about line 185) with a native mail() call.

 

It works now. I'm a bit mystified as to how anyone can use the standard script without these changes.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...