By Joe Mendoza
Ubuntu LEMP on 14.04
About 2-1/2 weeks ago we started receiving this intermittent error in our error logs:
2018/01/23 16:38:14 [error] 7003#0: *585202 FastCGI sent in stderr: “PHP message: PHP Notice: Undefined index: p in /usr/share/nginx/html/public/make-pdf/generate-graphs.php on line 5” while reading response header from upstream, client: 45.55.202.223, server: localhost, request: “GET /make-pdf/generate-graphs.php?s=triangle&c=b5 HTTP/1.0”, upstream: “fastcgi://unix:/var/run/php5-fpm.sock:”, host: “45.55.202.223”
The error started occurring randomly as no code updates have been applied in over 2 months - not sure what may have changed for this problem to begin occurring but any help troubleshooting would be appreciated.
I have tried restarting php5-fpm and also restarting nginx but they do not seem to help the problem.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
It appears that whatever the variable p represents is sometimes not properly set. I would recommend reviewing your php-fpm logs in /var/log/php-fpm/ as there may be more detail shown there to help you to track down the issue.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.