News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Undefined index: location Sources/Class-CurlFetchWeb.php Line: 153

Started by spiros, July 09, 2018, 06:21:56 AM

Previous topic - Next topic

spiros

Undefined index: location "Class-CurlFetchWeb.php"

Not sure why I get this error (php 7.1).

148: 'body' => $body,
149: 'size' => $curl_info['download_content_length'],
150: );
151:
152: // If this a redirect with a location header and we have not given up, then do it again
==>153: if (preg_match('~30[127]~i', $http_code) === 1 && $this->headers['location'] != '' && $this->current_redirect <= $this->max_redirect)
154: {
155: $this->current_redirect++;
156: $header_location = $this->get_redirect_url($url, $this->headers['location']);
157: $this->redirect($header_location, $url);
158: }
159: }

Arantor


Advertisement: