malikron3
By:
malikron3

Getting Error In Db login and News Not working

July 4, 2014 4.1k views

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"
2 Answers

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

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"

Have another answer? Share your knowledge.