Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Transaction INSECURE??


Recommended Posts



We just migrated to a new web hosting company. Copied everything exactly. And now the only problem we get is that on SUCCESSFUL checkout, we get THIS error message:


WARNING:This transaction was INSECURE 
Warning: Cannot modify header information - headers already sent by (output started at /home/mydomain/public_html/store/epayment.php:29) in /home/mydomain/public_html/store/eway_payment.php on line 59


We're using the eway payment gateway contribution, but I'm trying to find out what could be causing this?


We're SSL protected, and the transaction is successful when we get this error.


So we're going to scare a lot of customers unnecessarily.


Please help!!



Link to comment
Share on other sites

For the time being you could turn of the display of warnings in the php.ini.

Other great Open Source (Free) programs: (Free as in free speech not free beer)

The Gimp - An image program. | Firefox - All you have to do is add the Web Developer add-on to make this web browser complete. | FileZilla - An ftp program. | Inkscape - A good program to create images with. | Thunderbird - An email program. | Openoffice.org - An office suite that is compatible with MS Office. | Abiword - Another office suite. | Audacity - A sound recording tool. | ddp's Picks | Wordpress - An easy to use blogging software. | Joomla - An easy to use CMS that has ecommerce plug-ins. | Drupal - Another CMS

How do I find these programs? Google Search!

Link to comment
Share on other sites



Taking away display warnings doesn't work. I still get the first warning message, as it's a value returned by the code. PLEASE HELP!


I've narrowed the problem somewhat.


The main problem is that first line "WARNING:This transaction was INSECURE" (I think that's what's kicking up the next error). When I go to line 29 in epayment.php, it says:


 /* Warn if we're running on what seems to be an insecure port */
if ($SERVER_PORT != "443") {
 print "<FONT COLOR=RED><B>WARNING:</B></FONT>This transaction was <b>INSECURE</b>\n";


Now, if I comment this out, then the transaction can be successful according to osCommerce. (Thank-you email, etc.) But the order does NOT get processed by the payment gateway. (So, while it's successful, we didn't actually get payment!


So it looks like the payment gateway needs the info sent a certain way. But I don't understand why it's not doing it correctly? It did everything fine on the other server (previous web hosting company).


Please help with any ideas, thoughts, pointers, suggestions..... ANYTHING....



Link to comment
Share on other sites

  • 4 months later...

I had this problem too...


I found that the variable $SERVER_PORT was never being assigned a value so NEVER = "443"



in epayment.php at around Line 29


if ($SERVER_PORT != "443") {

print "<FONT COLOR=RED><B>WARNING:</B></FONT> Server port <b>INSECURE</b>\n";





if (getenv('SERVER_PORT') != "443") {

print "<FONT COLOR=RED><B>WARNING:</B></FONT> Server port <b>INSECURE</b>\n";


Link to comment
Share on other sites


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

  • Create New...