Question

Getting Error In Db login and News Not working

I Getting Error In Db login and News Not working

2014/07/04 09:05:01 [error] 1601#0: *54 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: ref in /usr/share/nginx/html/includes/config.inc.php on line 8" while reading response header from upstream, client: 39.45.220.183, server: localhost, request: "GET /advertise.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "104.131.243.193", referrer: "http://104.131.243.193/terms.php"
2014/07/04 09:05:02 [error] 1601#0: *62 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: ref in /usr/share/nginx/html/includes/config.inc.php on line 8" while reading response header from upstream, client: 50.57.104.33, server: localhost, request: "GET /advertise.php HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "104.131.243.193"
2014/07/04 09:05:04 [error] 1601#0: *54 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected end of file in /usr/share/nginx/html/news.php on line 32" while reading response header from upstream, client: 39.45.220.183, server: localhost, request: "GET /news.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "104.131.243.193", referrer: "http://104.131.243.193/advertise.php"
2014/07/04 09:05:07 [error] 1601#0: *54 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: ref in /usr/share/nginx/html/includes/config.inc.php on line 8" while reading response header from upstream, client: 39.45.220.183, server: localhost, request: "GET /contactus.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "104.131.243.193", referrer: "http://104.131.243.193/advertise.php"
2014/07/04 09:05:08 [error] 1601#0: *54 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined variable: im2 in /usr/share/nginx/html/image.php on line 2
PHP message: PHP Warning:  imagedestroy() expects parameter 1 to be resource, null given in /usr/share/nginx/html/image.php on line 2" while reading response header from upstream, client: 39.45.220.183, server: localhost, request: "GET /image.php? HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "104.131.243.193", referrer: "http://104.131.243.193/contactus.php"
2014/07/04 09:05:11 [error] 1601#0: *54 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: username in /usr/share/nginx/html/signup.php on line 7
PHP message: PHP Notice:  Undefined index: ref in /usr/share/nginx/html/includes/config.inc.php on line 8" while reading response header from upstream, client: 39.45.220.183, server: localhost, request: "GET /signup.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "104.131.243.193", referrer: "http://104.131.243.193/contactus.php"
2014/07/04 09:05:11 [error] 1601#0: *54 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined variable: im2 in /usr/share/nginx/html/image.php on line 2
PHP message: PHP Warning:  imagedestroy() expects parameter 1 to be resource, null given in /usr/share/nginx/html/image.php on line 2" while reading response header from upstream, client: 39.45.220.183, server: localhost, request: "GET /image.php? HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "104.131.243.193", referrer: "http://104.131.243.193/signup.php"
2014/07/04 09:10:22 [error] 1601#0: *75 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected end of file in /usr/share/nginx/html/login.php on line 89" while reading response header from upstream, client: 39.45.220.183, server: localhost, request: "GET /login.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "104.131.243.193", referrer: "http://104.131.243.193/signup.php"
2014/07/04 09:10:25 [error] 1601#0: *77 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: username in /usr/share/nginx/html/signup.php on line 7
PHP message: PHP Notice:  Undefined index: ref in /usr/share/nginx/html/includes/config.inc.php on line 8" while reading response header from upstream, client: 39.45.220.183, server: localhost, request: "GET /signup.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "104.131.243.193", referrer: "http://104.131.243.193/contactus.php"
2014/07/04 09:10:25 [error] 1601#0: *77 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined variable: im2 in /usr/share/nginx/html/image.php on line 2
PHP message: PHP Warning:  imagedestroy() expects parameter 1 to be resource, null given in /usr/share/nginx/html/image.php on line 2" while reading response header from upstream, client: 39.45.220.183, server: localhost, request: "GET /image.php? HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "104.131.243.193", referrer: "http://104.131.243.193/signup.php"
2014/07/04 09:10:27 [error] 1601#0: *77 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected end of file in /usr/share/nginx/html/login.php on line 89" while reading response header from upstream, client: 39.45.220.183, server: localhost, request: "GET /login.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "104.131.243.193", referrer: "http://104.131.243.193/signup.php"
2014/07/04 09:10:28 [error] 1601#0: *75 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected end of file in /usr/share/nginx/html/login.php on line 89" while reading response header from upstream, client: 39.45.220.183, server: localhost, request: "GET /login.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "104.131.243.193", referrer: "http://104.131.243.193/signup.php"
2014/07/04 09:10:28 [error] 1601#0: *84 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected end of file in /usr/share/nginx/html/login.php on line 89" while reading response header from upstream, client: 39.45.220.183, server: localhost, request: "GET /login.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "104.131.243.193", referrer: "http://104.131.243.193/signup.php"
2014/07/04 09:10:40 [error] 1601#0: *84 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: username in /usr/share/nginx/html/signup.php on line 7
PHP message: PHP Notice:  Undefined index: ref in /usr/share/nginx/html/includes/config.inc.php on line 8" while reading response header from upstream, client: 39.45.220.183, server: localhost, request: "GET /signup.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "104.131.243.193", referrer: "http://104.131.243.193/contactus.php"
2014/07/04 09:10:40 [error] 1601#0: *84 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined variable: im2 in /usr/share/nginx/html/image.php on line 2
PHP message: PHP Warning:  imagedestroy() expects parameter 1 to be resource, null given in /usr/share/nginx/html/image.php on line 2" while reading response header from upstream, client: 39.45.220.183, server: localhost, request: "GET /image.php? HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "104.131.243.193", referrer: "http://104.131.243.193/signup.php"
2014/07/04 09:10:43 [error] 1601#0: *84 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: ref in /usr/share/nginx/html/includes/config.inc.php on line 8" while reading response header from upstream, client: 39.45.220.183, server: localhost, request: "GET /contactus.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "104.131.243.193", referrer: "http://104.131.243.193/signup.php"
2014/07/04 09:10:44 [error] 1601#0: *84 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined variable: im2 in /usr/share/nginx/html/image.php on line 2
PHP message: PHP Warning:  imagedestroy() expects parameter 1 to be resource, null given in /usr/share/nginx/html/image.php on line 2" while reading response header from upstream, client: 39.45.220.183, server: localhost, request: "GET /image.php? HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "104.131.243.193", referrer: "http://104.131.243.193/contactus.php"

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

root@test:~# sudo tail -n 25 /var/log/nginx/error.log 2014/07/04 10:38:31 [error] 7857#0: *148 FastCGI sent in stderr: “PHP message: P HP Notice: Undefined variable: im2 in /usr/share/nginx/html/image.php on line 2 PHP message: PHP Warning: imagedestroy() expects parameter 1 to be resource, nu ll given in /usr/share/nginx/html/image.php on line 2” while reading response he ader from upstream, client: 39.45.220.183, server: localhost, request: “GET /ima ge.php? HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php5-fpm.sock:”, host: “10 4.131.243.193”, referrer: “http://104.131.243.193/signup.php” 2014/07/04 10:38:41 [error] 7857#0: *148 FastCGI sent in stderr: “PHP message: P HP Notice: Undefined index: ref in /usr/share/nginx/html/includes/config.inc.ph p on line 8” while reading response header from upstream, client: 39.45.220.183, server: localhost, request: “POST /signup.php HTTP/1.1”, upstream: “fastcgi://u nix:/var/run/php5-fpm.sock:”, host: “104.131.243.193”, referrer: “http://104.131 .243.193/signup.php” 2014/07/04 10:38:41 [error] 7857#0: *148 FastCGI sent in stderr: “PHP message: P HP Notice: Undefined variable: im2 in /usr/share/nginx/html/image.php on line 2 PHP message: PHP Warning: imagedestroy() expects parameter 1 to be resource, nu ll given in /usr/share/nginx/html/image.php on line 2” while reading response he ader from upstream, client: 39.45.220.183, server: localhost, request: “GET /ima ge.php? HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php5-fpm.sock:”, host: “10 4.131.243.193”, referrer: “http://104.131.243.193/signup.php” 2014/07/04 10:38:45 [error] 7857#0: *148 FastCGI sent in stderr: “PHP message: P HP Notice: Undefined index: username in /usr/share/nginx/html/signup.php on lin e 7 PHP message: PHP Notice: Undefined index: ref in /usr/share/nginx/html/includes /config.inc.php on line 8” while reading response header from upstream, client: 39.45.220.183, server: localhost, request: “GET /signup.php HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php5-fpm.sock:”, host: “104.131.243.193”, referrer: “h ttp://104.131.243.193/signup.php” 2014/07/04 10:38:45 [error] 7857#0: *148 FastCGI sent in stderr: “PHP message: P HP Notice: Undefined variable: im2 in /usr/share/nginx/html/image.php on line 2 PHP message: PHP Warning: imagedestroy() expects parameter 1 to be resource, nu ll given in /usr/share/nginx/html/image.php on line 2” while reading response he ader from upstream, client: 39.45.220.183, server: localhost, request: “GET /ima ge.php? HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php5-fpm.sock:”, host: “10 4.131.243.193”, referrer: “http://104.131.243.193/signup.php” 2014/07/04 10:38:46 [error] 7857#0: *148 FastCGI sent in stderr: “PHP message: P HP Parse error: syntax error, unexpected end of file in /usr/share/nginx/html/l ogin.php on line 89” while reading response header from upstream, client: 39.45. 220.183, server: localhost, request: “GET /login.php HTTP/1.1”, upstream: “fastc gi://unix:/var/run/php5-fpm.sock:”, host: “104.131.243.193”, referrer: “http://1 04.131.243.193/signup.php” 2014/07/04 10:38:46 [error] 7857#0: *159 FastCGI sent in stderr: “PHP message: P HP Parse error: syntax error, unexpected end of file in /usr/share/nginx/html/l ogin.php on line 89” while reading response header from upstream, client: 39.45. 220.183, server: localhost, request: “GET /login.php HTTP/1.1”, upstream: “fastc gi://unix:/var/run/php5-fpm.sock:”, host: “104.131.243.193”, referrer: “http://1 04.131.243.193/signup.php” 2014/07/04 11:07:55 [error] 1051#0: *1 FastCGI sent in stderr: “PHP message: PHP Parse error: syntax error, unexpected end of file in /usr/share/nginx/html/log in.php on line 89” while reading response header from upstream, client: 96.250.2 46.177, server: localhost, request: “GET /login.php HTTP/1.1”, upstream: “fastcg i://unix:/var/run/php5-fpm.sock:”, host: “104.131.243.193” 2014/07/04 11:08:02 [error] 1051#0: *1 FastCGI sent in stderr: “PHP message: PHP Parse error: syntax error, unexpected end of file in /usr/share/nginx/html/new s.php on line 32” while reading response header from upstream, client: 96.250.24 6.177, server: localhost, request: “GET /news.php HTTP/1.1”, upstream: “fastcgi: //unix:/var/run/php5-fpm.sock:”, host: “104.131.243.193” 2014/07/04 11:08:07 [error] 1051#0: *5 FastCGI sent in stderr: “PHP message: PHP Parse error: syntax error, unexpected end of file in /usr/share/nginx/html/new s.php on line 32” while reading response header from upstream, client: 96.250.24 6.177, server: localhost, request: “HEAD /news.php HTTP/1.1”, upstream: “fastcgi ://unix:/var/run/php5-fpm.sock:”, host: “104.131.243.193” 2014/07/04 12:46:09 [error] 1017#0: *1 FastCGI sent in stderr: “PHP message: PHP Notice: Undefined index: ref in /usr/share/nginx/html/includes/config.inc.php on line 8” while reading response header from upstream, client: 39.45.220.183, s erver: localhost, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/var/run/ php5-fpm.sock:”, host: “104.131.243.193” 2014/07/04 12:46:12 [error] 1017#0: *1 FastCGI sent in stderr: “PHP message: PHP Notice: Undefined index: username in /usr/share/nginx/html/signup.php on line 7 PHP message: PHP Notice: Undefined index: ref in /usr/share/nginx/html/includes /config.inc.php on line 8” while reading response header from upstream, client: 39.45.220.183, server: localhost, request: “GET /signup.php HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php5-fpm.sock:”, host: “104.131.243.193”, referrer: “h ttp://104.131.243.193/” 2014/07/04 12:46:12 [error] 1017#0: *1 FastCGI sent in stderr: “PHP message: PHP Notice: Undefined variable: im2 in /usr/share/nginx/html/image.php on line 2 PHP message: PHP Warning: imagedestroy() expects parameter 1 to be resource, nu ll given in /usr/share/nginx/html/image.php on line 2” while reading response he ader from upstream, client: 39.45.220.183, server: localhost, request: “GET /ima ge.php? HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php5-fpm.sock:”, host: “10 4.131.243.193”, referrer: “http://104.131.243.193/signup.php” 2014/07/04 12:46:13 [error] 1017#0: *1 FastCGI sent in stderr: “PHP message: PHP Parse error: syntax error, unexpected end of file in /usr/share/nginx/html/new s.php on line 32” while reading response header from upstream, client: 39.45.220 .183, server: localhost, request: “GET /news.php HTTP/1.1”, upstream: “fastcgi:/ /unix:/var/run/php5-fpm.sock:”, host: “104.131.243.193”, referrer: “http://104.1 31.243.193/signup.php” 2014/07/04 12:46:14 [error] 1017#0: *1 FastCGI sent in stderr: “PHP message: PHP Notice: Undefined index: username in /usr/share/nginx/html/signup.php on line 7 PHP message: PHP Notice: Undefined index: ref in /usr/share/nginx/html/includes /config.inc.php on line 8” while reading response header from upstream, client: 39.45.220.183, server: localhost, request: “GET /signup.php HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php5-fpm.sock:”, host: “104.131.243.193”, referrer: “h ttp://104.131.243.193/” 2014/07/04 12:46:15 [error] 1017#0: *1 FastCGI sent in stderr: “PHP message: PHP Notice: Undefined variable: im2 in /usr/share/nginx/html/image.php on line 2 PHP message: PHP Warning: imagedestroy() expects parameter 1 to be resource, nu ll given in /usr/share/nginx/html/image.php on line 2” while reading response he ader from upstream, client: 39.45.220.183, server: localhost, request: “GET /ima ge.php? HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php5-fpm.sock:”, host: “10 4.131.243.193”, referrer: “http://104.131.243.193/signup.php” 2014/07/04 12:46:16 [error] 1017#0: *1 FastCGI sent in stderr: “PHP message: PHP Parse error: syntax error, unexpected end of file in /usr/share/nginx/html/log in.php on line 89” while reading response header from upstream, client: 39.45.22 0.183, server: localhost, request: “GET /login.php HTTP/1.1”, upstream: “fastcgi ://unix:/var/run/php5-fpm.sock:”, host: “104.131.243.193”, referrer: “http://104 .131.243.193/signup.php”

It says that there’s a php warning:

2014/07/04 09:10:44 [error] 1601#0: *84 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined variable: im2 in /usr/share/nginx/html/image.php on line 2
PHP message: PHP Warning:  imagedestroy() expects parameter 1 to be resource, null given in /usr/share/nginx/html/image.php on line 2