When I visit https://www.energysavingwarehouse.co.uk/store/payment/cc_realex_redirect.php
a 302
redirect bounces me to ../
. This is probably because I'm doing a GET
rather than a POST
and there's no POST
fields.
If you've upgraded to a newer version of PHP, it's possible that the configuration has changed and the code is no longer finding all the POST
fields - previously $HTTP_POST_VARS[]
was OK, but now you should use $_POST[]
, and sometimes PHP can be configured to automatically create new variables for each POST
field - e.g. name=Owen
automatically creates a variable $name
with the value Owen
. In particular, the register_globals
option was removed completely in 5.4.0 and you now need to explicitly declare variables in some situations where you didn't before (See http://php.net/manual/en/security.globals.php).
Can you check the code in cc_realex_redirect.php
to see what scenarios trigger the 302
redirect? This should look like:
header('Location: ../');
Then add some logging to ensure that all the POST
data is being picked up correctly. This should lead you to the solution.