Have an account?
Get answers quicker by searching
It looks like you're new here. If you want to get involved, click one of these buttons!
Apply for Membership
In this Discussion
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?
Ok. I fixed the issue.
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']?
. It's required for the API of the first version of Sendy.
This discussion has been closed.