Error while logging in after upgrade from 0.18.x to the latest #751

Closed
opened 2026-02-04 22:10:11 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @nekromoff on GitHub (Jul 20, 2018).

For Bug Reports

  • BookStack Version (Found in settings, Please don't put 'latest'): BookStack v0.22.0
  • PHP Version: 7.2.7
  • MySQL Version: 10.0.34-MariaDB
Expected Behavior

Login fails with Unknown Error

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)
at Handler->Illuminate\Foundation\Exceptions\{closure}(object(PrettyPageHandler))in helpers.php (line 1038)
at tap(object(PrettyPageHandler), object(Closure))in Handler.php (line 383)
at Handler->whoopsHandler()in Handler.php (line 333)
at Handler->Illuminate\Foundation\Exceptions\{closure}(object(Run))in helpers.php (line 1038)
at tap(object(Run), object(Closure))in Handler.php (line 338)
etc...

log:

[2018-07-20 14:18:34] production.ERROR: Call to a member function bind() on null {"userId":1,"email":"xxxxx *(real email removed)*","exception":"[object] (S
[stacktrace]
#0 /var/www/html/int/wiki/vendor/laravel/framework/src/Illuminate/Routing/Router.php(575): Illuminate\\Support\\HigherOrderTapProxy->__call('bind'
#1 /var/www/html/int/wiki/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(221): Illuminate\\Routing\\Router->respondWithRoute('
#2 /var/www/html/int/wiki/app/Exceptions/Handler.php(67): Illuminate\\Support\\Facades\\Facade::__callStatic('respondWithRout...', Array)
#3 /var/www/html/int/wiki/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(83): BookStack\\Exceptions\\Handler->render(Object(Illumina
#4 /var/www/html/int/wiki/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): Illuminate\\Routing\\Pipeline->handleException(Object(
#5 /var/www/html/int/wiki/app/Http/Controllers/Controller.php(44): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate
#6 /var/www/html/int/wiki/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(131): BookStack\\Http\\Controllers\\Controller->BookStack\
#7 /var/www/html/int/wiki/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\
#8 /var/www/html/int/wiki/app/Http/Middleware/Authenticate.php(48): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Ill
Current Behavior

Error while logging in, but can continue with the session if I click in the menu and I am logged in

Steps to Reproduce

Log in using Google Oauth

Originally created by @nekromoff on GitHub (Jul 20, 2018). ### For Bug Reports * BookStack Version *(Found in settings, Please don't put 'latest')*: BookStack v0.22.0 * PHP Version: 7.2.7 * MySQL Version: 10.0.34-MariaDB ##### Expected Behavior Login fails with Unknown Error ``` 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) at Handler->Illuminate\Foundation\Exceptions\{closure}(object(PrettyPageHandler))in helpers.php (line 1038) at tap(object(PrettyPageHandler), object(Closure))in Handler.php (line 383) at Handler->whoopsHandler()in Handler.php (line 333) at Handler->Illuminate\Foundation\Exceptions\{closure}(object(Run))in helpers.php (line 1038) at tap(object(Run), object(Closure))in Handler.php (line 338) etc... ``` log: ``` [2018-07-20 14:18:34] production.ERROR: Call to a member function bind() on null {"userId":1,"email":"xxxxx *(real email removed)*","exception":"[object] (S [stacktrace] #0 /var/www/html/int/wiki/vendor/laravel/framework/src/Illuminate/Routing/Router.php(575): Illuminate\\Support\\HigherOrderTapProxy->__call('bind' #1 /var/www/html/int/wiki/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(221): Illuminate\\Routing\\Router->respondWithRoute(' #2 /var/www/html/int/wiki/app/Exceptions/Handler.php(67): Illuminate\\Support\\Facades\\Facade::__callStatic('respondWithRout...', Array) #3 /var/www/html/int/wiki/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(83): BookStack\\Exceptions\\Handler->render(Object(Illumina #4 /var/www/html/int/wiki/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): Illuminate\\Routing\\Pipeline->handleException(Object( #5 /var/www/html/int/wiki/app/Http/Controllers/Controller.php(44): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate #6 /var/www/html/int/wiki/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(131): BookStack\\Http\\Controllers\\Controller->BookStack\ #7 /var/www/html/int/wiki/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\ #8 /var/www/html/int/wiki/app/Http/Middleware/Authenticate.php(48): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Ill ``` ##### Current Behavior Error while logging in, but can continue with the session if I click in the menu and I am logged in ##### Steps to Reproduce Log in using Google Oauth
Author
Owner

@nekromoff commented on GitHub (Jul 20, 2018):

Seems to be caused by missing images in public/uploads folder that I forgot to copy over from the old install. Anyway, I guess this should be checked and missing uploaded file should not throw such error.

@nekromoff commented on GitHub (Jul 20, 2018): Seems to be caused by missing images in public/uploads folder that I forgot to copy over from the old install. Anyway, I guess this should be checked and missing uploaded file should not throw such error.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#751