Problem to change URL and with WYSIWYG editor. #5262

Closed
opened 2026-02-05 09:52:23 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @RickFr410 on GitHub (Apr 19, 2025).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

Hello,
I encounter two problems with BookStack 24.12.1. The first is that the WYSIWYG editor don't appear. I tried to remove the cache as seen on a topic here, but the problem is the same.
The second is that I need to change the URL of BookStack (add a port to the URL). I changed the URL in the .env file, executed the indicated commands [here], removed the cache, launched from the maintenance tab the references regeneration, but the port is not used in the URLs. The laravel.log file doesn't contain datas from many hours.

Exact BookStack Version

24.12.1

Log Content

No response

Hosting Environment

debian 12, PHP 8.3.19. BS is behind a reverse proxy and WAF

Originally created by @RickFr410 on GitHub (Apr 19, 2025). ### Attempted Debugging - [x] I have read the debugging page ### Searched GitHub Issues - [x] I have searched GitHub for the issue. ### Describe the Scenario Hello, I encounter two problems with BookStack 24.12.1. The first is that the WYSIWYG editor don't appear. I tried to remove the cache as seen on a topic here, but the problem is the same. The second is that I need to change the URL of BookStack (add a port to the URL). I changed the URL in the .env file, executed the indicated commands [[here](https://www.bookstackapp.com/docs/admin/commands/)], removed the cache, launched from the maintenance tab the references regeneration, but the port is not used in the URLs. The laravel.log file doesn't contain datas from many hours. ### Exact BookStack Version 24.12.1 ### Log Content _No response_ ### Hosting Environment debian 12, PHP 8.3.19. BS is behind a reverse proxy and WAF
OVERLORD added the 🐕 Support label 2026-02-05 09:52:23 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Apr 20, 2025):

The first is that the WYSIWYG editor don't appear.

Are you familiar with the browser developer console? It would be helpful to know any errors shown there.
It can often be opened via F12 or via the browser menu. View the "Console" tab then reload the page where the editor would show, then report back any (usually red) error messages.

I changed the URL in the .env file, [...] but the port is not used in the URLs.

  • What changes are you specifically making in the .env file?
  • What is the output of running ls -alh bootstrap/cache from your BookStack install folder?
  • How are you validating if the port is used in the URLs?
@ssddanbrown commented on GitHub (Apr 20, 2025): > The first is that the WYSIWYG editor don't appear. Are you familiar with the browser developer console? It would be helpful to know any errors shown there. It can often be opened via F12 or via the browser menu. View the "Console" tab then reload the page where the editor would show, then report back any (usually red) error messages. > I changed the URL in the .env file, [...] but the port is not used in the URLs. - What changes are you specifically making in the `.env` file? - What is the output of running `ls -alh bootstrap/cache` from your BookStack install folder? - How are you validating if the port is used in the URLs?
Author
Owner

@RickFr410 commented on GitHub (Apr 20, 2025):

  • What changes are you specifically making in the .env file?

  • What is the output of running ls -alh bootstrap/cache from your BookStack install folder?

  • How are you validating if the port is used in the URLs?

Thanks for your answer.

  • I just add the port in the APP_URL variable.
  • I have config.php (that contain many variables with the URL), .gitignore, packages.php and services.php. Does I need to update the config.php or is it auto-generated and can be updated by an action ?
  • The links still use the old URL.

By updating manually the bootstrap/cache/config.php, the links are okay.

The first is that the WYSIWYG editor don't appear.

Thanks, It was due to the CSP. It's okay now.

@RickFr410 commented on GitHub (Apr 20, 2025): > * What changes are you specifically making in the `.env` file? > > * What is the output of running `ls -alh bootstrap/cache` from your BookStack install folder? > > * How are you validating if the port is used in the URLs? Thanks for your answer. - I just add the port in the APP_URL variable. - I have config.php (that contain many variables with the URL), .gitignore, packages.php and services.php. Does I need to update the config.php or is it auto-generated and can be updated by an action ? - The links still use the old URL. By updating manually the bootstrap/cache/config.php, the links are okay. > The first is that the WYSIWYG editor don't appear. Thanks, It was due to the CSP. It's okay now.
Author
Owner

@ssddanbrown commented on GitHub (Apr 20, 2025):

Thanks @RickFr410.
By having a bootstrap/cache/config.php file, that generally indicates you've ran a caching or optimization command, which is not something that's part of our guidance.
While that's there, changes to .env file won't take effect unless you re-run the same command or manually delete that bootstrap/cache/config.php file.

@ssddanbrown commented on GitHub (Apr 20, 2025): Thanks @RickFr410. By having a `bootstrap/cache/config.php` file, that generally indicates you've ran a caching or optimization command, which is not something that's part of our guidance. While that's there, changes to `.env` file won't take effect unless you re-run the same command or manually delete that `bootstrap/cache/config.php` file.
Author
Owner

@RickFr410 commented on GitHub (Apr 20, 2025):

I installed by following the install documentation. The config file disappeared probably after update to the latest version.

@RickFr410 commented on GitHub (Apr 20, 2025): I installed by following the install documentation. The config file disappeared probably after update to the latest version.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5262