Forum PHPBoost
Bonjour,
Je suis en train de créer une page d’accueil (index.php) pour mon site.
Seulement lors de la mise en page de celle-ci, plusieurs messages d'erreur sont apparus ...
Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(../kernel/begin.php) is not within the allowed path(s): (/var/www/legtux.org/users/mps-romrol:/tmp) in /var/www/legtux.org/users/mps-romrol/index.php on line 30
Warning: include_once(../kernel/begin.php) [function.include-once]: failed to open stream: Operation not permitted in /var/www/legtux.org/users/mps-romrol/index.php on line 30
Warning: include_once() [function.include]: Failed opening '../kernel/begin.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/legtux.org/users/mps-romrol/index.php on line 30
Warning: include_once(lang//module_.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/legtux.org/users/mps-romrol/index.php on line 32
Warning: include_once() [function.include]: Failed opening 'lang//module_.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/legtux.org/users/mps-romrol/index.php on line 32
Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(../kernel/header.php) is not within the allowed path(s): (/var/www/legtux.org/users/mps-romrol:/tmp) in /var/www/legtux.org/users/mps-romrol/index.php on line 38
Warning: include_once(../kernel/header.php) [function.include-once]: failed to open stream: Operation not permitted in /var/www/legtux.org/users/mps-romrol/index.php on line 38
Warning: include_once() [function.include]: Failed opening '../kernel/header.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/legtux.org/users/mps-romrol/index.php on line 38
Warning: Cannot modify header information - headers already sent by (output started at /var/www/legtux.org/users/mps-romrol/index.php:30) in /var/www/legtux.org/users/mps-romrol/kernel/begin.php on line 41
Warning: Cannot modify header information - headers already sent by (output started at /var/www/legtux.org/users/mps-romrol/index.php:30) in /var/www/legtux.org/users/mps-romrol/kernel/begin.php on line 42
Warning: Cannot modify header information - headers already sent by (output started at /var/www/legtux.org/users/mps-romrol/index.php:30) in /var/www/legtux.org/users/mps-romrol/kernel/begin.php on line 43
Voici l'adresse de mon site : http://mps-romrol.legtux.org/index.php
Que faire pour résoudre ce problème ?
Je suis en train de créer une page d’accueil (index.php) pour mon site.
Seulement lors de la mise en page de celle-ci, plusieurs messages d'erreur sont apparus ...
Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(../kernel/begin.php) is not within the allowed path(s): (/var/www/legtux.org/users/mps-romrol:/tmp) in /var/www/legtux.org/users/mps-romrol/index.php on line 30
Warning: include_once(../kernel/begin.php) [function.include-once]: failed to open stream: Operation not permitted in /var/www/legtux.org/users/mps-romrol/index.php on line 30
Warning: include_once() [function.include]: Failed opening '../kernel/begin.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/legtux.org/users/mps-romrol/index.php on line 30
Warning: include_once(lang//module_.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/legtux.org/users/mps-romrol/index.php on line 32
Warning: include_once() [function.include]: Failed opening 'lang//module_.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/legtux.org/users/mps-romrol/index.php on line 32
Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(../kernel/header.php) is not within the allowed path(s): (/var/www/legtux.org/users/mps-romrol:/tmp) in /var/www/legtux.org/users/mps-romrol/index.php on line 38
Warning: include_once(../kernel/header.php) [function.include-once]: failed to open stream: Operation not permitted in /var/www/legtux.org/users/mps-romrol/index.php on line 38
Warning: include_once() [function.include]: Failed opening '../kernel/header.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/legtux.org/users/mps-romrol/index.php on line 38
Warning: Cannot modify header information - headers already sent by (output started at /var/www/legtux.org/users/mps-romrol/index.php:30) in /var/www/legtux.org/users/mps-romrol/kernel/begin.php on line 41
Warning: Cannot modify header information - headers already sent by (output started at /var/www/legtux.org/users/mps-romrol/index.php:30) in /var/www/legtux.org/users/mps-romrol/kernel/begin.php on line 42
Warning: Cannot modify header information - headers already sent by (output started at /var/www/legtux.org/users/mps-romrol/index.php:30) in /var/www/legtux.org/users/mps-romrol/kernel/begin.php on line 43
Voici l'adresse de mon site : http://mps-romrol.legtux.org/index.php
Que faire pour résoudre ce problème ?
Tu as probablement inséré des quelconques caractères avant le premier <? de ta page PHP.
Si c'est le cas, supprime-les, < doit être le premier caractère de la page.
Si c'est le cas, supprime-les, < doit être le premier caractère de la page.
____________________
Un problème, une question ? Cherchez dans la FAQ ou la documentation. Si vous ne trouvez pas la réponse, demandez du support sur le forum.
Bjarne Stroustrup, inventeur du C++:
Un problème, une question ? Cherchez dans la FAQ ou la documentation. Si vous ne trouvez pas la réponse, demandez du support sur le forum.
Bjarne Stroustrup, inventeur du C++:
"There are two ways to write error-free programs; only the third works."
Bah je ne sais pas ..
Voilà mon index :
Code PHP :
Voilà mon index :
Code PHP :
<?php //Licence /*################################################## * page.php * ------------------- * begin : Date de création du fichier * copyright : (C) 2007 Nom du/des développeur(s) * email : email du/des développeur(s) * * ################################################### * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ###################################################*/ //Chargement des fonctions include_once('../kernel/begin.php'); //Fichiers langue include_once('lang/' . $CONFIG['lang'] . '/module_' . $CONFIG['lang'] . '.php'); //Titre de la page define('TITLE', $titre_de_la_page); //Chargement du CSS éventuel define('ALTERNATIVE_CSS', 'wiki'); //Inclusion du header include_once('../kernel/header.php'); //Path racine define('PATH_TO_ROOT', './'); //Css alternatif. define('ALTERNATIVE_CSS', 'news'); require_once('./kernel/begin.php'); //titre de la page manuelpour eviter les doublons avec une autre page. define('TITLE', 'Acceuil'); require_once('./kernel/header.php'); //Chargement de la langue du module. load_module_lang('news'); //********************************************* function get_home_page() { global $User, $Sql, $Cache, $Bread_crumb, $CONFIG_NEWS, $LANG, $Session; require_once('./news/news_begin.php'); import('content/syndication/feed'); // RSS // Lang pour download load_module_lang('download'); global $DOWNLOAD_LANG; $dw_langs = array( 'L_READ' => $DOWNLOAD_LANG['read_feed'], 'L_POSTED_ON' => $LANG['on'] ); //Mise en variable des flux par cat $contents_feed_wiki = Feed::get_parsed("wiki", DEFAULT_FEED_NAME, 0, FALSE, 8, 0); $contents_feed_web = Feed::get_parsed("news", DEFAULT_FEED_NAME, 0, FALSE, 5, 0); $contents_feed_download = Feed::get_parsed("download", DEFAULT_FEED_NAME, 0, FALSE, 5, 0); $tpl_news = new Template('news/edito.tpl'); $tpl_news->assign_vars( array( 'C_NEWS_EDITO' => true, 'CONTENTS' => second_parse($CONFIG_NEWS['edito']), 'TITLE' => $CONFIG_NEWS['edito_title'], 'PATH_TO_ROOT' => TPL_PATH_TO_ROOT, 'THEME' => get_utheme(), 'FEED_MENU' => Feed::get_feed_menu(FEED_URL), 'feed_web' => $contents_feed_web, 'feed_wiki' => $contents_feed_wiki, 'feed_download' => $contents_feed_download )); return $tpl_news->parse(TRUE); } // --------------------------------------------------- echo get_home_page(); require_once('./kernel/footer.php'); //Footer include_once('../kernel/footer.php'); ?>
Ok, au temps pour moi, j'ai regardé seulement les dernières erreurs qui sont caractéristiques du problème auquel je pensais, mais en fait ce sont les premières erreurs qui donnent l'explication.
En fait le problème est que tu as collé deux fois les mêmes lignes. Il faut que tu supprimes les lignes de Code PHP :
incluse à Code PHP : exclue.
En fait le problème est que tu as collé deux fois les mêmes lignes. Il faut que tu supprimes les lignes de Code PHP :
//Chargement des fonctionsincluse à Code PHP :
//Path racine
____________________
Un problème, une question ? Cherchez dans la FAQ ou la documentation. Si vous ne trouvez pas la réponse, demandez du support sur le forum.
Bjarne Stroustrup, inventeur du C++:
Un problème, une question ? Cherchez dans la FAQ ou la documentation. Si vous ne trouvez pas la réponse, demandez du support sur le forum.
Bjarne Stroustrup, inventeur du C++:
"There are two ways to write error-free programs; only the third works."
Ah sa fonctionné ... mais il y a un autre message d'erreur :
Template::_load(): The .//news/templates/edito.tpl file loading to parse .//news/templates/edito.tpl failed.
Template::_load(): The .//news/templates/edito.tpl file loading to parse .//news/templates/edito.tpl failed.
Pour PATH_TO_ROOT c'est pas ./ qu'il faut mettre mais simplement un point.
C'est à cette ligne Code PHP : qui doit devenir Code PHP :
C'est à cette ligne Code PHP :
define('PATH_TO_ROOT', './');
define('PATH_TO_ROOT', '.');
____________________
Un problème, une question ? Cherchez dans la FAQ ou la documentation. Si vous ne trouvez pas la réponse, demandez du support sur le forum.
Bjarne Stroustrup, inventeur du C++:
Un problème, une question ? Cherchez dans la FAQ ou la documentation. Si vous ne trouvez pas la réponse, demandez du support sur le forum.
Bjarne Stroustrup, inventeur du C++:
"There are two ways to write error-free programs; only the third works."
Ok merci
Seulement j'ai encore un dernier petit soucis ...
Après avoir mis du contenu dans la page d'accueil, je me retrouve avec plusieurs messages d’avertissement , les voici :
Avertissement : include_once() [function.include-once]: open_basedir restriction in effect. File(../kernel/footer.php) is not within the allowed path(s): (/var/www/legtux.org/users/mps-romrol:/tmp) dans le fichier /var/www/legtux.org/users/mps-romrol/index.php à la ligne 234
Avertissement : include_once(../kernel/footer.php) [function.include-once]: failed to open stream: Operation not permitted dans le fichier /var/www/legtux.org/users/mps-romrol/index.php à la ligne 234
Avertissement : include_once() [function.include]: Failed opening '../kernel/footer.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') dans le fichier /var/www/legtux.org/users/mps-romrol/index.php à la ligne 234
Edité par mehdig Le 24/12/10 à 19h21
Seulement j'ai encore un dernier petit soucis ...
Après avoir mis du contenu dans la page d'accueil, je me retrouve avec plusieurs messages d’avertissement , les voici :
Avertissement : include_once() [function.include-once]: open_basedir restriction in effect. File(../kernel/footer.php) is not within the allowed path(s): (/var/www/legtux.org/users/mps-romrol:/tmp) dans le fichier /var/www/legtux.org/users/mps-romrol/index.php à la ligne 234
Avertissement : include_once(../kernel/footer.php) [function.include-once]: failed to open stream: Operation not permitted dans le fichier /var/www/legtux.org/users/mps-romrol/index.php à la ligne 234
Avertissement : include_once() [function.include]: Failed opening '../kernel/footer.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') dans le fichier /var/www/legtux.org/users/mps-romrol/index.php à la ligne 234
Edité par mehdig Le 24/12/10 à 19h21
1 Utilisateur en ligne :: 0 Administrateur, 0 Modérateur, 0 Membre et 1 Visiteur
Utilisateur en ligne: Aucun membre connecté
Utilisateur en ligne: Aucun membre connecté
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie





PHPBoost

Support
Téléchargements
Développement
Communauté











