Annonces
Livre d'or

Par rusti

Merci a tout(e)s l'équipe phpboost Super taff je vous est adopter !!

Livre d'or

Mini sondage
Disposez-vous de PHP 5 chez votre hébergeur ?








Résultats

 
   Le 24/12/10 à 11h45 Citer      

Booster Bazooka

Groupe: Membre

Inscrit le: 24/11/09
Messages: 177
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 ?




pm http://mps-romrol.legtux.org/index.php    
   Le 24/12/10 à 13h14 Citer      

Administrateur

Equipe historique

Sexe:
Inscrit le: 04/08/05
Messages: 11001
Lieu: Aix en Provence
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.
____________________
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."

pm ben.popeye@phpboost.com http://www.phpboost.com    
   Le 24/12/10 à 14h30 Citer      

Booster Bazooka

Groupe: Membre

Inscrit le: 24/11/09
Messages: 177
Bah je ne sais pas ..

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');
?>

pm http://mps-romrol.legtux.org/index.php    
   Le 24/12/10 à 14h45 Citer      

Administrateur

Equipe historique

Sexe:
Inscrit le: 04/08/05
Messages: 11001
Lieu: Aix en Provence
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 :
//Chargement des fonctions

incluse à Code PHP :
//Path racine
exclue.
____________________
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."

pm ben.popeye@phpboost.com http://www.phpboost.com    
   Le 24/12/10 à 15h43 Citer      

Booster Bazooka

Groupe: Membre

Inscrit le: 24/11/09
Messages: 177
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.

pm http://mps-romrol.legtux.org/index.php    
   Le 24/12/10 à 18h34 Citer      

Administrateur

Equipe historique

Sexe:
Inscrit le: 04/08/05
Messages: 11001
Lieu: Aix en Provence
Pour PATH_TO_ROOT c'est pas ./ qu'il faut mettre mais simplement un point.
C'est à cette ligne Code PHP :
define('PATH_TO_ROOT', './');
qui doit devenir Code PHP :
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++:
"There are two ways to write error-free programs; only the third works."

pm ben.popeye@phpboost.com http://www.phpboost.com    
   Le 24/12/10 à 19h20 Citer      

Booster Bazooka

Groupe: Membre

Inscrit le: 24/11/09
Messages: 177
Ok merci :top Seulement j'ai encore un dernier petit soucis ... :hehe

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

pm http://mps-romrol.legtux.org/index.php    
   Le 25/12/10 à 13h41 Citer      

Booster Missile

Groupe: Membre

Inscrit le: 22/04/08
Messages: 1420
Lieu: Derrière le cla...
tu inclus 2footer, mais fais un retour arrière dans l'arborescence qui ne devrais pas ../ au lieu de ./

Code PHP :
require_once('./kernel/footer.php');
//Footer
include_once('../kernel/footer.php');
?>

remplace par
Code PHP :
 
//Footer
include_once('./kernel/footer.php');
?>
____________________
!! Accroche toi a la console, je retire le shell !!

pm http://chez-swan.net    
   Le 25/12/10 à 15h12 Citer      

Booster Bazooka

Groupe: Membre

Inscrit le: 24/11/09
Messages: 177
Merci SaTurNin !



Edité par mehdig Le 27/12/10 à 19h13

pm http://mps-romrol.legtux.org/index.php    
1 Utilisateur en ligne :: 0 Administrateur, 0 Modérateur, 0 Membre et 1 Visiteur
Utilisateur en ligne: Aucun membre connecté
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie
Annonces