| :: |
| Auteur |
Message |
franckcara PR1


Inscrit le: 23 Fév 2007 Messages: 177
|
Posté le: Jeu Mar 08, 2007 6:51 am Sujet du message: Fatal error |
|
|
Bonjour
j'ai installé sur mon forum le portail mxBB
j'ai uploader le dossier mxBB dans mon dossier Forum-informatique et j'ai suivi la procedure d'installation tout c'est apparement bien passé mais quand je veux acceder au portail voila ce que j'ai
| Code: | | Fatal error: Call to a member function on a non-object in /home/www/pcparadise/www/Forum-informatique/includes/sessions.php on line 611 |
|
|
|
| Revenir en haut de page |
|
 |
|
 |
dcz Administrateur - Site Admin

Inscrit le: 28 Avr 2006 Messages: 14279
|
|
| Revenir en haut de page |
|
 |
franckcara PR1


Inscrit le: 23 Fév 2007 Messages: 177
|
Posté le: Jeu Mar 08, 2007 1:38 pm Sujet du message: Re: Fatal error |
|
|
Cool merci
voila la version en beta test lol
par contre les liens à gauche ne fonctionne pas
http://www.pcparadise.fr/Forum-informatique/portail/
Probleme ou doit je les configurer quelques part ??? |
|
|
| Revenir en haut de page |
|
 |
dcz Administrateur - Site Admin

Inscrit le: 28 Avr 2006 Messages: 14279
|
|
| Revenir en haut de page |
|
 |
franckcara PR1


Inscrit le: 23 Fév 2007 Messages: 177
|
Posté le: Jeu Mar 08, 2007 2:40 pm Sujet du message: Re: Fatal error |
|
|
Cool merci
voila la version en beta test lol
par contre les liens à gauche ne fonctionne pas
http://www.pcparadise.fr/Forum-informatique/portail/
Probleme ou doit je les configurer quelques part ??? |
|
|
| Revenir en haut de page |
|
 |
dcz Administrateur - Site Admin

Inscrit le: 28 Avr 2006 Messages: 14279
|
|
| Revenir en haut de page |
|
 |
franckcara PR1


Inscrit le: 23 Fév 2007 Messages: 177
|
Posté le: Jeu Mar 08, 2007 5:47 pm Sujet du message: Re: Fatal error |
|
|
Bon ça y est je me suis foutu le bordel
j'ai voulu mettre l'index du portail en page d'accueil et voila le message que j'ai
j'ai rajouté le chemin dans l'index.php
| Code: | define( 'IN_PORTAL', 1 );
$mx_root_path = "./Forum-informatique/"; |
Au secour!!!!! |
|
|
| Revenir en haut de page |
|
 |
dcz Administrateur - Site Admin

Inscrit le: 28 Avr 2006 Messages: 14279
|
|
| Revenir en haut de page |
|
 |
franckcara PR1


Inscrit le: 23 Fév 2007 Messages: 177
|
Posté le: Ven Mar 09, 2007 11:56 am Sujet du message: Re: Fatal error |
|
|
ok desolé je veux faire 36 trucs en meme temps et je me melange tout
Je commence par le debut
j'ai installé le portail ici http://www.pcparadise.fr/Forum-informatique/portail/index.php
Le 1 er probleme c'est que je n'arrive pas à me connecter au panneaux d'admin je met mon mot de passe et mon loggin pour le forum et ça ne fonctionne pas (apparement c'est RESOLU)
Ensuite je voudrais mettre le portail a l'index de mon site
pour le moment le portail est installé dans le dossier Forum-informatique. |
|
|
| Revenir en haut de page |
|
 |
dcz Administrateur - Site Admin

Inscrit le: 28 Avr 2006 Messages: 14279
|
|
| Revenir en haut de page |
|
 |
franckcara PR1


Inscrit le: 23 Fév 2007 Messages: 177
|
Posté le: Ven Mar 09, 2007 8:35 pm Sujet du message: Re: Fatal error |
|
|
ok merci de m'aider
j'ai donc installer le dossier portail a la racine du site ensuite j'ai mis l'index.php hors du dossier en modifiant ça
| Code: | define( 'IN_PORTAL', 1 );
$mx_root_path = "./portail/"; |
et ça ne fonctionne toujours pas
Voila le message d'erreur
| Code: | Error type: Php Warning
Message: main(./portail/../includes/constants.php) [function.main]: failed to open stream: No such file or directory
Trace: 3 [show details] [hide details]
include_once ()
FILE: mx_constants.php
LINE: 20
DIR: /home/www/pcparadise/www/portail/includesinclude_once (string[58]/home/www/pcparadise/www/portail/includes/mx_constants.php)
FILE: common.php
LINE: 203
DIR: /home/www/pcparadise/www/portailinclude (string[43]/home/www/pcparadise/www/portail/common.php)
FILE: index.php
LINE: 18
DIR: /home/www/pcparadise/www
[hide param]
--------------------------------------------------------------------------------
Trick: click on a function's argument to see it fully
Trick: click on a function to see the file & line
Trick: click on the file name to see the source code
|
|
|
|
| Revenir en haut de page |
|
 |
