Awaiting feedback Uploading language file is an unfinished feature

lifehome

Member
Affected version
2.0.4
Step to reproduce:
  1. Upload a language file at /admin.php?languages/import
  2. Tweak anything if necessary (won't affect reproduced results)
  3. Click "Upload"
  4. It stays at the same page, without error or successful message, or even a redirection for template rebuild
  5. If the upload fails somehow(connection reset or sth), or you went away right after the progress animator is done at top right corner, your whole Xenforo installation will result in white pages. You will have to rebuild the master data at the /install script
 
Problem:
  • You cannot rebuild the whole template, language or most whatever you can at XF1
  • (White pages error) Even if you are lucky enough(you don't mostly) to get into admin panel, there is literally nothing you can do.
  • Uploaded language is not applied immediately after switching all the switches at ACP.
 
So as a follow up, a bit of workaround could be done in this situation:
  • Login via SSH and use PHP CLI mode to rebuild ALL templates in that language. You may wonder why, that is because the broken template applies to most user when it was set to default, and even it's not default, the broken update of language file will break the template rebuild process, eventually making partial user cannot access to the whole XF installation.
  • Or, if your installation directory remains there, you can just walk into it and choose "Rebuild from Master Data", forcing XF to rebuild ALL templates.
Either way would takes time to rebuild, especially if you have more templates on your installation. Downside/Caveat would be your users will experience many many template error if they are browsing the site while the rebuild still undergoing.
 
Better way that made me fix it in 2minutes:

- Change language to the "buggy / unsuccessful" one.
- Get the blank pages
- Go to phpMyAdmin and search for table "xf_users"
-Set language entry back to default (1) on your admin account.
-Go to adminpanel again and "rebuild user cache"
-Activate language again and it will work.
 
Better way that made me fix it in 2minutes:

- Change language to the "buggy / unsuccessful" one.
- Get the blank pages
- Go to phpMyAdmin and search for table "xf_users"
-Set language entry back to default (1) on your admin account.
-Go to adminpanel again and "rebuild user cache"
-Activate language again and it will work.
Although that is possible, but using the CLI would be more complete to regenerate all templates, and need not to take the risk modifying database directly.
 
Back
Top Bottom