After a clean install, everything's fine until enabling an extension. After checking the box (for Github Auth in this case) the admin sidebar and content blocks are blank (see footnote).
There seem to be two ways to get out of this:
- Manually edit the extensions_enabled value in settings, removing Github auth
- Enabling debug mode in config.php
Afterwards, some language strings only show the keys. In particular, the email menu/content and the fields in the appearance page.
After some testing it seems this could be related to running under a subfolder. While a clean install on a subdomain resulted in the same blank admin, there were no issues with localisation after enabling debug mode and refreshing.
Here's a gist containing both nginx configs. discuss.mydomain.confcontains the bare minimum server block. The second, mydomain.conf took some fiddling to get flarum running from within a Lumen install's public folder.
Other things previously attempted:
- Disabling & enabling English language had no effect
- Refreshing while English was disabled
- This interestingly did not break any additional strings as I'd expect
- Installing a second language
- All strings translated perfectly
- Disabling/removing the 2nd language (after reverting default to English) resulted in the same issue
- Removing
assets/*.js had no effect
- Manually checking the lang file showed the strings present and correct
php flarum cache:clear also didn't help
Footnote
It seems on enabling an extension, it reloads the UI before the configuration modal is shown. That in turn causes an error of "trying to access property default on Undefined" or similar in the following block, but it could be unrelated entirely.
