TokenMismatchException #268

Closed
opened 2026-02-04 18:10:20 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @Ethanb00 on GitHub (Feb 15, 2017).

Bug Report
  • BookStack Version: 0.14.3
  • PHP Version: 7.0.13
  • MySQL Version: Ver 15.1 Distrib 10.1.21-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
Expected Behavior

Successful Log in

Actual Behavior

I get a the following (using a different computer about 20 hours after last login):

TokenMismatchException in compiled.php line 3153: in compiled.php line 3153
at VerifyCsrfToken->handle(object(Request), object(Closure)) in compiled.php line 9870
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in compiled.php line 13464
at ShareErrorsFromSession->handle(object(Request), object(Closure)) in compiled.php line 9870
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in compiled.php line 11907
at StartSession->handle(object(Request), object(Closure)) in compiled.php line 9870
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in compiled.php line 13210
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in compiled.php line 9870
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in compiled.php line 13147
at EncryptCookies->handle(object(Request), object(Closure)) in compiled.php line 9870
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in compiled.php line 9855
at Pipeline->then(object(Closure)) in compiled.php line 8148
at Router->runRouteWithinStack(object(Route), object(Request)) in compiled.php line 8139
at Router->dispatchToRoute(object(Request)) in compiled.php line 8130
at Router->dispatch(object(Request)) in compiled.php line 2472
at Kernel->Illuminate\Foundation\Http{closure}(object(Request)) in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request)) in Debugbar.php line 51
at Debugbar->handle(object(Request), object(Closure)) in compiled.php line 9870
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in compiled.php line 3213
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in compiled.php line 9870
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in compiled.php line 9855
at Pipeline->then(object(Closure)) in compiled.php line 2416
at Kernel->sendRequestThroughRouter(object(Request)) in compiled.php line 2400
at Kernel->handle(object(Request)) in index.php line 53

Originally created by @Ethanb00 on GitHub (Feb 15, 2017). ##### Bug Report * BookStack Version: 0.14.3 * PHP Version: 7.0.13 * MySQL Version: Ver 15.1 Distrib 10.1.21-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 ##### Expected Behavior Successful Log in ##### Actual Behavior I get a the following (using a different computer about 20 hours after last login): TokenMismatchException in compiled.php line 3153: in compiled.php line 3153 at VerifyCsrfToken->handle(object(Request), object(Closure)) in compiled.php line 9870 at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33 at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 13464 at ShareErrorsFromSession->handle(object(Request), object(Closure)) in compiled.php line 9870 at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33 at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 11907 at StartSession->handle(object(Request), object(Closure)) in compiled.php line 9870 at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33 at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 13210 at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in compiled.php line 9870 at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33 at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 13147 at EncryptCookies->handle(object(Request), object(Closure)) in compiled.php line 9870 at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33 at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 9855 at Pipeline->then(object(Closure)) in compiled.php line 8148 at Router->runRouteWithinStack(object(Route), object(Request)) in compiled.php line 8139 at Router->dispatchToRoute(object(Request)) in compiled.php line 8130 at Router->dispatch(object(Request)) in compiled.php line 2472 at Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}(object(Request)) in Debugbar.php line 51 at Debugbar->handle(object(Request), object(Closure)) in compiled.php line 9870 at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33 at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 3213 at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in compiled.php line 9870 at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33 at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 9855 at Pipeline->then(object(Closure)) in compiled.php line 2416 at Kernel->sendRequestThroughRouter(object(Request)) in compiled.php line 2400 at Kernel->handle(object(Request)) in index.php line 53
Author
Owner

@ghost commented on GitHub (Apr 29, 2017):

Hello @Ethanb00,
We are also facing the same kind of issue, any update on this.

@ghost commented on GitHub (Apr 29, 2017): Hello @Ethanb00, We are also facing the same kind of issue, any update on this.
Author
Owner

@ssddanbrown commented on GitHub (Apr 29, 2017):

Let me know if either of you have solid, confirmed steps to reproduce this error.

If you keep getting this you could maybe try changing to database sessions and caching by settings the following in the .env file:

CACHE_DRIVER=database
SESSION_DRIVER=database
@ssddanbrown commented on GitHub (Apr 29, 2017): Let me know if either of you have solid, confirmed steps to reproduce this error. If you keep getting this you could maybe try changing to database sessions and caching by settings the following in the .env file: ``` CACHE_DRIVER=database SESSION_DRIVER=database ```
Author
Owner

@ghost commented on GitHub (Apr 29, 2017):

@ssddanbrown
We tried adding below snippet in .env file and restarted the apache

CACHE_DRIVER=database
SESSION_DRIVER=database

Actual Behavior
Trying to login from IE and EDGE browsers, we are unable to login and getting the error "Oops! something went wrong".
Note

  • Its working fine in Chrome.
  • its working fine in IE for the version IE-11-15063

Please find the attached log file
laravel.txt

@ghost commented on GitHub (Apr 29, 2017): @ssddanbrown We tried adding below snippet in .env file and restarted the apache ``` CACHE_DRIVER=database SESSION_DRIVER=database ``` **Actual Behavior** Trying to login from IE and EDGE browsers, we are unable to login and getting the error "Oops! something went wrong". **Note** - Its working fine in Chrome. - its working fine in IE for the version IE-11-15063 Please find the attached log file [laravel.txt](https://github.com/BookStackApp/BookStack/files/966153/laravel.txt)
Author
Owner

@Ethanb00 commented on GitHub (Jul 12, 2017):

FWIW, this does not seem to be an issue anymore.

@Ethanb00 commented on GitHub (Jul 12, 2017): FWIW, this does not seem to be an issue anymore.
Author
Owner

@ssddanbrown commented on GitHub (Jul 22, 2017):

Thanks for the update @Ethanb00. I will close this and keep it in mind if other report in the future.

@ssddanbrown commented on GitHub (Jul 22, 2017): Thanks for the update @Ethanb00. I will close this and keep it in mind if other report in the future.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#268