Problème fopen, fread et fclose...

Fermé
alibaba - Modifié par alibaba le 11/01/2012 à 23:17
matthoffman Messages postés 405 Date d'inscription lundi 24 mars 2008 Statut Membre Dernière intervention 22 janvier 2013 - 12 janv. 2012 à 10:10
Bonjour,

je suis en train d'installer un thème sur wordpress, mais lorsque j'active mon thème le message d'erreur suivant apparaît:

Warning: fopen(http://www.lesdessousdelactu.fr/wp-content/themes/comfy/style.css) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/42/d388167684/htdocs/wp-includes/functions.php on line 4452


Warning: fread(): supplied argument is not a valid stream resource in /homepages/42/d388167684/htdocs/wp-includes/functions.php on line 4455


Warning: fclose(): supplied argument is not a valid stream resource in /homepages/42/d388167684/htdocs/wp-includes/functions.php on line 4458


Warning: Cannot modify header information - headers already sent by (output started at /homepages/42/d388167684/htdocs/wp-includes/functions.php:4452) in /homepages/42/d388167684/htdocs/wp-includes/functions.php on line 861


Warning: Cannot modify header information - headers already sent by (output started at /homepages/42/d388167684/htdocs/wp-includes/functions.php:4452) in /homepages/42/d388167684/htdocs/wp-includes/functions.php on line 862


Je suis donc allé voir sur le fichier function dans wp-includes et voici l'encodage:



function get_file_data( $file, $default_headers, $context = '' ) {
// We don't need to write to the file, so just open for reading.
$fp = fopen( $file, 'r' );


// Pull only the first 8kiB of the file in.
$file_data = fread( $fp, 8192 );


// PHP will close file handle, but we are good citizens.
fclose( $fp );


Pouvez m'aider à modifier mes erreurs svp??





1 réponse

matthoffman Messages postés 405 Date d'inscription lundi 24 mars 2008 Statut Membre Dernière intervention 22 janvier 2013 47
Modifié par matthoffman le 12/01/2012 à 10:29
Dans ton php.ini, as tu bien pris la peine d'activer la fonction fopen ?

allow_url_fopen = On


Et en dessous rajoute cette ligne

allow_url_include = On
0