Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

oscomerce on share ssl


bigd41

Recommended Posts

Posted

Hello

I want to know somehting about oscomerce on a shared ssl. Should oscommerce be on a shared ssl or is that not good idea. I have shared ssl that is shared out wide an ran into problems. But should have have my clients setup that way or should they be on there on cet for legal stuff.

Posted

osCommerce works fine on most shared SSL setups. That's how my store runs. Of course, if you can get your own certificate that certainly looks better to the customer, but people seem used to having the SSL hostname different from the regular one.

 

If you use shared SSL, you cannot use the "Force Cookie Use" option (which I don't like anyway) and you have to take care to properly set up configure.php

Posted
osCommerce works fine on most shared SSL setups. That's how my store runs. Of course, if you can get your own certificate that certainly looks better to the customer, but people seem used to having the SSL hostname different from the regular one.

 

If you use shared SSL, you cannot use the "Force Cookie Use" option (which I don't like anyway) and you have to take care to properly set up configure.php

 

I've got a question related to this: I have turned off Force cookies on my Shared SSL site and now instead of being redirected to the cookies usage page I am redirected to an error page that prints the following code to the browser:

 

Warning: main() [function.main]: open_basedir restriction in effect. File(c:\php4\pear/includes/languages/.php) is not within the allowed path(s): (e:\sslroot) in e:\sslroot\h2olifestyle\shop\includes\application_top.php on line 287

 

Warning: main(includes/languages/.php) [function.main]: failed to create stream: Operation not permitted in e:\sslroot\h2olifestyle\shop\includes\application_top.php on line 287

 

Fatal error: main() [function.main]: Failed opening required 'includes/languages/.php' (include_path='.;c:\php4\pear') in e:\sslroot\h2olifestyle\shop\includes\application_top.php on line 287

 

My website is www.h2olifestyle.co.uk/shop Does anyone have any idea why this might be? I wondered whether it could be to do with file permissions but unfortunately the SSL sever is windows so I can't change the permissions with any ease. I am really struggling on this one any help would be really appreciated,

 

thanks

 

James

Posted

James, your problem is that the current language name is undefined. That is not an SSL issue. I have seen others with this problem but don't recall what the solution was. Make sure that in admin, localization, languages that there is a default language.

Posted

Thanks for your response stevel. It seems that english is selected as the default language in the admin side of things, so I am not sure that it is this. Could it be anything else?

 

Cheers

 

James

Posted

Well, your site is now showing a MySQL error, so you have bigger problems.

 

I did a search to see what I could find for earlier reports of this empty language issue. osC asks the user's browser what its language is and tries to match that to one of the defined languages.

 

You can try this and see if it helps. In includes/application_top.php, find this line at around line 280:

	$language = $lng->language['directory'];

Add this after that line:

if ($language == '') {
 $lng->set_language('en');
 $language = $lng->language['directory'];
 }

Archived

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

×
×
  • Create New...