Categories
Web

Piwigo 15 Language Pack Issues

I recently updated my Piwigo instance to version 15. Not out of a real need, but rather just because it’s good to stay current with software updates. This is the first time I ran into an issue, which I caused but didn’t expect.

I deactivated and deleted most languages, and I also switched my default from “English [GB]” to “English [US]. A mistake as I later found out.

I started to have errors in the User manager, in the photos, on the dashboard.

Piwigo 15 Dashboard Errors after removing English [GB] (2024-11-05)

I also added the errors here in text.

Warning: Undefined array key "day" in /home/***/www/***/admin/intro.php on line 333

Warning: Trying to access array offset on value of type null in /home/***/www/***/admin/intro.php on line 333

Deprecated: mb_substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/***/www/***/admin/intro.php on line 333

I attempted to download the language for my version from the Piwigo website as I not only deactivated the language, but immediately deleted them.

https://piwigo.org/ext/index.php?eid=417 (2024-11-05)

Those language packs are 14 years old and are no longer usable at this point. I couldn’t find any information about it in the community or in the documentation.

Piwigo 15 – Languages, Add New Language (2024-11-05)

The option “add new language” was also of no help, I’m not sure if it’s some legacy leftovers. But it didn’t show any controls in my case.

https://piwigo.org/ (2024-11-05)

The best option that came to my mind now was that the language pack is bundled with the new instance. So I should be able to take it from a fresh copy and add it to my instance. So I went ahead and downloaded the fresh Piwigo 15 from the website.

Piwigo 15 ZIP content (2024-11-05)

I brought back the folder using WinSCP from the server.

Once you accomplish this, you need to switch to your Piwigo and activate the language.

Piwigo 15 – Languages, Active Languages (2024-11-05)

This is the final view, both English [UK] and English [GB], are back which resolved every error I previously saw in the UI.

This process should also help you if you got too fast and removed languages you later missed or accidentally deleted too much.