Cannot Login - explode(): Passing null to parameter #2 ($string) for saml2 in config file (but never used it!) #3899

Closed
opened 2026-02-05 07:48:18 +03:00 by OVERLORD · 10 comments
Owner

Originally created by @sebzan on GitHub (Jul 4, 2023).

Describe the Bug

When accessing my Bookstack app on my Synology suddenly an error message shows up about "explode(): Passing null to parameter #2 ($string)" in Config file Bookstack.

I can see the login page but when I try to login I come to an error page.

Funny thing is that I´m not even using saml2 in any way, newer have!

I can see in Portainer that there have been an update at "2023-07-03 09:03:24" (local time) for the image - and the application worked the day before yesterday....

I'm using the latest image, solidnerd image.

Steps to Reproduce

  1. Go to login page - see error message at the top of page
  2. Try to login
  3. Landing on a 404 page - error message at the top of page

Expected Behaviour

  1. Go to login page
  2. Login
  3. Get logged in

Screenshots or Additional Context

This is the error message on top of the screen:
_Deprecated
explode(): Passing null to parameter #2 ($string) of type string is deprecated in
/var/www/bookstack/app/Config/saml2.php
on line 17_

2023-07-04_12h18_43
2023-07-04_12h19_00

Browser Details

Latest chromeversion on Windows 10 (latest)

Exact BookStack Version

23.6.0

PHP Version

8.2.7

Hosting Environment

Im running Bookstack via Docker on my Synology station.

Synology OS: DSM 7.2-64570 Update 1
Synology model: DS720+
RAM: 10 GB
Docker version: Latest, "Container Manager"

Originally created by @sebzan on GitHub (Jul 4, 2023). ### Describe the Bug When accessing my Bookstack app on my Synology suddenly an error message shows up about "explode(): Passing null to parameter #2 ($string)" in Config file Bookstack. I can see the login page but when I try to login I come to an error page. Funny thing is that I´m not even using saml2 in any way, newer have! I can see in Portainer that there have been an update at "2023-07-03 09:03:24" (local time) for the image - and the application worked the day before yesterday.... I'm using the latest image, solidnerd image. ### Steps to Reproduce 1. Go to login page - see error message at the top of page 2. Try to login 3. Landing on a 404 page - error message at the top of page ### Expected Behaviour 1. Go to login page 2. Login 3. Get logged in ### Screenshots or Additional Context This is the error message on top of the screen: _Deprecated : explode(): Passing null to parameter #2 ($string) of type string is deprecated in /var/www/bookstack/app/Config/saml2.php on line 17_ ![2023-07-04_12h18_43](https://github.com/BookStackApp/BookStack/assets/22288383/fa8ea041-d72b-4080-887b-d064d5d243f7) ![2023-07-04_12h19_00](https://github.com/BookStackApp/BookStack/assets/22288383/ffc5d798-2da2-4281-a1e3-b8b1025d75f9) ### Browser Details Latest chromeversion on Windows 10 (latest) ### Exact BookStack Version 23.6.0 ### PHP Version 8.2.7 ### Hosting Environment Im running Bookstack via Docker on my Synology station. Synology OS: DSM 7.2-64570 Update 1 Synology model: DS720+ RAM: 10 GB Docker version: Latest, "Container Manager"
OVERLORD added the 🐛 Bug label 2026-02-05 07:48:18 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jul 4, 2023):

Hi @sebzan,
You have not stated which docker image you're using, but I'm assuming the solidnerd image?
If so, please try updating the image in use as they patched this issue yesterday.

@ssddanbrown commented on GitHub (Jul 4, 2023): Hi @sebzan, You have not stated which docker image you're using, but I'm assuming the solidnerd image? If so, please try updating the image in use as they patched this issue yesterday.
Author
Owner

@sebzan commented on GitHub (Jul 4, 2023):

Hi,

Sorry, updated the bugreport now, using the latest image...

BR Zeb

@sebzan commented on GitHub (Jul 4, 2023): Hi, Sorry, updated the bugreport now, using the latest image... BR Zeb
Author
Owner

@ssddanbrown commented on GitHub (Jul 4, 2023):

@sebzan Can I confirm the method you're using to check you're using the latest image?

@ssddanbrown commented on GitHub (Jul 4, 2023): @sebzan Can I confirm the method you're using to check you're using the latest image?
Author
Owner

@sebzan commented on GitHub (Jul 4, 2023):

In portainer it looks like this:
image
image

I´ve also recreated the container for bookstack just now via Portainer and pulled the latest image and that did not work either.

