S
S
Sergey Bard2018-02-21 14:57:18
PHP
Sergey Bard, 2018-02-21 14:57:18

Who had a similar error?

Hello everyone, who will tell you for what reasons this code

if( isset($array[$key]) )
{
  unset($array[$key]);
}

can cause this error
[error] upstream prematurely closed connection while reading response header from upstream, client: xxxxxxxx, server: xxxxxxxxxx, request: "POST /xxxx/ HTTP/1.1", upstream: "xxxxxxxxxx", host: "xxxxxxxxxx", referrer: "ххххххх" I found an error in error.log because there is a white screen on the site and
it is this line that causes it .
unset($array[$key]);

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question