Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error after checkout success


Guest

Recommended Posts

Orders are placed fine.. but once you click continue after checkout_success.php I get the following error:

 

BAD REQUEST

 

with this in the url:

 

https://www.website.com/index.php?action=notify&notify[]=

 

I've checked checkout_success.php and compaired it to other sites that work, and everything looks ok.

 

Here's a chunk of code that MAY be the problem, but I don't know.. it's about line 20 from checkout_success.php:

 

  if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'update')) {
$notify_string = 'action=notify&';
$notify = $HTTP_POST_VARS['notify'];
if (!is_array($notify)) $notify = array($notify);
for ($i=0, $n=sizeof($notify); $i<$n; $i++) {
  $notify_string .= 'notify[]=' . $notify[$i] . '&';
}
if (strlen($notify_string) > 0) $notify_string = substr($notify_string, 0, -1);

tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string));
 }

 

Any suggestions would be great! THANKS!

 

-Jrock

Link to comment
Share on other sites

  • 1 month later...
One last try...

 

Don't feel too alone - I have the same problem as well and no answers. I hope that you resolved it on your end. If you did, please pass it along!

 

Otherwise, I'll have to hack it out myself...as usual!

 

If I get it resolved, I'll post back here for someone else down the line.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...