Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Language Pack Problem


rhercules

Recommended Posts

Hi,

 

I have dowload and upload the portugues package. When i change it apears this message:

HTTP 500 error​

 

Now i cant enter in the admin anymore. What can i do ? I just put the package in the same dir as english.

I use ubuntu server and apache.

 

Best Regards

Link to comment
Share on other sites

The first thing I'd check is whether your language pack files (all .php, I think) were downloaded and uploaded correctly -- you didn't transfer them in binary or something. If you use your hosting file manager to browse the files, they should be correctly broken into lines and not all run together. In short, they should look much like all the other .php files. If they don't, erase them and try transferring them again.

 

If they appear to be OK, check for blank lines before the first <?php or after the last ?>. Remove the blank/empty lines and save the files. Check that you didn't introduce any Byte Order Marks in the files, if you end up editing them.

Link to comment
Share on other sites

Well i have look for the file and it apears like the english one. Everything looks fine. But then HTTP 500 error. I now se that we need files in Admin/includes/language and in include/language. Do i need to put the same on both dir ? What i have to do here ?

 

Regards

Link to comment
Share on other sites

The language files that go in includes/languages/ and admin/includes/languages/ will be different, so don't mix them up. Compare the English versions to see what's different, and then check that the Portuguese versions have the save defined names (obviously the text will be a different language).

 

Did your host make any changes at about the same time that you installed the new language files? If they updated PHP or the server itself, that might be why you're getting 500 errors (could be due to disallowed php_value, php_flag, Options, etc.). For the PHP files themselves, any blank or empty lines before the first <?php or after the last ?> can cause a 500 error. This includes lines with only a carriage-return (empty line).

 

Find out everything that has changed on your server and site since the last time it was running correctly. What osC version are you running?

Link to comment
Share on other sites

If you put 'admin' and 'catalog' files into the same directory, that would certainly cause problems. However, I don't think that will cause a 500 error. Did you edit any of the language files, perhaps leaving a blank or empty line before the first <?php or after the last ?> ? If after fixing those, you still get the error, here is a list of things that can cause 500 errors: http://www.catskilltech.com/freeSW/SMF/faqs/index.html#err500-- go through the list and see if anything there fixes your problem.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...