dcz Administrateur - Site Admin

Inscrit le: 28 Avr 2006 Messages: 14279
|
Posté le: Sam Mar 10, 2007 11:49 am Sujet du message: Re: Fatal error |
|
|
Comment peut tu a la fois installer le portail à la racine du domaine et monter son index.php un cran au dessus ?
La tu installe le portail dans le dossier www/portai/, ce qui n'est pas la racine du domaine, je te suggérais de l'installer directement dans www/ étant donné que le forum se trouve dans www/Forum-informatique/, c'est la structure qui me semble la plus naturelle.
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Revenir en haut de page |
|
 |
franckcara PR1


Inscrit le: 23 Fév 2007 Messages: 177
|
Posté le: Sam Mar 10, 2007 5:17 pm Sujet du message: Re: Fatal error |
|
|
ok j'essaye mais du coup je n'ai plus rien qui marche
meme le forum.
J'ai ajouté le fichier htaccess a celui qui existait deja.
| Code: | RewriteEngine On
RewriteBase /
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^Forum-informatique/index\.html$ Forum-informatique/index.php [QSA,L]
# FORUM PROTECTION RULE
# RewriteRule ^Forum-informatique/.*/([^/]+\.html)$ Forum-informatique/index.php [R=301,L]
# CATEGORIES
RewriteRule ^Forum-informatique/.*-c([0-9]+)\.html$ Forum-informatique/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^Forum-informatique/.*-f([0-9]+)-([0-9]+)\.html$ Forum-informatique/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^Forum-informatique/.*-f([0-9]+)\.html$ Forum-informatique/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^Forum-informatique/.*-t([0-9]+)-([0-9]+)\.html$ Forum-informatique/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^Forum-informatique/.*-t([0-9]+)\.html$ Forum-informatique/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^Forum-informatique/post([0-9]+)\.html$ Forum-informatique/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^Forum-informatique/membre([0-9]+)\.html$ Forum-informatique/profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################
# Directory Index
DirectoryIndex index.php
# Just in case, let's disable viewing of directory indexes.
Options -Indexes
# Just in case, let's disable register globals (only valid for php4).
# Do NOT enable this when running php5, or you may face internal server errors
# PHP 4, Apache 1.
# <IfModule mod_php4.c>
# php_value magic_quotes_gpc 0
# php_value session.use_trans_sid 0
# php_value register_globals 0
# php_value session.auto_start 0
# </IfModule>
# PHP 4, Apache 2.
# <IfModule sapi_apache2.c>
# php_value magic_quotes_gpc 0
# php_value session.use_trans_sid 0
# php_value register_globals 0
# php_value session.auto_start 0
# </IfModule>
# PHP 5, Apache 1 and 2.
# <IfModule mod_php5.c>
# php_value magic_quotes_gpc 0
# php_value session.use_trans_sid 0
# php_value register_globals 0
# php_value session.auto_start 0
# </IfModule>
# Just in case, let's disable register_globals (only valid for PHP4).
# Do NOT enable this when running PHP5, or you may face internal server errors
# To disable, remove the prepended # on the next line.
# php_flag register_globals 0
# Disable EAccelerator
# Do this if for some reason or another you have cache problems.
# php_flag eaccelerator.enable 0
# deny most common except .php
<FilesMatch "\.(inc|tpl|h|ihtml|sql|ini|conf|class|bin|spd|theme|module|exe)$">
deny from all
</FilesMatch>
# Disable .htaccess viewing from browser
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
<Files ~ "\config.php$">
deny from all
</Files>
<IfModule mod_rewrite.c>
RewriteEngine on
#
# Mod_rewrite rules require mod_rewrite is enabled for mxBB (config setting)
# Uncomment below, and consult the mxBB mod_rewrite module documentation
#
#
# Site Specific
#
#RewriteRule ^support/catlink([0-9]*)(.*)$ index.php?page=53&cat_link=$1 [L]
#RewriteRule ^support(.*)$ index.php?page=53 [L]
#
# General
#
RewriteCond %{REQUEST_URI} ^(.*)/catlink([0-9]*)(.*)$
RewriteRule ^page([0-9]*)/catlink([0-9]*)(.*)$ index.php?page=$1&cat_link=$2 [L]
RewriteCond %{REQUEST_URI} ^(.*)/sub([0-9]*)(.*)$
RewriteRule ^page([0-9]*)/sub([0-9]*)(.*)$ index.php?page=$1&dynamic_block=$2 [L]
RewriteCond %{REQUEST_URI} ^/page([0-9]*)(.*)$
RewriteRule ^page([0-9]*)(.*)$ index.php?page=$1$2 [L]
RewriteCond %{REQUEST_URI} ^/block([0-9]*)(.*)$
RewriteRule ^block([0-9]*)(.*)$ index.php?block=$1$2 [L]
</IfModule>
#
# Error redirects - require the mxBB ErrorDocs module to be installed
# Uncomment below, and consult the mxBB ErrorDocs module documentation
#
#ErrorDocument 400 /index.php?page=x&errno=400&errlog=yes
#ErrorDocument 401 /index.php?page=x&errno=400&errlog=yes
#ErrorDocument 402 /index.php?page=x&errno=400&errlog=yes
#ErrorDocument 403 /index.php?page=x&errno=400&errlog=yes
#ErrorDocument 404 /index.php?page=x&errno=400&errlog=yes
#ErrorDocument 500 /index.php?page=x&errno=400&errlog=yes
#ErrorDocument 501 /index.php?page=x&errno=400&errlog=yes
#ErrorDocument 502 /index.php?page=x&errno=400&errlog=yes
#ErrorDocument 503 /index.php?page=x&errno=400&errlog=yes
#ErrorDocument 504 /index.php?page=x&errno=400&errlog=yes |
et voila l'arborescence
le portail n'a plus de dossier il est à la racine du WWW
 |
|
|
| Revenir en haut de page |
|
 |
dcz Administrateur - Site Admin

Inscrit le: 28 Avr 2006 Messages: 14279
|
Posté le: Lun Mar 12, 2007 4:14 pm Sujet du message: Re: Fatal error |
|
|
Le .htaccess ne devrait pas démarrer le mod_rewrite deux fois, utilises plutôt :
| Code: | RewriteEngine On
RewriteBase /
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^Forum-informatique/index\.html$ Forum-informatique/index.php [NC,QSA,L]
# FORUM PROTECTION RULE
# RewriteRule ^Forum-informatique/.*/([^/]+\.html)$ Forum-informatique/index.php [NC,R=301,L]
# CATEGORIES
RewriteRule ^Forum-informatique/.*-c([0-9]+)\.html$ Forum-informatique/index.php?c=$1 [NC,QSA,L]
# PAGINATED FORUM
RewriteRule ^Forum-informatique/.*-f([0-9]+)-([0-9]+)\.html$ Forum-informatique/viewforum.php?f=$1&start=$2 [NC,QSA,L]
# FORUM
RewriteRule ^Forum-informatique/.*-f([0-9]+)\.html$ Forum-informatique/viewforum.php?f=$1 [NC,QSA,L]
# PAGINATED TOPIC
RewriteRule ^Forum-informatique/.*-t([0-9]+)-([0-9]+)\.html$ Forum-informatique/viewtopic.php?t=$1&start=$2 [NC,QSA,L]
# TOPIC
RewriteRule ^Forum-informatique/.*-t([0-9]+)\.html$ Forum-informatique/viewtopic.php?t=$1 [NC,QSA,L]
# POST
RewriteRule ^Forum-informatique/post([0-9]+)\.html$ Forum-informatique/viewtopic.php?p=$1 [NC,QSA,L]
#PROFILES
RewriteRule ^Forum-informatique/membre([0-9]+)\.html$ Forum-informatique/profile.php?mode=viewprofile&u=$1 [NC,QSA,L]
# END PHPBB PAGES
#####################################################
# mxBB
RewriteCond %{REQUEST_URI} ^(.*)/catlink([0-9]*)(.*)$
RewriteRule ^page([0-9]*)/catlink([0-9]*)(.*)$ index.php?page=$1&cat_link=$2 [L]
RewriteCond %{REQUEST_URI} ^(.*)/sub([0-9]*)(.*)$
RewriteRule ^page([0-9]*)/sub([0-9]*)(.*)$ index.php?page=$1&dynamic_block=$2 [L]
RewriteCond %{REQUEST_URI} ^/page([0-9]*)(.*)$
RewriteRule ^page([0-9]*)(.*)$ index.php?page=$1$2 [L]
RewriteCond %{REQUEST_URI} ^/block([0-9]*)(.*)$
RewriteRule ^block([0-9]*)(.*)$ index.php?block=$1$2 [L] |
C'est tout ce dont tu as besoin, tu peux ajouter les règles d'exclusions et de sécurité suggéré par mxBB au tout début du .htaccess :
| Code: | # deny most common except .php
<FilesMatch "\.(inc|tpl|h|ihtml|sql|ini|conf|class|bin|spd|theme|module|exe)$">
deny from all
</FilesMatch>
# Disable .htaccess viewing from browser
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
<Files ~ "\config.php$">
deny from all
</Files> |
Pour register global, il ne devrait pas être activé sur ton serveur, si c'est le cas, faudrait mieux le désactiver, mais c'est autre chose.
Donc, avec ce .htaccess and le dossier www et aucun .htaccess and le dossier du forum, le forum doit marcher. J'ai ajouté des NC, pour s'assurer que le F majuscule ne nous embête pas
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Revenir en haut de page |
|
 |
