Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Blank response from checkout_process.php


robertvawter

Recommended Posts

Posted

I'm helping out a friend with an osCommerce 2.3.1 site that has been running without any problems for quite some time up until last week.

 

Here's what I see happening:

- Put together and order and go through the checkout process

- Confirmation email is sent

- Credit card is charged

- An empty response is returned from checkout_process.php

- The order does not appear in the administration side

 

So customers are being charged money with no record of the order in the DB.

 

Configuration:

- osc 2.3.1 + QTPro

- authorize.net credit card AIM v1.0 with API v3.1

- php 5.3.3

 

There are no obvious error messages in the apache, php, or system logs. What else could or should I be looking for?

Posted

checkout_process.php should not return anything at all. It should redirect to checkout_success.php or back to another part of the checkout if there is an error. If you're getting an actual response from checkout_process.php, you have an error on that page that is sending an output to the browser. My guess would be whitespace before the <?php or after the ?>. If that's not it, check for changes to the code that would cause an output.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Posted

@@kymation, thanks for the reply, but the site hasn't been modified since October according to the mtimes on the php files. The thing that's most bedeviling about this is the total lack of diagnostic messages to at least tell me where to start looking.

Posted

Change this line in includes/application_top.php

 

error_reporting(E_ALL & ~E_NOTICE);

 

to

 

error_reporting(E_ALL & ~E_STRICT);

 

See if you get any error messages.

 

Once you have finished testing be sure to return the file to how it was as customers will see the error messages as well.

REMEMBER BACKUP, BACKUP AND BACKUP

Posted

Ask your host if they have made any upgrades recently. A PHP upgrade can have this effect in some cases. Usually not for stock osC 2.3.1, but possibly with the changes you made it could happen. PHP 5.3.3 breaks some older code.

 

If that's not it, check the .htaccess file in the root for append or prepend commands.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Archived

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

×
×
  • Create New...