Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Default langauge problem in Admin


architect

Recommended Posts

Posted

I have a site which needs to be in French, English is only required in the admin side.

 

I installed OSC in English and then downloaded and installed the French langauge pack, everything fine so far, both English and French work fine on both shop and admin.

 

I then set default langauge to be French and removed English from the language list in admin and things have gone pear shaped! The shop side is fine but the admin side produces the following error when I try to login:

 

Warning: main(includes/languages/french.php): failed to open stream: No such file or directory in /home/loirbait/public_html/admin/includes/application_top.php on line 132

 

Fatal error: main(): Failed opening required 'includes/languages/french.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/loirbait/public_html/admin/includes/application_top.php on line 132

 

 

Line 132 is:

 

require(DIR_WS_LANGUAGES . $language . '.php');

 

The required files are in the correct place!

 

If I comment this line out, then I can get into Admin - albeit without the boxes but it works, I added English back and set it as the default language, restored line 132 and now the admin side works properly.

 

Can anyone suggest what I have missed, do I need to set the default languge somewhere else?

 

Can I just remove the language selection box from the shop side and leave everything else?

 

Any ideas and suggestions welcomed.

 

Thanks

Posted

You'd have to disable Browser Detection in osCommerce (can't remember where it is offhand). What's probably happening is that your Browsers' default language is English and so osCommerce is trying to serve up English for your Browser but can't find it. Try switching your Browser's default language to French and see if you still get the error.

 

Vger

Posted

Thanks Vger,

 

It wasn't language detection in OSC (which I can't find) or in the browser.

 

But your advice did make me look closely at the contents of the directory and as soon as I looked I realised that I had made a fundamental mistake!

 

I worked on the site on my local server and when I FTP'd to the online server, I managed to miss copying the contents of the admin/includes/languages/french dircetory!

 

Thanks for the help - stoke the cat for me!!

Archived

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

×
×
  • Create New...