Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Coding Error-configure Files-ssl Implementation


CindyJP

Recommended Posts

Posted

Hi there,

 

So I made a really huge error…and was hoping for some guidance. I have been trying to set up a shared SSL certificate for a friends’ OS site. And I have found many posts here on the forum with tips and suggestions. (Much appreciated by this code-newbie) I felt pretty confident I could follow the instructions on my own. However I have run into a problem with implementation.

 

The web host requires copying the folders you wish protected with the shared SSL into either a secure or secure-cgi-bin folder…then (if I’ve been reading these forum postings correct) I need to go back to the OS site and change the includes/configure folder to reflect the link to the HTTPS server (i.e. https://secure.securesite.com/mydomain.net) and change SSL to ‘true’……so far it sounded pretty simple….well this is where things went horribly wrong for this little copy/paste queen. I followed the above steps and the website wouldn’t work – got a 404 error. SO…I went through the process of changing everything back to start from scratch, but in the process I copy and pasted the PHP code back incorrectly. I believe what I’ve done is effectively changed the following 4 configure files…(catalog/configure…catalog/includes/configure…..admin/configure…..admin/includes/configure) none of these files have this bit of code:

 

checkout procedure?

define('HTTP_COOKIE_DOMAIN', '.mydomain.net');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '');

 

 

And at least one of them used to….in my notes this was the catalog/includes/configure…….but after 3 days of pulling my hair out I don’t really know anymore. I have the website partially back up thanks to a file restore function from the web host….but no items can be put in the cart AND no one can login or checkout…….

 

Can someone direct me as to where those cookie files should be so the cart and checkout features will work???

 

AND any tips as to what I may do for the SSL situation….I have seen many great posts here but somehow I am not implementing them or understanding them correctly.

 

MANY MANY THANKS FOR ANY HELP OR ADVICE!!!!!

 

:'(

Posted
in my notes this was the catalog/includes/configure

That's where I have similar lines... All except one...

 

This may be your problem, or at least part of it:

 

checkout procedure?

 

The above line is NOT a vaild bit of PHP code, to my knowlege.

 

Edit it so it reads like this:

 

//checkout procedure?

 

The "//" at the beginning of a PHP line of code tells PHP to treat the line as a "comment", and ignore the entire line.

 

See if that edit doesn't help things.

:)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
That's where I have similar lines... All except one...

 

This may be your problem, or at least part of it:

 

checkout procedure?

 

The above line is NOT a vaild bit of PHP code, to my knowlege.

 

Edit it so it reads like this:

 

//checkout procedure?

 

The "//" at the beginning of a PHP line of code tells PHP to treat the line as a "comment", and ignore the entire line.

 

See if that edit doesn't help things.

:)

Thanks, Jim! I will give that a try...but I know I'll still need to define the cookies somewhere. :o)

Posted

You can leave all the other lines in.

 

I just want you to temporarily comment out the erroneous one.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

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

×
×
  • Create New...