Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whoops! There was an error when i loggout #751

Closed
Bing1024 opened this issue Jan 18, 2016 · 6 comments
Closed

Whoops! There was an error when i loggout #751

Bing1024 opened this issue Jan 18, 2016 · 6 comments

Comments

@Bing1024
Copy link

Nginx + php 7

Flarum\Http\Exception\TokenMismatchException thrown with message ""

Stacktrace:
#29 Flarum\Http\Exception\TokenMismatchException in /workspace/FORUM/vendor/flarum/core/src/Forum/Controller/LogOutController.php:75
#28 Flarum\Forum\Controller\LogOutController:handle in /workspace/FORUM/vendor/flarum/core/src/Http/GenerateRouteHandlerTrait.php:35
#27 Flarum\Forum\ForumServiceProvider:Flarum\Http\{closure} in /workspace/FORUM/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php:72
#26 Flarum\Http\Middleware\DispatchRoute:__invoke in <#unknown>:0
#25 call_user_func in /workspace/FORUM/vendor/zendframework/zend-stratigility/src/Dispatch.php:81
#24 Zend\Stratigility\Dispatch:__invoke in /workspace/FORUM/vendor/zendframework/zend-stratigility/src/Next.php:113
#23 Zend\Stratigility\Next:__invoke in /workspace/FORUM/vendor/flarum/core/src/Http/Middleware/SetLocale.php:50
#22 Flarum\Http\Middleware\SetLocale:__invoke in <#unknown>:0
#21 call_user_func in /workspace/FORUM/vendor/zendframework/zend-stratigility/src/Dispatch.php:81
#20 Zend\Stratigility\Dispatch:__invoke in /workspace/FORUM/vendor/zendframework/zend-stratigility/src/Next.php:113
#19 Zend\Stratigility\Next:__invoke in /workspace/FORUM/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php:33
#18 Flarum\Http\Middleware\AuthenticateWithSession:__invoke in <#unknown>:0
#17 call_user_func in /workspace/FORUM/vendor/zendframework/zend-stratigility/src/Dispatch.php:81
#16 Zend\Stratigility\Dispatch:__invoke in /workspace/FORUM/vendor/zendframework/zend-stratigility/src/Next.php:113
#15 Zend\Stratigility\Next:__invoke in /workspace/FORUM/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php:38
#14 Flarum\Http\Middleware\RememberFromCookie:__invoke in <#unknown>:0
#13 call_user_func in /workspace/FORUM/vendor/zendframework/zend-stratigility/src/Dispatch.php:81
#12 Zend\Stratigility\Dispatch:__invoke in /workspace/FORUM/vendor/zendframework/zend-stratigility/src/Next.php:113
#11 Zend\Stratigility\Next:__invoke in /workspace/FORUM/vendor/flarum/core/src/Http/Middleware/StartSession.php:33
#10 Flarum\Http\Middleware\StartSession:__invoke in <#unknown>:0
#9 call_user_func in /workspace/FORUM/vendor/zendframework/zend-stratigility/src/Dispatch.php:81
#8 Zend\Stratigility\Dispatch:__invoke in /workspace/FORUM/vendor/zendframework/zend-stratigility/src/Next.php:113
#7 Zend\Stratigility\Next:__invoke in /workspace/FORUM/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php:30
#6 Flarum\Http\Middleware\ParseJsonBody:__invoke in <#unknown>:0
#5 call_user_func in /workspace/FORUM/vendor/zendframework/zend-stratigility/src/Dispatch.php:81
#4 Zend\Stratigility\Dispatch:__invoke in /workspace/FORUM/vendor/zendframework/zend-stratigility/src/Next.php:113
#3 Zend\Stratigility\Next:__invoke in /workspace/FORUM/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php:75
#2 Zend\Stratigility\MiddlewarePipe:__invoke in /workspace/FORUM/vendor/zendframework/zend-diactoros/src/Server.php:166
#1 Zend\Diactoros\Server:listen in /workspace/FORUM/vendor/flarum/core/src/Http/AbstractServer.php:38
#0 Flarum\Http\AbstractServer:listen in /workspace/FORUM/index.php:16
@pescu25
Copy link

pescu25 commented Jan 18, 2016

when did the error throw?

@luceos
Copy link
Member

luceos commented Jan 19, 2016

Please elaborate the issue, an issue for php 7 compatibility already exists. So please explain the exact situation for this to happen, closing until you provide more information @EliBing

@luceos luceos closed this as completed Jan 19, 2016
@fdelapena
Copy link

Same issues here in this thread, both 5.6 and 7.0.x with 0.1.0-beta5: https://discuss.flarum.org/d/2872-big-problems/3

No idea what did this issue. Tweaked some admin preferences and customized a bit of css, adjusted some permissions and added other admin staff. All forum users are getting the csrf_token check failure, even after cleaning storage/cache, restarting httpd/php-fpm and cleaning all domain prefs/cookies in the browser. Logging out was working properly even after importing a phpbb forum, so seems unrelated with any data import.

@fdelapena
Copy link

fdelapena commented Jun 12, 2016

Update: I've checked php logs and php-fpm user was unable to write to /var/lib/php/session, so not a bug. After changing folder permissions the issue is gone. Affected people: check your php-fpm user/group and session directory to make sure it is writable.
However, a better error handling for this exception would be nice, as it is not clear what is happening for the end user.

@luceos
Copy link
Member

luceos commented Jun 20, 2016

@fdelapena thanks for delving deeper into this issue!

@Bing1024
Copy link
Author

Bing1024 commented Jul 5, 2016

thanks,it's my fault

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants