Messages not working after upgrade to master

Status
Not open for further replies.

habib

New Member
Jun 20, 2018
2
0
1
47
I'm getting below error when I try to send message from portal or any other devices.

[error] 61168#0: *99 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Exception: Problem reading data from , in /var/www/fusionpbx/app/messages/message_send.php:53

Stack trace:

#0 /var/www/fusionpbx/app/messages/message_send.php(182): http_request('', 'POST', Array, '{"to":"0XXXXXXX...')

#1 {main}

thrown in /var/www/fusionpbx/app/messages/message_send.php on line 53" while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: fusionpbx, request: "POST /app/messages/message_send.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.1-fpm.sock:", host: "pbx.xxxxxx.com", referrer: "https://pbx.xxxxxx.com/app/messages/messages.php"

Can anyone help me please..
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,498
413
83
Just a quick guess would be you have an older version of php-fpm installed (FastCGI Process Manager). It looks like you may need v7.1.
 

habib

New Member
Jun 20, 2018
2
0
1
47
It's showing php-fpm 7.1
● php7.1-fpm.service - The PHP 7.1 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php7.1-fpm.service; enabled)
Active: active (running) since Wed 2020-01-29 16:29:59 AEDT; 38min ago
Docs: man:php-fpm7.1(8)
Main PID: 34272 (php-fpm7.1)
Status: "Processes active: 0, idle: 2, Requests: 33, slow: 0, Traffic: 0.1req/sec"
CGroup: /system.slice/php7.1-fpm.service
├─34272 php-fpm: master process (/etc/php/7.1/fpm/php-fpm.conf)
├─34273 php-fpm: pool www
└─34274 php-fpm: pool www

Jan 29 16:29:59 pbx02.primax.com.au systemd[1]: Started The PHP 7.1 FastCGI Process Manager.
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,498
413
83
Sorry, I mis read your error. It does clearly state the problem is in message_send.php.

The reason this is being thrown is because you do not have a valid URL as the first parameter to the http_request function.
message_send.php expects this URL to be set in the session variable $_SESSION['message']['http_destination']['text'].
 
  • Like
Reactions: JamesBorne
Status
Not open for further replies.