GibbonEdu / core

Gibbon is a flexible, open source school management platform designed to make life better for teachers, students, parents and leaders.
https://gibbonedu.org
GNU General Public License v3.0
460 stars 299 forks source link

Bug: Change in language crashes GibbonEdu language admin pages #1747

Closed dom-madrid closed 4 months ago

dom-madrid commented 1 year ago

Describe the Bug

I installed GibbonEdu with multiple language starting from English. I installed the french package, made sure fr_FR locale was installed (on Ubuntu 22.04 LTS server) and switch my user to french. The result is that I can no longer change language as the admin language page return a monkey escaped error.

To Reproduce

Install the french (in both the system and GibbonEdu) Go to the manage language Change to French as default language Logout/Login You in French now Go to the manage language ... Escaped Monkeys

Expected behavior

Install the french (in both the system and GibbonEdu) Go to the manage language Change to French as default language Logout/Login You in French now Go to the manage language Change your language to your liking

Actual behavior

Install the french (in both the system and GibbonEdu) Go to the manage language Change to French as default language Logout/Login You in French now Go to the manage language ... Escaped Monkeys

Screenshots

image

Gibbon version

25.00

Browser

Other (specify below)

Browser Version

Opera Version:97.0.4719.63

Additional Context

No response

yookoala commented 1 year ago

Can you please provide the server logs (Apache / php-fpm) when the error happened?

dom-madrid commented 1 year ago

Both access.log and error.log are attached.

gibbonedu_french.zip

dom-madrid commented 1 year ago

While I kept on browsing the application, the same error occured in the Staff section, sub section reports: the second, third and fourth report generate monkeys as well. And it seems the errors in the apacle log are different. So, here is another copy.

I'll keep reviewing the other tabs to identify more of that problem.

gibbonedu_french_2.zip

dom-madrid commented 1 year ago

So, I found a few others:

leofreitas commented 1 year ago

@dom-madrid Can you test with another language besides French? It looks like the error is related to the permissions on the folders in your installation.

dom-madrid commented 1 year ago

Hi, I did an engligh install before and it worked correctly. I then went on activating the french langiage pack. The problem now is that I cannot go back to another language since the manage language section is being in error. If it is a permission problem, can you point to which one and what permissions should I set ? My only alternative is to reinstall from scratch and try another language (apart from english).

Geekst3r commented 10 months ago

Hi, I did an engligh install before and it worked correctly. I then went on activating the french langiage pack. The problem now is that I cannot go back to another language since the manage language section is being in error. If it is a permission problem, can you point to which one and what permissions should I set ? My only alternative is to reinstall from scratch and try another language (apart from english).

Hi. Were you ever able to resolve this issue?

If you have access to the gibbon database, can you edit the gibboni18n table and change the active, installed, and systemDefault flags to Y. This should take you back to the default English language.

If the above step is successful, you can now access system admin. proceed to do language pack updates for all languages to ensure that all language packs are fully downloaded. After which, try to change to the French language again to see if the bug can be repeated.

dom-madrid commented 10 months ago

Hi,

Good news. The steps you provided actually solved the problem. I can now switch between languages after updating the languages packs. I successfully switch between several times between english, french, spanish and italian.

The described bug is fixed.

However, as a side note, I found something peculiar in the 'System Overview'. When the text says 'system overview' (for the english and Italian languages - the latter one not being translated), the system retrieves correctly that I need to update the application. When using the french or spanish language pack, the 'System Overview' is translated in the desired language, but the update information is stuck as you see in the screen print: image If I switch back to english it works. image

It seems is still missing somewhere...

Geekst3r commented 9 months ago

Hi,

Good news. The steps you provided actually solved the problem. I can now switch between languages after updating the languages packs. I successfully switch between several times between english, french, spanish and italian.

The described bug is fixed.

However, as a side note, I found something peculiar in the 'System Overview'. When the text says 'system overview' (for the english and Italian languages - the latter one not being translated), the system retrieves correctly that I need to update the application. When using the french or spanish language pack, the 'System Overview' is translated in the desired language, but the update information is stuck as you see in the screen print: image If I switch back to english it works. image

It seems is still missing somewhere...

Hi.

I cannot replicate that behavior. Can you please update the core installation to version 25.0.01, as this is the latest stable release version of gibbon. As earlier pointed out, the majority of these can be related to the installation being incomplete.

Regards

dom-madrid commented 5 months ago

Hi,

I just reinstalled a full Gibbon in order to test directly the latest version (26.0.0). I'll close this issue and open a different one.

leofreitas commented 5 months ago

@dom-madrid, but the problem remains?