500 Error on page creation #4996

Closed
opened 2026-02-05 09:32:19 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @GamerClassN7 on GitHub (Oct 10, 2024).

Describe the Bug

When only one specific user creates page he get 500 error but bage is saved and after refresh it not happen in next aprox 40 min

Steps to Reproduce

  1. Go to Pages
  2. create Page
  3. Write Some text
  4. Click Save

Expected Behaviour

not to get the 500 but after saving page be redirected to new page

Screenshots or Additional Context

only log messages is this:
[2024-10-09 14:52:46] production.ERROR: Connection could not be established with host "localhost:587": stream_socket_client(): Unable to connect to localhost:587 (Connection refused) {"userId":67,"exception":"[object] (Symfony\\Component\\Mailer\\Exception\\TransportException(code: 0): Connection could not be established with host \"localhost:587\": stream_socket_client(): Unable to connect to localhost:587 (Connection refused) at /app/www/vendor/ssddanbrown/symfony-mailer/Transport/Smtp/Stream/SocketStream.php:154)

Whitch is wierd because we dont use SMTP with bookstack at all :(

Browser Details

No response

Exact BookStack Version

v24.05.4

Originally created by @GamerClassN7 on GitHub (Oct 10, 2024). ### Describe the Bug When only one specific user creates page he get 500 error but bage is saved and after refresh it not happen in next aprox 40 min ### Steps to Reproduce 1. Go to Pages 2. create Page 3. Write Some text 4. Click Save ### Expected Behaviour not to get the 500 but after saving page be redirected to new page ### Screenshots or Additional Context only log messages is this: `[2024-10-09 14:52:46] production.ERROR: Connection could not be established with host "localhost:587": stream_socket_client(): Unable to connect to localhost:587 (Connection refused) {"userId":67,"exception":"[object] (Symfony\\Component\\Mailer\\Exception\\TransportException(code: 0): Connection could not be established with host \"localhost:587\": stream_socket_client(): Unable to connect to localhost:587 (Connection refused) at /app/www/vendor/ssddanbrown/symfony-mailer/Transport/Smtp/Stream/SocketStream.php:154)` Whitch is wierd because we dont use SMTP with bookstack at all :( ### Browser Details _No response_ ### Exact BookStack Version v24.05.4
OVERLORD added the 🐛 Bug label 2026-02-05 09:32:19 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Oct 10, 2024):

Whitch is wierd because we dont use SMTP with bookstack at all :(

Does that mean you've configured email via other means? Or that you just don't expect email to be used at all?

I'm guessing a user is using email-based features in some way (watching/notifications) and that this fails to send causing an error.

@ssddanbrown commented on GitHub (Oct 10, 2024): > Whitch is wierd because we dont use SMTP with bookstack at all :( Does that mean you've configured email via other means? Or that you just don't expect email to be used at all? I'm guessing a user is using email-based features in some way (watching/notifications) and that this fails to send causing an error.
Author
Owner

@GamerClassN7 commented on GitHub (Oct 10, 2024):

Whitch is wierd because we dont use SMTP with bookstack at all :(

Does that mean you've configured email via other means? Or that you just don't expect email to be used at all?

I'm guessing a user is using email-based features in some way (watching/notifications) and that this fails to send causing an error.

I mean, users even have permission to setup/receive notification, nether configuration contains any email confirmation. It should be possible to switch email if it is not needed, right ? :) certainly there shouldn't be an error. :/

@GamerClassN7 commented on GitHub (Oct 10, 2024): > > Whitch is wierd because we dont use SMTP with bookstack at all :( > > Does that mean you've configured email via other means? Or that you just don't expect email to be used at all? > > I'm guessing a user is using email-based features in some way (watching/notifications) and that this fails to send causing an error. I mean, users even have permission to setup/receive notification, nether configuration contains any email confirmation. It should be possible to switch email if it is not needed, right ? :) certainly there shouldn't be an error. :/
Author
Owner

@ssddanbrown commented on GitHub (Oct 10, 2024):

I'm not sure I understand/follow.

We don't disable email features based upon whether email is configured, we generally expect it will be if email features are then used.
If you don't want users to handle/receive notifications, you can update their roles to not have the "Receive & manage notifications" role system permission.

@ssddanbrown commented on GitHub (Oct 10, 2024): I'm not sure I understand/follow. We don't disable email features based upon whether email is configured, we generally expect it will be if email features are then used. If you don't want users to handle/receive notifications, you can update their roles to not have the "Receive & manage notifications" role system permission.
Author
Owner

@ssddanbrown commented on GitHub (Nov 7, 2024):

Since there's been no further follow up I'll go ahead and close this off.

@ssddanbrown commented on GitHub (Nov 7, 2024): Since there's been no further follow up I'll go ahead and close this off.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4996