BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
15.43k stars 1.94k forks source link

New update seems to break the WYSIWYG of the edit/draft page #5249

Closed koen-divtag closed 1 month ago

koen-divtag commented 1 month ago

Describe the Bug

After updating the application i wanted to add a new page. When i tried to open it, it showed multiple js errors in my console and the page does not show the content of WYSIWYG. I can edit the title and save with pressing enter but that is it. This goes for creating or editing that i know of.

Steps to Reproduce

Create a new page or edit an existing page. Content / WYSIWYG is not shown.

Expected Behaviour

I expect to see and be able to use the WYSIWYG so i can change my wiki content.

Screenshots or Additional Context

Example edit page. No content/WYSIWYG shown, only title. image The errors shown in the console log. image

Browser Details

Google Chrome Version 129.0.6668.58 (Official Build) (64-bit)

Exact BookStack Version

v24.10

ssddanbrown commented 1 month ago

Hi @koen-divtag, I'm seeing some things in the details provided that don't align with the latest release.

koen-divtag commented 1 month ago

Hi @ssddanbrown, What are the details that you see that don't align with the release?

Only thing i can think of right now is that we copy the new source over the old source. Could this cause any issues that you know of?

ssddanbrown commented 1 month ago

What are the details that you see that don't align with the release?

The template code in the error does not match the latest release, but the previous release(s) indicating the template used is not current.

Only thing i can think of right now is that we copy the new source over the old source. Could this cause any issues that you know of?

Definitely introduces an extra complication. Could cause issues where folders/files are not removed as expected, or potentially have files missed in the process. Main issue is that is makes it hard to verify the state of the setup.

Worth force removing cached views like so (go careful, dangerous command, ideally backup things first):

sudo rm -rf /srv/wiki/bookstack/storage/framework/views/*.php
koen-divtag commented 1 month ago

I tried removing the views cache like you said but it didn't do anything. Probably because we run php artisan view:cache which does the same that i know of.

Removing the whole application and reinstalling seems to do the trick! So ill fix it so that we will be reinstalling the whole application every update. Thank you for your time!

ssddanbrown commented 1 month ago

Good to hear you found a solution, I'll therefore close this off. You shouldn't have to reinstall the app though, generally that indicates a cache that is not being cleared, potentially due to permissions (cache cleared/generated but can't be written or overwritten by app server in use).