Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sudden problem with config file


webmire

Recommended Posts

I have recently (the last week) been having issues with my osCommerce catalog links all going to the wrong plance. Tech support at my server (ipowerweb.com) says that it is an issue in the configure.pnp file. Since I haven't touched that file in months and everything has always worked fine with it.....I can't understand that it could be an issue with the file.

 

The file paths are defined as:

 

define('HTTP_SERVER', 'http://www.My_Domain.com');

define('HTTPS_SERVER', 'https://host#.Server.com');

define('HTTP_COOKIE_DOMAIN', 'My_Domain.com');

define('HTTPS_COOKIE_DOMAIN', 'host#.Server.com/~My_Directory');

define('HTTP_COOKIE_PATH', '/~My_Directory/osCommerce/catalog/');

define('HTTPS_COOKIE_PATH', '/~My_Directory/osCommerce/catalog/');

define('DIR_WS_HTTP_CATALOG', '/~My_Directory/osCommerce/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/~My_Directory/osCommerce/catalog/');

 

Does anyone see anytning wrong with these paths?

Right now, I am getting 404 (page not found) error messages if any of the links to products from the initial front page of the catalog are clicked. The front page loads fine, but instead of calling to the correct path on the https server, it is calling to the http server with this path: http://www.My_Domain.com/~My_Directory/osC...g/..............

 

Any ideas or suggestions? And any ideas why there would suddenly have been a change that caused this issue? Thanks for any help you can give me on this.

Link to comment
Share on other sites

Well, this is wrong:

define('HTTPS_COOKIE_DOMAIN', 'host#.Server.com/~My_Directory');

It should be:

define('HTTPS_COOKIE_DOMAIN', 'host#.Server.com');

But that's not your problem. The fake link you provided as being wrong looks ok to me. Links to product pages are always done as http even from https pages.

 

What's the real URL?

Link to comment
Share on other sites

Well, this is wrong:

define('HTTPS_COOKIE_DOMAIN', 'host#.Server.com/~My_Directory');

It should be:

define('HTTPS_COOKIE_DOMAIN', 'host#.Server.com');

But that's not your problem. The fake link you provided as being wrong looks ok to me. Links to product pages are always done as http even from https pages.

 

What's the real URL?

 

OK, thanks...I was wondering about that Cookie Domain code....but it was like that from the time I set it up and seemed to work.

 

The url for the catalog is:

https://host440.ipowerweb.com/~russosta/osC...talog/index.php

 

Then when you click on a link you get this url:

http://www.russostackshack.com/~russosta/o...1&osCsid=.......

 

I just really don't know what changed to make this link change in the config file? I am frustrated with this server...this is not the only thing that has happened. It all started with the Adim tools page not being accessable, then once they fixed that, now the catalog links don't work. :rolleyes:

Link to comment
Share on other sites

Help me understand what you want. Do you want your entire catalog to be accessed using the https URL and not your domain at all? That would be very unusual and not recommended.

 

I think what you want is this:

define('DIR_WS_HTTP_CATALOG', '/osCommerce/catalog/');

 

I can't imagine that this "suddenly" stopped working, unless someone went in and edited your configure.php without your knowledge.

 

As for the HTTPS_COOKIE_DOMAIN, yes, it would seem to work as long as it was different from HTTP_COOKIE_DOMAIN, but properly set it may help to remove the session ID from secure URLs once the customer is in the checkout process.

Link to comment
Share on other sites

Help me understand what you want. Do you want your entire catalog to be accessed using the https URL and not your domain at all? That would be very unusual and not recommended.

I just want the catalog to be accessable again! :(

 

This is my first experience with a php shopping program and I am really lost with all the underlying workings. Since I never altered this file manually regarding these lines of code, I am guessing that when I set it up, that it automatically assigned the paths based on the info it gets from the server? But, I have no idea.

 

I think what you want is this:

define('DIR_WS_HTTP_CATALOG', '/osCommerce/catalog/');

Oh thank you so much.....this did the trick! Duh, I don't know why I didn't see that. :)

 

I can't imagine that this "suddenly" stopped working, unless someone went in and edited your configure.php without your knowledge.

I am the only one with access. I highly suspect that the server admin makes some sort of changes regularly. Everytime they do, it seems that something doesn't work. Then they blame it on me....when I know I have made no changes. So far, even though things are "my problem", they have fixed everything...except this. And the info they were giving me was to keep repeating what the https server path was. :angry:

 

As for the HTTPS_COOKIE_DOMAIN, yes, it would seem to work as long as it was different from HTTP_COOKIE_DOMAIN, but properly set it may help to remove the session ID from secure URLs once the customer is in the checkout process.

OK....good to know. I will do this also.

 

Thanks so much you have made my day! :)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...