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

[BUG] Conversations generating PHP Errors Occasionally #44

Open
danry25 opened this issue Feb 23, 2024 · 3 comments
Open

[BUG] Conversations generating PHP Errors Occasionally #44

danry25 opened this issue Feb 23, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@danry25
Copy link
Contributor

danry25 commented Feb 23, 2024

We are seeing the following PHP Errors crop up occasionally:

2024/02/22 13:37:18 [error] 1823669#1823669: *4257603 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: HTTP_ORIGIN in /var/www/fusionpbx/app/webtexting/thread.php on line 3" while reading response header from upstream, client: 50.46.249.35, server: fusionpbx, request: "GET /app/webtexting/thread.php?extension_uuid=3e941b0f-0cef-4546-a615-147a011a0f68&number=REDACTED HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "REDACTED"
2024/02/22 13:37:33 [error] 1823669#1823669: *4257604 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: HTTP_ORIGIN in /var/www/fusionpbx/app/webtexting/thread.php on line 3" while reading response header from upstream, client: 50.46.249.35, server: fusionpbx, request: "GET /app/webtexting/thread.php?extension_uuid=3e941b0f-0cef-4546-a615-147a011a0f68&number=REDACTED HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "REDACTED"
@danry25 danry25 added the bug Something isn't working label Feb 23, 2024
@danry25
Copy link
Contributor Author

danry25 commented Feb 26, 2024

Still seeing inbound and outbound hook errors:

2024/02/26 12:00:47 [error] 1823669#1823669: *4454946 FastCGI sent in stderr: "PHP message: no webpush subscriptions for this extension" while reading response header from upstream, client: 2604:a880:4:1d0::5da:a000, server: fusionpbx, request: "POST /app/webtexting/inbound-hook.php?provider=accelerate-networks HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "redacted"
2024/02/26 12:04:16 [error] 1823669#1823669: *4455096 FastCGI sent in stderr: "PHP message: got 200 OK
PHP message: response body: stdClass Object
(
    [messageSent] => 1
    [message] => SMS Message sent to 1253258
)" while reading response header from upstream, client: 127.0.0.1, server: 127.0.0.1, request: "POST /app/webtexting/outbound-hook.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "localhost"
2024/02/26 12:10:25 [error] 1823669#1823669: *4455283 FastCGI sent in stderr: "PHP message: got 200 OK
PHP message: response body: stdClass Object
(
    [messageSent] => 1
    [message] => SMS Message sent to 1253258
)" while reading response header from upstream, client: 127.0.0.1, server: 127.0.0.1, request: "POST /app/webtexting/outbound-hook.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "localhost"
2024/02/26 12:10:42 [error] 1823669#1823669: *4455289 FastCGI sent in stderr: "PHP message: got 200 OK
PHP message: response body: stdClass Object
(
    [messageSent] => 1
    [message] => SMS Message sent to 1206390
)" while reading response header from upstream, client: 127.0.0.1, server: 127.0.0.1, request: "POST /app/webtexting/outbound-hook.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "localhost"
2024/02/26 12:10:44 [error] 1823670#1823670: *4455294 FastCGI sent in stderr: "PHP message: got 200 OK
PHP message: response body: stdClass Object
(
    [messageSent] => 1
    [message] => SMS Message sent to 1253258
)" while reading response header from upstream, client: 127.0.0.1, server: 127.0.0.1, request: "POST /app/webtexting/outbound-hook.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "localhost"
2024/02/26 12:11:37 [error] 1823669#1823669: *4455344 FastCGI sent in stderr: "PHP message: no webpush subscriptions for this extension" while reading response header from upstream, client: 2604:a880:4:1d0::5da:a000, server: fusionpbx, request: "POST /app/webtexting/inbound-hook.php?provider=accelerate-networks HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "redacted"
2024/02/26 12:12:29 [error] 1823669#1823669: *4455364 FastCGI sent in stderr: "PHP message: no webpush subscriptions for this extension" while reading response header from upstream, client: 2604:a880:4:1d0::5da:a000, server: fusionpbx, request: "POST /app/webtexting/inbound-hook.php?provider=accelerate-networks HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "redacted"
2024/02/26 12:13:48 [error] 1823669#1823669: *4455397 FastCGI sent in stderr: "PHP message: no webpush subscriptions for this extension" while reading response header from upstream, client: 2604:a880:4:1d0::5da:a000, server: fusionpbx, request: "POST /app/webtexting/inbound-hook.php?provider=accelerate-networks HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "redacted"
2024/02/26 12:15:49 [error] 1823669#1823669: *4455467 FastCGI sent in stderr: "PHP message: no webpush subscriptions for this extension" while reading response header from upstream, client: 2604:a880:4:1d0::5da:a000, server: fusionpbx, request: "POST /app/webtexting/inbound-hook.php?provider=accelerate-networks HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "redacted"
2024/02/26 12:18:19 [error] 1823669#1823669: *4455556 FastCGI sent in stderr: "PHP message: no webpush subscriptions for this extension" while reading response header from upstream, client: 2604:a880:4:1d0::5da:a000, server: fusionpbx, request: "POST /app/webtexting/inbound-hook.php?provider=accelerate-networks HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "redacted"
2024/02/26 12:40:06 [error] 1823669#1823669: *4456430 FastCGI sent in stderr: "PHP message: got 200 OK
PHP message: response body: stdClass Object
(
    [messageSent] => 1
    [message] => SMS Message sent to 1206650
)" while reading response header from upstream, client: 127.0.0.1, server: 127.0.0.1, request: "POST /app/webtexting/outbound-hook.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "localhost"
2024/02/26 12:42:15 [error] 1823669#1823669: *4456530 FastCGI sent in stderr: "PHP message: got 200 OK
PHP message: response body: stdClass Object
(
    [messageSent] => 1
    [message] => SMS Message sent to 1206909
)" while reading response header from upstream, client: 127.0.0.1, server: 127.0.0.1, request: "POST /app/webtexting/outbound-hook.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "localhost"
2024/02/26 12:43:40 [error] 1823669#1823669: *4456574 FastCGI sent in stderr: "PHP message: unknown error from push endpoint: Client error: `POST https://updates.push.services.mozilla.com/wpush/v2/gAAAAABlzsS6hdl6k5icUJUsTqLkk3BEVaTxdEi07JiWAigZ6oQDJ3ai_QtMv50wQtqQ0f5WyF935YHhyuYBvibHA_16E0miuI4Icee1WgtnEzGuNEurLcWlAJBY2rzO2FtqZeT_Is3XtR5uRJ2IagRxx7H-0llLbIvdtYJLsk0rwDnRY4gIjh8` resulted in a `413 Request Entity Too Large` response:
{"code":413,"errno":104,"error":"Payload Too Large","message":"This message is intended for a constrained device and is  (truncated...)" while reading response header from upstream, client: 2604:a880:4:1d0::5da:a000, server: fusionpbx, request: "POST /app/webtexting/inbound-hook.php?provider=accelerate-networks HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "redacted"

@uncheckederror uncheckederror changed the title Conversations generating PHP Errors Occasionally [BUG] Conversations generating PHP Errors Occasionally Sep 4, 2024
@dunkeltron
Copy link
Contributor

I think this is a case of using error_log ()instead of some other kind of _log()

@dunkeltron
Copy link
Contributor

@danry25 is this still an issue

@uncheckederror uncheckederror assigned danry25 and unassigned dunkeltron Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants