Vous n'êtes pas identifié.
Annonce
Mettez-vous à jour ! WordPress 3.5.1 est disponible en français.
Annonce 1 : Le Codex en français a besoin de vous pour avancer !
Annonce 2 : Avant de poster, n'oubliez pas de faire une petite recherche et de lire les règles de ce forum.
Annonce 3 : Lisez notre blog, il regorge de bonnes informations.
Annonce 4 : Rejoignez-nous sur Facebook, Google + et sur Twitter
Pages: 1
- Index
- » Support de WordPress
- » [Résolu] Warning : "index.php on line 17" et problème avec "wp-blog-header.php"
#1 27-01-2013 21:40:23
- MaxouBilou
- Membre WP
- Date d'inscription: 27-01-2013
- Messages: 5
[Résolu] Warning : "index.php on line 17" et problème avec "wp-blog-header.php"
Bonjour,
- Version de WordPress :
3.5.1
- Version de PHP/MySQL :
5.3.18/5.1.66-cll
- Thème utilisé :
TwentyEleven
- Nom de l'hebergeur :
RedHeberg
- Adresse du site :
justinepaper.fr
Problème(s) rencontré(s) :
Récemment, le 26 janvier 2013, j’ai mis à jour mon Wordpress de la version 3.4.X à la version 3.5.1.
Depuis, j’ai le message suivant qui apparait lorsque j’essaye de m’y connecter :
Code: html
Warning: require() [function.require]: open_basedir restriction in effect. File(/home2/dyrvgwdy/public_html/wp-blog-header.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home2/dyrvgwdy/public_html/index.php on line 17
Warning: require(/home2/dyrvgwdy/public_html/wp-blog-header.php) [function.require]: failed to open stream: Operation not permitted in /home2/dyrvgwdy/public_html/index.php on line 17
Warning: require() [function.require]: open_basedir restriction in effect. File(/home2/dyrvgwdy/public_html/wp-blog-header.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home2/dyrvgwdy/public_html/index.php on line 17
Warning: require(/home2/dyrvgwdy/public_html/wp-blog-header.php) [function.require]: failed to open stream: Operation not permitted in /home2/dyrvgwdy/public_html/index.php on line 17
Fatal error: require() [function.require]: Failed opening required './wp-blog-header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/dyrvgwdy/public_html/index.php on line 17
J'ai déjà effectué quelques recherches sur le web mais en vain.
dans mon dossier "public_html" qui se trouve à la racine j'ai bien un fichier "index.php" ayant comme permission "644" qui contient :
Code: html
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
et un autre fichier "wp-blog-header.php" ayant comme permission "644" contenant :
Code: html
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( !isset($wp_did_header) ) {
$wp_did_header = true;
require_once( dirname(__FILE__) . '/wp-load.php' );
wp();
require_once( ABSPATH . WPINC . '/template-loader.php' );
}
Je ne sais pas vraiment quoi faire pour refaire fonctionner tout cela sans aucune perte de contenu.
Je dois ajouter qu’à la racine de mon site se trouve un autre dossier nommé « www » dans lequel se trouve aussi un « index.php » (permission 644) et un « wp-blog-header.php » (permission 644) contenant respectivement :
Code: html
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
et
Code: html
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( !isset($wp_did_header) ) {
$wp_did_header = true;
require_once( dirname(__FILE__) . '/wp-load.php' );
wp();
require_once( ABSPATH . WPINC . '/template-loader.php' );
}
Je recherche donc une réponse constructive qui puisse me permettre de comprendre les erreurs énoncées ci-dessus.
Je vous remercie par avance.
Hors ligne
#2 27-01-2013 23:03:00
- MaxouBilou
- Membre WP
- Date d'inscription: 27-01-2013
- Messages: 5
Re: [Résolu] Warning : "index.php on line 17" et problème avec "wp-blog-header.php"
bonjour,
le problème rencontré ci-dessus s'est en allé comme par "magie"...Mais maintenant je n'arrive plus à accéder à ma page wp-admin. En effet, l'erreur est la suivant, lorsque je m'y connecte :
Code: html
Warning: Cannot modify header information - headers already sent by (output started at /home2/dyrvgwdy/public_html/wp-config.php:1) in /home2/dyrvgwdy/public_html/wp-includes/pluggable.php on line 876
Hors ligne
#3 28-01-2013 10:17:36
- Guy
- Blogueur
- Date d'inscription: 07-04-2011
- Messages: 14198
Re: [Résolu] Warning : "index.php on line 17" et problème avec "wp-blog-header.php"
IL semble que tout ne soir pas clair dans tes répertoires d'installation, pourquoi existe t il un répertoire "www" et un répertoire "public_html"?
Hors ligne
#4 28-01-2013 18:10:13
- MaxouBilou
- Membre WP
- Date d'inscription: 27-01-2013
- Messages: 5
Re: [Résolu] Warning : "index.php on line 17" et problème avec "wp-blog-header.php"
Je pense avoir été clair, et ça m'a paru étrange aussi. Donc j'ai effectivement à la racine deux dossier :
"public_html" et "www" dans lesquelles Il y a exactement les mêmes fichiers de Wordpress, dans l'un comme dans l'autre.
Les messages d'erreurs apparaissent quand j'essaye de me connecter :
Code: html
Warning: Cannot modify header information - headers already sent by (output started at /home2/dyrvgwdy/public_html/wp-config.php:1) in /home2/dyrvgwdy/public_html/wp-includes/pluggable.php on line 876
et me déconnecter :
Code: html
Warning: Cannot modify header information - headers already sent by (output started at /home2/dyrvgwdy/public_html/wp-config.php:1) in /home2/dyrvgwdy/public_html/wp-login.php on line 368
Warning: Cannot modify header information - headers already sent by (output started at /home2/dyrvgwdy/public_html/wp-config.php:1) in /home2/dyrvgwdy/public_html/wp-login.php on line 380
Warning: Cannot modify header information - headers already sent by (output started at /home2/dyrvgwdy/public_html/wp-config.php:1) in /home2/dyrvgwdy/public_html/wp-includes/pluggable.php on line 697
Warning: Cannot modify header information - headers already sent by (output started at /home2/dyrvgwdy/public_html/wp-config.php:1) in /home2/dyrvgwdy/public_html/wp-includes/pluggable.php on line 698
Warning: Cannot modify header information - headers already sent by (output started at /home2/dyrvgwdy/public_html/wp-config.php:1) in /home2/dyrvgwdy/public_html/wp-includes/pluggable.php on line 699
Warning: Cannot modify header information - headers already sent by (output started at /home2/dyrvgwdy/public_html/wp-config.php:1) in /home2/dyrvgwdy/public_html/wp-includes/pluggable.php on line 700
Warning: Cannot modify header information - headers already sent by (output started at /home2/dyrvgwdy/public_html/wp-config.php:1) in /home2/dyrvgwdy/public_html/wp-includes/pluggable.php on line 701
Warning: Cannot modify header information - headers already sent by (output started at /home2/dyrvgwdy/public_html/wp-config.php:1) in /home2/dyrvgwdy/public_html/wp-includes/pluggable.php on line 702
Warning: Cannot modify header information - headers already sent by (output started at /home2/dyrvgwdy/public_html/wp-config.php:1) in /home2/dyrvgwdy/public_html/wp-includes/pluggable.php on line 705
Warning: Cannot modify header information - headers already sent by (output started at /home2/dyrvgwdy/public_html/wp-config.php:1) in /home2/dyrvgwdy/public_html/wp-includes/pluggable.php on line 706
Warning: Cannot modify header information - headers already sent by (output started at /home2/dyrvgwdy/public_html/wp-config.php:1) in /home2/dyrvgwdy/public_html/wp-includes/pluggable.php on line 707
Warning: Cannot modify header information - headers already sent by (output started at /home2/dyrvgwdy/public_html/wp-config.php:1) in /home2/dyrvgwdy/public_html/wp-includes/pluggable.php on line 708
Warning: Cannot modify header information - headers already sent by (output started at /home2/dyrvgwdy/public_html/wp-config.php:1) in /home2/dyrvgwdy/public_html/wp-includes/pluggable.php on line 711
Warning: Cannot modify header information - headers already sent by (output started at /home2/dyrvgwdy/public_html/wp-config.php:1) in /home2/dyrvgwdy/public_html/wp-includes/pluggable.php on line 712
Warning: Cannot modify header information - headers already sent by (output started at /home2/dyrvgwdy/public_html/wp-config.php:1) in /home2/dyrvgwdy/public_html/wp-includes/pluggable.php on line 713
Warning: Cannot modify header information - headers already sent by (output started at /home2/dyrvgwdy/public_html/wp-config.php:1) in /home2/dyrvgwdy/public_html/wp-includes/pluggable.php on line 714
Warning: Cannot modify header information - headers already sent by (output started at /home2/dyrvgwdy/public_html/wp-config.php:1) in /home2/dyrvgwdy/public_html/wp-includes/pluggable.php on line 876
je ne sais vraiment plus quoi faire 
Hors ligne
#5 28-01-2013 19:27:43
- Guy
- Blogueur
- Date d'inscription: 07-04-2011
- Messages: 14198
Re: [Résolu] Warning : "index.php on line 17" et problème avec "wp-blog-header.php"
Je parlais de ton installation en disant que ce n'était pas clair, non de toi 
A priori, je dirai que le répertoire www ne sert à rien, mais il faudrait le demander à ton hébergeur.
Tu peux essayer une réinstallation manuelle de WordPress au cas où la précédente ne se soit pas bien passée. Avais tu touché au fichier wp-config.php?
Hors ligne
#6 29-01-2013 01:03:14
- MaxouBilou
- Membre WP
- Date d'inscription: 27-01-2013
- Messages: 5
Re: [Résolu] Warning : "index.php on line 17" et problème avec "wp-blog-header.php"
Bonjour,
1) J’ai trouvé l’explication pour mes dossiers "public_html" et "www". Apparemment mon site se trouve dans "public_html". "www" est simplement un alias c.-à-d. un miroir de mon site côté serveur. Aussi, il ne faut pas toucher aux fichiers se trouvant dans le dossier "www". Or, ne sachant pas du tout cela, depuis la création de mon blog, j’ai effectué des modifs (dans le CSS la plupart du temps) depuis le dossier "www" et non pas "public_html". Est-ce réellement problématique ? Surtout que cela fait depuis un an que je travaille dessus sans aucun souci. Réellement mes soucis sont apparus lors de la mise à jour vers Wordpress 3.5.1
2) Comment faire une réinstallation manuelle ? À la base je me suis dit que j’allais essayer de rétrograder wordpress de la version 3.5.1 vers la version 3.4.2. Mais dans les tutos (http://etuts.org/manually-downgrade-wordpress/) , il est demandé de se déconnecter de son interface administrateur, ce qui m’est impossible, car je reçois les warnings évoqués ci-dessus et donc je suis condamné à rester connecté.
3) Pour vous répondre, non je n’ai pas touché au fichier wp-config.php. Enfin, pas directement. Seulement deux plugins ont modifié ce fichier :
Code: html
//define('WP_CACHE', true); //Added by WP-Cache Manager
define( 'WPCACHEHOME', '/home/dyrvgwdy/public_html/wp-content/plugins/wp-super-cache/' ); //Added by WP-Cache Manager
et le préfixe de mes tables MySQL a été modifié, histoire de sécuriser un peu mon blog. L’ensemble de ces modifications ne m’a jamais posé de problème avant d’avoir installé la version de Wordpress 3.5.1.
Pour info, je vous mets aussi les lignes posant problème :
Code: html
function wp_clear_auth_cookie() {
do_action('clear_auth_cookie');
setcookie( AUTH_COOKIE, ' ', time() - YEAR_IN_SECONDS, ADMIN_COOKIE_PATH, COOKIE_DOMAIN );
setcookie( SECURE_AUTH_COOKIE, ' ', time() - YEAR_IN_SECONDS, ADMIN_COOKIE_PATH, COOKIE_DOMAIN );
setcookie( AUTH_COOKIE, ' ', time() - YEAR_IN_SECONDS, PLUGINS_COOKIE_PATH, COOKIE_DOMAIN );
setcookie( SECURE_AUTH_COOKIE, ' ', time() - YEAR_IN_SECONDS, PLUGINS_COOKIE_PATH, COOKIE_DOMAIN );
setcookie( LOGGED_IN_COOKIE, ' ', time() - YEAR_IN_SECONDS, COOKIEPATH, COOKIE_DOMAIN );
setcookie( LOGGED_IN_COOKIE, ' ', time() - YEAR_IN_SECONDS, SITECOOKIEPATH, COOKIE_DOMAIN );
// Old cookies
setcookie( AUTH_COOKIE, ' ', time() - YEAR_IN_SECONDS, COOKIEPATH, COOKIE_DOMAIN );
setcookie( AUTH_COOKIE, ' ', time() - YEAR_IN_SECONDS, SITECOOKIEPATH, COOKIE_DOMAIN );
setcookie( SECURE_AUTH_COOKIE, ' ', time() - YEAR_IN_SECONDS, COOKIEPATH, COOKIE_DOMAIN );
setcookie( SECURE_AUTH_COOKIE, ' ', time() - YEAR_IN_SECONDS, SITECOOKIEPATH, COOKIE_DOMAIN );
// Even older cookies
setcookie( USER_COOKIE, ' ', time() - YEAR_IN_SECONDS, COOKIEPATH, COOKIE_DOMAIN );
setcookie( PASS_COOKIE, ' ', time() - YEAR_IN_SECONDS, COOKIEPATH, COOKIE_DOMAIN );
setcookie( USER_COOKIE, ' ', time() - YEAR_IN_SECONDS, SITECOOKIEPATH, COOKIE_DOMAIN );
setcookie( PASS_COOKIE, ' ', time() - YEAR_IN_SECONDS, SITECOOKIEPATH, COOKIE_DOMAIN );
}
Ci-dessus se trouvent les lignes 697 à 714 du fichier "public_html/wp-includes/pluggable.php"
Code: html
function wp_redirect($location, $status = 302) {
global $is_IIS;
$location = apply_filters('wp_redirect', $location, $status);
$status = apply_filters('wp_redirect_status', $status, $location);
if ( !$location ) // allows the wp_redirect filter to cancel a redirect
return false;
$location = wp_sanitize_redirect($location);
if ( !$is_IIS && php_sapi_name() != 'cgi-fcgi' )
status_header($status); // This causes problems on IIS and some FastCGI setups
header("Location: $location", true, $status);
}
La ligne 876 est la ligne contenant "header("Location: $location", true, $status);"
Je ne vous mets pas plus de contenu, car je pense que cela fait déjà beaucoup. En tous les cas, je vous remercie du temps que vous passez à me répondre et a essayé de m’aider.
Hors ligne
#7 29-01-2013 09:41:55
- Guy
- Blogueur
- Date d'inscription: 07-04-2011
- Messages: 14198
Re: [Résolu] Warning : "index.php on line 17" et problème avec "wp-blog-header.php"
la mise à jour manuelle se fait par FTP. IL suffit de déposer les fichiers et dossiers du contenu du fichier compressé wordpress dans le répertoire public html.
Attention: Tu as fait des modifications dans ton thème, twentyEleven, je suppose que tu n'as pas fait de thème enfant, regarde la procédure à suivre ici: http://codex.wordpress.org/fr:Mettre_a_Jour_WordPress dans mise à jour manuelle en étant particluieremetn attentif à ce qui est écrit concernant le dossier wp-content.
Hors ligne
#8 31-01-2013 04:45:48
- MaxouBilou
- Membre WP
- Date d'inscription: 27-01-2013
- Messages: 5
Re: [Résolu] Warning : "index.php on line 17" et problème avec "wp-blog-header.php"
bonjour,
Effectivement, après un downgrade puis une mise à jour le tout manuellement, tout est revenu en ordre. C'est toutefois dommage que l'on ai su pourquoi mon blog avait eu ce problème.
En tout cas je vous remercie du temps que vous avez pris pour m'aider.
Hors ligne
Pages: 1
- Index
- » Support de WordPress
- » [Résolu] Warning : "index.php on line 17" et problème avec "wp-blog-header.php"