franckcara PR1


Inscrit le: 23 Fév 2007 Messages: 177
|
Posté le: Lun Mar 12, 2007 8:07 pm Sujet du message: Re: Fatal error |
|
|
Desolé mais ça ne marche toujours pas
le portail est installé mais apparement le .htaccess ne fonctionne pas
je ne peux pas acceder au panneau d'admin
(HTTP 404 Non trouvé) voici l'url qu'il me cherche
http://www.pcparadise.fr/Forum-informatique/portail/admin/index.php
alors qu'il n'existe plus aucun dossier 'portail'
voici le htaccess modifié
| Code: | # deny most common except .php
<FilesMatch "\.(inc|tpl|h|ihtml|sql|ini|conf|class|bin|spd|theme|module|exe)$">
deny from all
</FilesMatch>
# Disable .htaccess viewing from browser
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
<Files ~ "\config.php$">
deny from all
</Files>
RewriteEngine On
RewriteBase /
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^Forum-informatique/index\.html$ Forum-informatique/index.php [NC,QSA,L]
# FORUM PROTECTION RULE
# RewriteRule ^Forum-informatique/.*/([^/]+\.html)$ Forum-informatique/index.php [NC,R=301,L]
# CATEGORIES
RewriteRule ^Forum-informatique/.*-c([0-9]+)\.html$ Forum-informatique/index.php?c=$1 [NC,QSA,L]
# PAGINATED FORUM
RewriteRule ^Forum-informatique/.*-f([0-9]+)-([0-9]+)\.html$ Forum-informatique/viewforum.php?f=$1&start=$2 [NC,QSA,L]
# FORUM
RewriteRule ^Forum-informatique/.*-f([0-9]+)\.html$ Forum-informatique/viewforum.php?f=$1 [NC,QSA,L]
# PAGINATED TOPIC
RewriteRule ^Forum-informatique/.*-t([0-9]+)-([0-9]+)\.html$ Forum-informatique/viewtopic.php?t=$1&start=$2 [NC,QSA,L]
# TOPIC
RewriteRule ^Forum-informatique/.*-t([0-9]+)\.html$ Forum-informatique/viewtopic.php?t=$1 [NC,QSA,L]
# POST
RewriteRule ^Forum-informatique/post([0-9]+)\.html$ Forum-informatique/viewtopic.php?p=$1 [NC,QSA,L]
#PROFILES
RewriteRule ^Forum-informatique/membre([0-9]+)\.html$ Forum-informatique/profile.php?mode=viewprofile&u=$1 [NC,QSA,L]
# END PHPBB PAGES
#####################################################
# mxBB
RewriteCond %{REQUEST_URI} ^(.*)/catlink([0-9]*)(.*)$
RewriteRule ^page([0-9]*)/catlink([0-9]*)(.*)$ index.php?page=$1&cat_link=$2 [L]
RewriteCond %{REQUEST_URI} ^(.*)/sub([0-9]*)(.*)$
RewriteRule ^page([0-9]*)/sub([0-9]*)(.*)$ index.php?page=$1&dynamic_block=$2 [L]
RewriteCond %{REQUEST_URI} ^/page([0-9]*)(.*)$
RewriteRule ^page([0-9]*)(.*)$ index.php?page=$1$2 [L]
RewriteCond %{REQUEST_URI} ^/block([0-9]*)(.*)$
RewriteRule ^block([0-9]*)(.*)$ index.php?block=$1$2 [L] |
EDIT/ j'ai trouvé il à fallu que j'aille dands la base de donnée pour modifier le chemin
je crois quand même que je n'ai pas fini de vous poser des questions sur ce mod
Merci de votyre patience |
|
|
| Revenir en haut de page |
|
 |
|
|