Undefined variable: currentUser (View: /var/www/bookstack/resources/views/partials/sort.blade.php) #2281

Closed
opened 2026-02-05 03:33:41 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @col-panic on GitHub (Jun 8, 2021).

Describe the bug
After updating to Bookstack 21.05.1 with a SAML login, the login does not work anymore, showing

Undefined variable: currentUser (View: /var/www/bookstack/resources/views/partials/sort.blade.php)

Steps To Reproduce
Steps to reproduce the behavior:

  1. Update to Bookstackt 21.05.1
  2. Login via SAML provider (Keycloak 12)

Expected behavior
Login should work

Screenshots
grafik

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): 21.05.1
  • PHP Version: 7.4.20
  • Hosting Method (Nginx/Apache/Docker): Docker

Additional context
Keycloak SAML Login

Originally created by @col-panic on GitHub (Jun 8, 2021). **Describe the bug** After updating to Bookstack 21.05.1 with a SAML login, the login does not work anymore, showing ``` Undefined variable: currentUser (View: /var/www/bookstack/resources/views/partials/sort.blade.php) ``` **Steps To Reproduce** Steps to reproduce the behavior: 1. Update to Bookstackt 21.05.1 2. Login via SAML provider (Keycloak 12) **Expected behavior** Login should work **Screenshots** ![grafik](https://user-images.githubusercontent.com/1679857/121131231-c475ba80-c82f-11eb-96f0-9a79959aa0b1.png) **Your Configuration (please complete the following information):** - Exact BookStack Version (Found in settings): 21.05.1 - PHP Version: 7.4.20 - Hosting Method (Nginx/Apache/Docker): Docker **Additional context** Keycloak SAML Login
Author
Owner

@ssddanbrown commented on GitHub (Jun 8, 2021):

Hi @col-panic,
I think the code you're using may be outdated, That line has not used that variable since v21.04.
Here's the code as per the v21.05.1 release as an example:
https://github.com/BookStackApp/BookStack/blob/v21.05.1/resources/views/partials/sort.blade.php#L7

@ssddanbrown commented on GitHub (Jun 8, 2021): Hi @col-panic, I think the code you're using may be outdated, That line has not used that variable since v21.04. Here's the code as per the v21.05.1 release as an example: https://github.com/BookStackApp/BookStack/blob/v21.05.1/resources/views/partials/sort.blade.php#L7
Author
Owner

@col-panic commented on GitHub (Jun 9, 2021):

I see, that was an error on our site! Thank you for checking!

@col-panic commented on GitHub (Jun 9, 2021): I see, that was an error on our site! Thank you for checking!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2281