Osclass Support Forums

General osclass questions => Report bug => Topic started by: Luka93 on December 27, 2020, 04:51:23 PM

Title: Error 500 after trying to upload new language
Post by: Luka93 on December 27, 2020, 04:51:23 PM
Hello all!

I have a weird problem with trying to add new language - I am running the last version of osclass. I have multiple languages uploaded in oc-content/languages, but only en_EN (English) is available on the backend to chose from.

After I tried to add (upload) new language via admin/oc-admin/index.php? The Page = language site gives me Error 500 every time (I tested it on two different sites).

I tried to create the same situation on useless demo backend, but uploading languages are now allowed on demo.

Does anybody else have the same problem?

Thanks in advance.
Title: Re: Error 500 after trying to upload new language
Post by: MB Themes on December 27, 2020, 05:39:08 PM
Enable error reporting and send error you are getting
Title: Re: Error 500 after trying to upload new language
Post by: Luka93 on December 27, 2020, 07:32:38 PM
Hello, thanks for your answer.

I managed to find problem. When I created new language I forgot to change this in index.php

function locale_en_EN_info() {

to

function locale_sl_SI_info() {

which gave me error 500 when I tried to upload any language.