Migration from v4 to v5 sets Russian language

Hi,
I am self hosted v5 docker version. Latest.
I have migrated from v4 to v5 and it all imported BUT when I log in I am in the Russian language. Why?
I have done this a few times and it always defaults to Russian.
I have mentioned it previously.

Only once the migration has worked and was in English.

I can change the language to English and it is OK BUT all the user portal are in Russian and I don’t want to go and change all those.

Any reason why the language is defaulting to Russian?
I am in Australia and have my locale set to Australia. Would that affect it? I am using the docker version of the install. I have tried the non-docker install and still get Russian.

Any ideas? I have run out of ideas.

Thanks again.

EDIT:
I ran php ./artisan migrate:fresh --seed
I didn’t log into the web page. I restarted the docker containers.
Then I restored a backup of the database and now it IS IN ENGLISH!
BUT…the user portal looks like this:

Getting closer.

I need to get this right before I remove the v4 and replace with v5 on the REAL server.

EDIT again:
I ran php artisan cache:clear and then restarted the docker containers and then it went back to Russian language again and the user portal is still wrong.

Hi,

Is it possible the language data in the v4 database was manually adjusted? Maybe the ids aren’t matching up because of it.

The only change was to set the language in v4 to English Australian. It is there as an option.
BUT in v5 there is no English Australian. Would that be the problem?

Also after I do the re-seed thing it works but the client portal still is wrong.
If I do a cache:clear it reverts back to Russian.

It may be related, I suggest asking in a discussion on GitHub.

OK. Thanks
I even tried changing the LANG in docker to AUS:
environment:
LANG: en_AU.UTF-8

Still didn’t work.
I will change the language to plain English in v4 and save the database and see what happens.

1 Like

OK. I changed the language in v4 to English and then did another migrate.
I changed the language in the v5 2 places to English. settings>user details > language and also settings>localisation>language.

I did the php artisan cache:clear and then logged in again and it was still in English. Previously if I did that I got Russian language.

I also did an optimize and shut down the docker containers and started them again and it is still in English.

CONCLUSION: If the language in v4 is not in v5 then it will not work! Can you verify my conclusion?

Also the user portal still doesn’t display correctly as stated previously. Any ideas regarding that one?

Thanks for tracking down the source of the problem, I’ve shared the info with the relevant developer.

For the portal issue, do you see any failed requests in the network tab of the browser console?

No I see nothing just shows up like on the screen shot earlier I posted.
I just tried the flatpak app and it doesn’t work either. I may be haproxy that I am using. Will investigate later. Have to go out now.

I have done further testing.
I set up a non-docker install of v5 and changed the language on the v4 to English and id a migration. I had a server timeout notice on the v4 but the logs on the v5 said the migration was still happening so I let it finish.
The v5 install worked! I did a cache:clear and on optimize and it was still in English!
I then tested the user portal and that worked as well.
CONCLUSION:
The language issue seems to be if the v4 language is not in v5 it doesn’t work.
The user portal issue seems to be the set up I have that forwards the webpage etc to apache. If I just use apache standard virtual host and non-docker set up it is OK.

I think I am confident now about upgrading the REAL server as it is not docker and I just have to remember to change the v4 language before starting the migration.
I hope this helps someone else as I have spent 2 weeks looking at this.

If anyone has a working apache virtualhost to docker file let me know.
Mine looks like this:

<VirtualHost *:443>

ServerName test.com

  <Location />
    Order allow,deny
    Allow from all
    Require all granted
  </Location>
    ProxyPreserveHost On
        ProxyRequests Off
  ProxyPass / http://127.0.0.1:8080/
  ProxyPassReverse / http://127.0.0.1:8080/


Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/test.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/test.com/privkey.pem
</VirtualHost>

Glad to hear it, thanks for the update!