Bonjour
Je suis sous joomla 2.5.16 avec VM2.0.22a
Mais au panneau de configuration il affiche version inconnue et quand je clique dessus voici l'erreur :
Malheuresement je ne sais pas vraiment comment corriger cet erreur si quelqun serait m'aider svp, voici le fichier stream.php ligne 124 à 170 :
Je suis sous joomla 2.5.16 avec VM2.0.22a
Mais au panneau de configuration il affiche version inconnue et quand je clique dessus voici l'erreur :
Warning: fopen(http://update.joomlack.fr/mod_maximenuck_update.xml) [function.fopen]: failed to open stream: Connection timed out in /homez.734/mydemo/www/libraries/joomla/http/transport/stream.php on line 125
Warning: stream_get_meta_data() expects parameter 1 to be resource, boolean given in /homez.734/mydemo/www/libraries/joomla/http/transport/stream.php on line 128
Warning: stream_get_contents() expects parameter 1 to be resource, boolean given in /homez.734/mydemo/www/libraries/joomla/http/transport/stream.php on line 131
Warning: fclose() expects parameter 1 to be resource, boolean given in /homez.734/mydemo/www/libraries/joomla/http/transport/stream.php on line 134
Catchable fatal error: Argument 1 passed to JHttpTransportStream::getResponse() must be an array, null given, called in /homez.734/mydemo/www/libraries/joomla/http/transport/stream.php on line 136 and defined in /homez.734/mydemo/www/libraries/joomla/http/transport/stream.php on line 150
Warning: stream_get_meta_data() expects parameter 1 to be resource, boolean given in /homez.734/mydemo/www/libraries/joomla/http/transport/stream.php on line 128
Warning: stream_get_contents() expects parameter 1 to be resource, boolean given in /homez.734/mydemo/www/libraries/joomla/http/transport/stream.php on line 131
Warning: fclose() expects parameter 1 to be resource, boolean given in /homez.734/mydemo/www/libraries/joomla/http/transport/stream.php on line 134
Catchable fatal error: Argument 1 passed to JHttpTransportStream::getResponse() must be an array, null given, called in /homez.734/mydemo/www/libraries/joomla/http/transport/stream.php on line 136 and defined in /homez.734/mydemo/www/libraries/joomla/http/transport/stream.php on line 150
// Open the stream for reading.
$stream = fopen((string) $uri, 'r', false, $context);
// Get the metadata for the stream, including response headers.
$metadata = stream_get_meta_data($stream);
// Get the contents from the stream.
$content = stream_get_contents($stream);
// Close the stream.
fclose($stream);
return $this->getResponse($metadata['wrapper_data'], $content);
}
/**
* Method to get a response object from a server response.
*
* @param array $headers The response headers as an array.
* @param string $body The response body as a string.
*
* @return JHttpResponse
*
* @since 11.3
* @throws UnexpectedValueException
*/
protected function getResponse(array $headers, $body)
{
// Create the response object.
$return = new JHttpResponse;
// Set the body for the response.
$return->body = $body;
// Get the response code from the first offset of the response headers.
preg_match('/[0-9]{3}/', array_shift($headers), $matches);
$code = $matches[0];
if (is_numeric($code))
{
$return->code = (int) $code;
}
// No valid response code was detected.
else
{
throw new UnexpectedValueException('No HTTP response code found.');
}
$stream = fopen((string) $uri, 'r', false, $context);
// Get the metadata for the stream, including response headers.
$metadata = stream_get_meta_data($stream);
// Get the contents from the stream.
$content = stream_get_contents($stream);
// Close the stream.
fclose($stream);
return $this->getResponse($metadata['wrapper_data'], $content);
}
/**
* Method to get a response object from a server response.
*
* @param array $headers The response headers as an array.
* @param string $body The response body as a string.
*
* @return JHttpResponse
*
* @since 11.3
* @throws UnexpectedValueException
*/
protected function getResponse(array $headers, $body)
{
// Create the response object.
$return = new JHttpResponse;
// Set the body for the response.
$return->body = $body;
// Get the response code from the first offset of the response headers.
preg_match('/[0-9]{3}/', array_shift($headers), $matches);
$code = $matches[0];
if (is_numeric($code))
{
$return->code = (int) $code;
}
// No valid response code was detected.
else
{
throw new UnexpectedValueException('No HTTP response code found.');
}
Commentaire