Monolog leads to WSOD #1406

Closed
opened 2023-07-23 22:00:16 +02:00 by nupplaPhil · 4 comments
Owner

Activating Monomog leads to a white screen of death
git
PHP8.0
SQL 10.5

2023-07-23T14:50:10Z app [WARNING]: E_WARNING: Cannot modify header information - headers already sent by (output started at /var/www/html/friend/addon/monolog/static/dependencies.config.php:1) {"code":2,"message":"Cannot modify header information - headers already sent by (output started at /var/www/html/friend/addon/monolog/static/dependencies.config.php:1)","file":"/var/www/html/friend/src/App.php","line":634} - {"file":null,"line":null,"function":"header","request-id":"64bd3e22570c0","uid":"1e6283","process_id":151922}
2023-07-23T14:50:10Z app [WARNING]: E_WARNING: Cannot modify header information - headers already sent by (output started at /var/www/html/friend/addon/monolog/static/dependencies.config.php:1) {"code":2,"message":"Cannot modify header information - headers already sent by (output started at /var/www/html/friend/addon/monolog/static/dependencies.config.php:1)","file":"/var/www/html/friend/src/App.php","line":699} - {"file":null,"line":null,"function":"header","request-id":"64bd3e22570c0","uid":"1e6283","process_id":151922}
2023-07-23T14:50:10Z app [WARNING]: E_WARNING: Cannot modify header information - headers already sent by (output started at /var/www/html/friend/addon/monolog/static/dependencies.config.php:1) {"code":2,"message":"Cannot modify header information - headers already sent by (output started at /var/www/html/friend/addon/monolog/static/dependencies.config.php:1)","file":"/var/www/html/friend/src/Core/System.php","line":494} - {"file":null,"line":null,"function":"header","request-id":"64bd3e22570c0","uid":"1e6283","process_id":151922}
2023-07-23T14:50:10Z app [WARNING]: E_WARNING: Cannot modify header information - headers already sent by (output started at /var/www/html/friend/addon/monolog/static/dependencies.config.php:1) {"code":2,"message":"Cannot modify header information - headers already sent by (output started at /var/www/html/friend/addon/monolog/static/dependencies.config.php:1)","file":"/var/www/html/friend/src/App/Page.php","line":412} - {"file":null,"line":null,"function":"header","request-id":"64bd3e22570c0","uid":"1e6283","process_id":151922}

Originally posted by @loma-one in /friendica/friendica-addons/pulls/1400#issuecomment-184651

Activating Monomog leads to a white screen of death git PHP8.0 SQL 10.5 ``` 2023-07-23T14:50:10Z app [WARNING]: E_WARNING: Cannot modify header information - headers already sent by (output started at /var/www/html/friend/addon/monolog/static/dependencies.config.php:1) {"code":2,"message":"Cannot modify header information - headers already sent by (output started at /var/www/html/friend/addon/monolog/static/dependencies.config.php:1)","file":"/var/www/html/friend/src/App.php","line":634} - {"file":null,"line":null,"function":"header","request-id":"64bd3e22570c0","uid":"1e6283","process_id":151922} 2023-07-23T14:50:10Z app [WARNING]: E_WARNING: Cannot modify header information - headers already sent by (output started at /var/www/html/friend/addon/monolog/static/dependencies.config.php:1) {"code":2,"message":"Cannot modify header information - headers already sent by (output started at /var/www/html/friend/addon/monolog/static/dependencies.config.php:1)","file":"/var/www/html/friend/src/App.php","line":699} - {"file":null,"line":null,"function":"header","request-id":"64bd3e22570c0","uid":"1e6283","process_id":151922} 2023-07-23T14:50:10Z app [WARNING]: E_WARNING: Cannot modify header information - headers already sent by (output started at /var/www/html/friend/addon/monolog/static/dependencies.config.php:1) {"code":2,"message":"Cannot modify header information - headers already sent by (output started at /var/www/html/friend/addon/monolog/static/dependencies.config.php:1)","file":"/var/www/html/friend/src/Core/System.php","line":494} - {"file":null,"line":null,"function":"header","request-id":"64bd3e22570c0","uid":"1e6283","process_id":151922} 2023-07-23T14:50:10Z app [WARNING]: E_WARNING: Cannot modify header information - headers already sent by (output started at /var/www/html/friend/addon/monolog/static/dependencies.config.php:1) {"code":2,"message":"Cannot modify header information - headers already sent by (output started at /var/www/html/friend/addon/monolog/static/dependencies.config.php:1)","file":"/var/www/html/friend/src/App/Page.php","line":412} - {"file":null,"line":null,"function":"header","request-id":"64bd3e22570c0","uid":"1e6283","process_id":151922} ``` _Originally posted by @loma-one in /friendica/friendica-addons/pulls/1400#issuecomment-184651_
Author
Owner

@loma-one - Do you have any other E_ERROR or similiar before/after it?

I activated monolog and it worked so far .. so maybe I oversee something

@loma-one - Do you have any other E_ERROR or similiar before/after it? I activated monolog and it worked so far .. so maybe I oversee something
nupplaPhil added the
2023.09
label 2023-07-23 22:01:06 +02:00
Contributor

I had the error before. Now I have read that it has been corrected and have activated the addon again on my test environment.

I had the error before. Now I have read that it has been corrected and have activated the addon again on my test environment.
Owner

There's a extra new line before the opening PHP tag in the addon/monolog/static/dependencies.config.php which triggers the header warning. I'm going to bed now so I can't make the change but feel free to do so when you have time.

There's a extra new line before the opening PHP tag in the `addon/monolog/static/dependencies.config.php` which triggers the header warning. I'm going to bed now so I can't make the change but feel free to do so when you have time.
Contributor

it was

it was
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: friendica/friendica-addons#1406
No description provided.