BookStackApp / BookStack

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

Homepage unknown error occurred #5046

Closed trekie80 closed 5 months ago

trekie80 commented 5 months ago

Describe the Bug

After updating from v24.02.3 -> v24.05.1 the homepage now displays 'An Unknown Error Occurred'. This occurs for both signed in and guest users.

Tried changing the 'Application Homepage' setting from Shelves to Default (and back) with no success. /shelves & /books appear to work no issue.

Apache logged no errors, but the following access logs.

10.xx.xx.xx - - [03/Jun/2024:09:53:36 +0100] "GET / HTTP/1.1" 500 15398 "http://bookstack-url/settings/customization" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0"

10.xx.xx.xx - - [03/Jun/2024:09:53:39 +0100] "GET /dist/styles.css?version=v24.05.1 HTTP/1.1" 304 - "http://bookstack-url/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0"

10.xx.xx.xx - - [03/Jun/2024:09:53:39 +0100] "GET /dist/app.js?version=v24.05.1 HTTP/1.1" 304 - "http://bookstack-url/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0"

10.xx.xx.xx - - [03/Jun/2024:09:54:43 +0100] "GET / HTTP/1.1" 500 10241 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0"

10.xx.xx.xx - - [03/Jun/2024:09:54:45 +0100] "GET /dist/styles.css?version=v24.05.1 HTTP/1.1" 200 118688 "http://bookstack-url/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0"

10.xx.xx.xx - - [03/Jun/2024:09:54:45 +0100] "GET /dist/app.js?version=v24.05.1 HTTP/1.1" 200 180401 "http://bookstack-url/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0"

10.xx.xx.xx - - [03/Jun/2024:09:54:45 +0100] "GET /uploads/images/system/2022-12/chP5LYGbFjWYCDvv-outline-crest-only-white-400x400.png HTTP/1.1" 200 8039 "http://bookstack-url/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0"

10.xx.xx.xx - - [03/Jun/2024:09:54:45 +0100] "GET /icon-32.png HTTP/1.1" 200 746 "http://bookstack-url/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0"

Steps to Reproduce

Navigate to base url e.g http://bookstack-url/ or click the link in top left

Expected Behaviour

Display configured homepage

Screenshots or Additional Context

-

Browser Details

Multiple

Exact BookStack Version

v24.05.1

ssddanbrown commented 5 months ago

Hi @trekie80, Please follow our debugging guidance to get errors from you app logs or debug view: https://www.bookstackapp.com/docs/admin/debugging/

trekie80 commented 5 months ago

@ssddanbrown Thanks for the link, through debugging mode I got the following error:

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'activities.loggable_id'

re-run php artisan migrate and this cleared it right up - not sure whether the migrate failed the first time round or what, but this is now working. Much appreciated!