Creating book fails after setting up bookstack #599

Closed
opened 2026-02-04 21:22:44 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @ghost on GitHub (Mar 13, 2018).

I just installed bookstack. Now when I try to create a book following exception:

(1/1) InvalidArgumentException
Unknown editor identifier: html. Known editors:sublime,textmate,emacs,macvim,phpstorm,idea,vscode
in PrettyPageHandler.php (line 415)
at PrettyPageHandler->setEditor('html')in Handler.php (line 375)

and so on...
this is the laravel log:

[2018-03-13 13:16:35] production.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'image_id' in 'field list' (SQL: insert into `books` (`name`, `description`, `image_id`, `slug`, `c
reated_by`, `updated_by`, `updated_at`, `created_at`) values (new one, la, https://bookstack.kitsche.space/book_default_cover.png, new-one, 1, 1, 2018-03-13 13:16:35, 2018-03-13 13:16:35)) {"use
rId":1,"email":"admin@tornado.com","exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'image_id' in 'field list' (SQ
L: insert into `books` (`name`, `description`, `image_id`, `slug`, `created_by`, `updated_by`, `updated_at`, `created_at`) values (new one, la, https://bookstack.kitsche.space/book_default_cover
.png, new-one, 1, 1, 2018-03-13 13:16:35, 2018-03-13 13:16:35)) at /var/www/virtual/colon/bookstack.kitsche.space/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664, PDOExceptio
n(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'image_id' in 'field list' at /var/www/virtual/colon/bookstack.kitsche.space/vendor/laravel/framework/src/Illuminate/Databa
se/Connection.php:452)
[stacktrace]...

I don't know what went wrong with the database. Why is the column not there? Did I do something wrong? I ran php artisan migrate.
I installed bookstack on my uberspace shared host account. On CentOs 7. It was a bit tricky with htaccess files. Thanks for any help.

Originally created by @ghost on GitHub (Mar 13, 2018). I just installed bookstack. Now when I try to create a book following exception: ``` (1/1) InvalidArgumentException Unknown editor identifier: html. Known editors:sublime,textmate,emacs,macvim,phpstorm,idea,vscode in PrettyPageHandler.php (line 415) at PrettyPageHandler->setEditor('html')in Handler.php (line 375) ``` and so on... this is the laravel log: ``` [2018-03-13 13:16:35] production.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'image_id' in 'field list' (SQL: insert into `books` (`name`, `description`, `image_id`, `slug`, `c reated_by`, `updated_by`, `updated_at`, `created_at`) values (new one, la, https://bookstack.kitsche.space/book_default_cover.png, new-one, 1, 1, 2018-03-13 13:16:35, 2018-03-13 13:16:35)) {"use rId":1,"email":"admin@tornado.com","exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'image_id' in 'field list' (SQ L: insert into `books` (`name`, `description`, `image_id`, `slug`, `created_by`, `updated_by`, `updated_at`, `created_at`) values (new one, la, https://bookstack.kitsche.space/book_default_cover .png, new-one, 1, 1, 2018-03-13 13:16:35, 2018-03-13 13:16:35)) at /var/www/virtual/colon/bookstack.kitsche.space/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664, PDOExceptio n(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'image_id' in 'field list' at /var/www/virtual/colon/bookstack.kitsche.space/vendor/laravel/framework/src/Illuminate/Databa se/Connection.php:452) [stacktrace]... ``` I don't know what went wrong with the database. Why is the column not there? Did I do something wrong? I ran php artisan migrate. I installed bookstack on my uberspace shared host account. On CentOs 7. It was a bit tricky with htaccess files. Thanks for any help.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#599