Photos Page Blank When Using en Locale – Fixed by Setting default_language and default_locale in config.php

Environment

  • Nextcloud Version: App Version: 32.0.6

Issue

The Photos page loads as a blank page when the user locale is set to:

English

However, if I change the locale to:

English (World)

The Photos app loads normally again.

No visible PHP errors in the UI. Other apps work normally. The issue appears to be related to locale handling.


Root Cause (Suspected)

It seems that using the generic en locale causes a formatting or intl-related issue that affects the Photos app rendering. Explicitly defining both language and locale in config.php resolves the issue.


Fix

I added the following entries to:

config/config.php

'default_language' => 'en',
'default_locale' => 'en_US',

After saving the file and restarting the container/jail, the Photos page loads correctly even when the user profile language is set to English.


Result

  • Photos page no longer blank

  • No UI rendering issues

  • Stable behavior across sessions


Question

Is this expected behavior when using the generic en locale?
Should Nextcloud automatically normalize en to en_US internally?

Would appreciate confirmation from others or clarification from maintainers.

I have the same error, but didn’t have a clue that it related to locale settings. I think it happened after my apps updated this (Saturday) afternoon.

How did you figure this out?

Anyway, thank you for posting this!

Mark