@sebzan commented on GitHub (Jul 4, 2023): In portainer it looks like this: ![image](https://github.com/BookStackApp/BookStack/assets/22288383/806f81dd-dbd3-4a13-ae21-988876415d3d) ![image](https://github.com/BookStackApp/BookStack/assets/22288383/f36cc1ca-7a08-4c30-a142-661bfc646b2e) I´ve also recreated the container for bookstack just now via Portainer and pulled the latest image and that did not work either.
Author
Owner

@ssddanbrown commented on GitHub (Jul 4, 2023):

Okay, thanks @sebzan for confirming.
If you use solidnerd/bookstack:23.6.0-1 instead of solidnerd/bookstack:latest that should get you to the patched version.
Looks like their patched container image isn't tagged to latest, which I've raised with the solidnerd container team.

@ssddanbrown commented on GitHub (Jul 4, 2023): Okay, thanks @sebzan for confirming. If you use `solidnerd/bookstack:23.6.0-1` instead of `solidnerd/bookstack:latest` that should get you to the patched version. Looks like their patched container image isn't tagged to `latest`, which [I've raised with the solidnerd container](https://github.com/solidnerd/docker-bookstack/issues/410) team.
Author
Owner

@sebzan commented on GitHub (Jul 4, 2023):

Okay @ssddanbrown;

I´ll try to edit the image version in portainer and the pull that image down... Will get back.

@sebzan commented on GitHub (Jul 4, 2023): Okay @ssddanbrown; I´ll try to edit the image version in portainer and the pull that image down... Will get back.
Author
Owner

@sebzan commented on GitHub (Jul 4, 2023):

@ssddanbrown:
[First exuse me for my lacking skills on container as such. I´ve installed the bookstack app as a "stack" via Portainer following a post from "Marius hosting"].

I´m trying to change the image version as you mentioned above in portainer but I really seems to miss something because where i´m filling in the new image version in "Container> Bookstack> Container details and Create image" nothing happends after updating. And of course I´m a bit carefule since I have a lot of doumentation in the app. (db). :)

Where do I actually change from using the ":latest (not latest) image version to the one you mention without messing up the DB after puling down and creating a new image?

@sebzan commented on GitHub (Jul 4, 2023): @ssddanbrown: [First exuse me for my lacking skills on container as such. I´ve installed the bookstack app as a "stack" via Portainer following a post from "Marius hosting"]. I´m trying to change the image version as you mentioned above in portainer but I really seems to miss something because where i´m filling in the new image version in "Container> Bookstack> Container details and Create image" nothing happends after updating. And of course I´m a bit carefule since I have a lot of doumentation in the app. (db). :) Where do I actually change from using the ":latest (not latest) image version to the one you mention without messing up the DB after puling down and creating a new image?
Author
Owner

@ssddanbrown commented on GitHub (Jul 4, 2023):

@sebzan Unfortunately I'm not familiar with portainer at all.
I was kind of hoping you'd just be able to change the image form field you had in your screenshot above.

Go careful though! Ideally make sure you have backups of docker volumes in use, and/or backups/snapshots of the entire host system if possible.

@ssddanbrown commented on GitHub (Jul 4, 2023): @sebzan Unfortunately I'm not familiar with portainer at all. I was kind of hoping you'd just be able to change the `image` form field you had in your screenshot above. Go careful though! Ideally make sure you have backups of docker volumes in use, and/or backups/snapshots of the entire host system if possible.
Author
Owner

@sebzan commented on GitHub (Jul 4, 2023):

@ssddanbrown: I´ll will do a more exact check later on today and then might have a go agian. :)

But, If the latest released version (solidnerd/bookstack:23.6.0-1) is fixed, since it´s actually is a problem, then I don´t need to do anything more than just "pull down" the image again in portainer and viola. :) - So let´s hope your friends will fix it quickly. :)

@sebzan commented on GitHub (Jul 4, 2023): @ssddanbrown: I´ll will do a more exact check later on today and then might have a go agian. :) But, If the latest released version (solidnerd/bookstack:23.6.0-1) is fixed, since it´s actually is a problem, then I don´t need to do anything more than just "pull down" the image again in portainer and viola. :) - So let´s hope your friends will fix it quickly. :)
Author
Owner

@sebzan commented on GitHub (Jul 4, 2023):

@ssddanbrown:
Workaround fixed for the error in "the latest build" - everything is working again. :)

This bug can be closed.

@sebzan commented on GitHub (Jul 4, 2023): @ssddanbrown: Workaround fixed for the error in "the latest build" - everything is working again. :) This bug can be closed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3899