Problème fopen, fread et fclose...

alibaba -  
matthoffman Messages postés 499 Statut Membre -
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 499 Statut Membre 47
 
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