[OJS 3.2.1.1] Issue in removing a language from OJS

I’m facing an issue concerned unchecked “Limba Română” language in settings. I tried to delete it from the administration of OJS, but it won’t work. I tried also to clear the data cache, but it doesn’t fix the issue. Hope I will find someone to help.
im using ojs 3.2.1.1
image

Hi @madjidbekai,

Can you describe what happens when you try to delete the language?

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

Hi @asmecher, thank you for replying
all languages that appear in the list I can uncheck them, but only “Limba Romana” I couldn’t, every time I click on the uncheck box the right mark couldn’t disappears even so the notification show that the language settings are changed, nothing happens only in this language that I found it checked from the first time I installed OJS.

Hi @madjidbekai,

Can you check in your PHP error log to see if anything relevant appears there?

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

@asmecher This is the last two errors that apear in the error log file
[10-Jul-2020 00:52:08 UTC] PHP Warning: Creating default object from empty value in /home/elacil23/public_html/cache/t_compile/00a0a0910209607cb33eb0fe6474f30ed7399ed7^52019e87b90081f2c6bfa717994d81ab7712dd1f_0.app.frontendcomponentssearchF.php on line 30

[10-Jul-2020 00:09:47 UTC] PHP Notice: Trying to access array offset on value of type null in /home/elacil23/public_html/lib/pkp/lib/vendor/wikimedia/less.php/lib/Less/Parser.php on line 1927

Hi @madjidbekai,

Can you look a little further back? Neither of those seem relevant. Alternately, check the log’s latest entry just before trying to disable the language, then check it again afterwards, and capture just the new entries.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

Hi @asmecher
This is what it show when unckeck the box of “limba romana”

Sans titre

The same errors in the last operation in error log file:

[10-Jul-2020 08:23:02 UTC] PHP Warning: Creating default object from empty value in /home/elacil23/public_html/cache/t_compile/00a0a0910209607cb33eb0fe6474f30ed7399ed7^52019e87b90081f2c6bfa717994d81ab7712dd1f_0.app.frontendcomponentssearchF.php on line 30
[10-Jul-2020 08:23:02 UTC] PHP Warning: Creating default object from empty value in /home/elacil23/public_html/cache/t_compile/00a0a0910209607cb33eb0fe6474f30ed7399ed7^52019e87b90081f2c6bfa717994d81ab7712dd1f_0.app.frontendcomponentssearchF.php on line 30
[10-Jul-2020 08:28:06 UTC] PHP Warning: Creating default object from empty value in /home/elacil23/public_html/cache/t_compile/00a0a0910209607cb33eb0fe6474f30ed7399ed7^52019e87b90081f2c6bfa717994d81ab7712dd1f_0.app.frontendcomponentssearchF.php on line 30
[10-Jul-2020 08:28:06 UTC] PHP Warning: Creating default object from empty value in /home/elacil23/public_html/cache/t_compile/00a0a0910209607cb33eb0fe6474f30ed7399ed7^52019e87b90081f2c6bfa717994d81ab7712dd1f_0.app.frontendcomponentssearchF.php on line 30
[10-Jul-2020 08:28:19 UTC] PHP Warning: Creating default object from empty value in /home/elacil23/public_html/cache/t_compile/00a0a0910209607cb33eb0fe6474f30ed7399ed7^52019e87b90081f2c6bfa717994d81ab7712dd1f_0.app.frontendcomponentssearchF.php on line 30
[10-Jul-2020 08:28:19 UTC] PHP Warning: Creating default object from empty value in /home/elacil23/public_html/cache/t_compile/00a0a0910209607cb33eb0fe6474f30ed7399ed7^52019e87b90081f2c6bfa717994d81ab7712dd1f_0.app.frontendcomponentssearchF.php on line 30
[10-Jul-2020 09:01:37 UTC] PHP Warning: Creating default object from empty value in /home/elacil23/public_html/cache/t_compile/00a0a0910209607cb33eb0fe6474f30ed7399ed7^52019e87b90081f2c6bfa717994d81ab7712dd1f_0.app.frontendcomponentssearchF.php on line 30
[10-Jul-2020 09:01:37 UTC] PHP Warning: Creating default object from empty value in /home/elacil23/public_html/cache/t_compile/00a0a0910209607cb33eb0fe6474f30ed7399ed7^52019e87b90081f2c6bfa717994d81ab7712dd1f_0.app.frontendcomponentssearchF.php on line 30
[10-Jul-2020 09:50:37 UTC] PHP Warning: Creating default object from empty value in /home/elacil23/public_html/cache/t_compile/00a0a0910209607cb33eb0fe6474f30ed7399ed7^52019e87b90081f2c6bfa717994d81ab7712dd1f_0.app.frontendcomponentssearchF.php on line 30
[10-Jul-2020 09:50:37 UTC] PHP Warning: Creating default object from empty value in /home/elacil23/public_html/cache/t_compile/00a0a0910209607cb33eb0fe6474f30ed7399ed7^52019e87b90081f2c6bfa717994d81ab7712dd1f_0.app.frontendcomponentssearchF.php on line 30
[10-Jul-2020 09:55:14 UTC] PHP Warning: Creating default object from empty value in /home/elacil23/public_html/cache/t_compile/5d71f1a656119e4a23b50e5b077fc17d90919715^52019e87b90081f2c6bfa717994d81ab7712dd1f_0.app.frontendcomponentssearchF.php on line 30
[10-Jul-2020 09:55:14 UTC] PHP Warning: Creating default object from empty value in /home/elacil23/public_html/cache/t_compile/5d71f1a656119e4a23b50e5b077fc17d90919715^52019e87b90081f2c6bfa717994d81ab7712dd1f_0.app.frontendcomponentssearchF.php on line 30

Hi @madjidbekai,

I’ve found the cause; if you add a file called locale/ro_RO/locale.po to your installation, with the following contents:

msgid ""
msgstr "X-Generator: Weblate\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit"

…that should resolve the problem. (The same file is in github here: https://github.com/pkp/ojs/blob/master/locale/ro_RO/locale.po)

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

@asmecher Thank you so much for your help it really works.
Best regards

1 Like

Hi, I couldnt find " ro_RO " in my locale folder. only this:

ro

and i cant untick the language too. please help

thanks

Hi,
it says in Alec’s comment to add the file mentioned. So of course you will not find it. Go to github and download it to the locale folder of your OJS installation.
HTH