API subscribe on Nginx
Hello. I am using Nginx for Sendy.
On subscribe api call I get the following in the error log of Sendy
FastCGI sent in stderr: "PHP Notice: Undefined index: i in /home/USER/sendy/subscribe.php on line 96" while reading response header from upstream, client: IP.IP.IP.IP, server: sendy.myserver.foo, request: "POST /subscribe HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "sendy.myserver.foo"
Any ideas? Is it nginx/php-upstream issue or Sendy?
On subscribe api call I get the following in the error log of Sendy
FastCGI sent in stderr: "PHP Notice: Undefined index: i in /home/USER/sendy/subscribe.php on line 96" while reading response header from upstream, client: IP.IP.IP.IP, server: sendy.myserver.foo, request: "POST /subscribe HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "sendy.myserver.foo"
Any ideas? Is it nginx/php-upstream issue or Sendy?
This discussion has been closed.
Comments
In my case I was providing in the POST call Name and Email fields instead of name and email (case sensitive).
Nevertheless, who is that $_GET['i']?
$_GET['i']
. It's required for the API of the first version of Sendy.