Error 500 while trying to register when changing the default locale #556

Closed
opened 2026-02-04 20:59:55 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @moutonnoireu on GitHub (Jan 26, 2018).

Bug Reports

  • BookStack Version (Found in settings, Please don't put 'latest'): BookStack v0.19.0
  • PHP Version : PHP 7.1.10 (cli)
  • MySQL Version : mariadb 10.1.26-0
Expected Behavior

You can register a new account.

Current Behavior

Got an error 500 while tryng to register.

Steps to Reproduce

Go to app.php, change 'locale' => env('APP_LANG', 'en'), to 'locale' => env('APP_LANG', 'fr'),.


Maybe a setting to choose the default local for all user would sort this bug.

Originally created by @moutonnoireu on GitHub (Jan 26, 2018). ### Bug Reports * BookStack Version *(Found in settings, Please don't put 'latest')*: BookStack v0.19.0 * PHP Version : PHP 7.1.10 (cli) * MySQL Version : mariadb 10.1.26-0 ##### Expected Behavior You can register a new account. ##### Current Behavior Got an error 500 while tryng to register. ##### Steps to Reproduce Go to ``app.php``, change ``'locale' => env('APP_LANG', 'en'),`` to ``'locale' => env('APP_LANG', 'fr'),``. --- Maybe a setting to choose the default local for all user would sort this bug.
OVERLORD added the 🐕 Support label 2026-02-04 20:59:55 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jan 26, 2018):

Hi @moutonnoireu, Sorry to hear you're having issues.

To avoid issues please refrain from making any edits to the files in the config/ folder.
Instead you can add the below line to your .env file to make this work.

APP_LANG=fr

Remember to revert your config/app.php change back to 'en'.

@ssddanbrown commented on GitHub (Jan 26, 2018): Hi @moutonnoireu, Sorry to hear you're having issues. To avoid issues please refrain from making any edits to the files in the `config/` folder. Instead you can add the below line to your `.env` file to make this work. ``` APP_LANG=fr ``` Remember to revert your `config/app.php` change back to 'en'.
Author
Owner

@moutonnoireu commented on GitHub (Jan 26, 2018):

Thank you for your help ! 👍

@moutonnoireu commented on GitHub (Jan 26, 2018): Thank you for your help ! 👍
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#556