Jump to content

[RESOLU] Configuration chez OVH


Recommended Posts

bonjour,
je narrvie pas l'installer; je deja fais le modif sur le fichier htaccess pour le ovh , mais pas de resultate...

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homez.57/guida/www/Boutik/01/install/classes/LanguagesManager.php on line 7
Link to comment
Share on other sites

J'ai aussi un problème en installant prestashop sur OVH :

Quand je valide l'adresse
http://www.monsite.com/vente/install/

J'ai sur l'écran
getIncludeTradFilename()) include_once($lm->getIncludeTradFilename()); ?>


Ca semble provenir des lignes suivantes :
include(INSTALL_PATH.'/classes/LanguagesManager.php');
$lm = new LanguageManager(dirname(__FILE__).'/langs/list.xml');
$_LANG = array();
$_LIST_WORDS = array();
function lang($txt) {
global $_LANG , $_LIST_WORDS;
return (isset($_LANG[$txt]) ? $_LANG[$txt] : $txt);
}
if ($lm->getIncludeTradFilename())
include_once($lm->getIncludeTradFilename());
?>

<html >
<head>

*********************************
Mon fichier .htaccess
SetEnv PHP_VER 5
SetEnv REGISTER_GLOBALS 0
RewriteBase /

RewriteEngine on

RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$1$3 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ category.php?id_category=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
ErrorDocument 404 /404.php

Merci de votre aide

Link to comment
Share on other sites

Poste le contenu de ton fichier .htaccess.



merci ,
voila mon fichier htaccess.txt

SetEnv PHP_VER 5
SetEnv REGISTER_GLOBALS 0
RewriteBase /
# URL rewriting module activation
RewriteEngine on

# URL rewriting rules
RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$2$4 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$1$3 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ category.php?id_category=$1 [QSA,L,E]
RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ cms.php?id_cms=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]

# Catch 404 errors
ErrorDocument 404 /404.php
Link to comment
Share on other sites

J'ai aussi un problème en installant prestashop sur OVH :

Quand je valide l'adresse
http://www.monsite.com/vente/install/

J'ai sur l'écran
getIncludeTradFilename()) include_once($lm->getIncludeTradFilename()); ?>



************************************************
Avec le fichier suivant, ça marche.

Merci à vous
************************************************

SetEnv PHP_VER 5
SetEnv REGISTER_GLOBALS 0
RewriteBase /
# URL rewriting module activation
RewriteEngine on

# URL rewriting rules
RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.)$ product.php?id_product=$2$4 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-])\.html(.)$ product.php?id_product=$1$3 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-])(.)$ category.php?id_category=$1 [QSA,L,E]
RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-])(.)$ cms.php?id_cms=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-])(.)$ supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-])(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]

# Catch 404 errors
ErrorDocument 404 /404.php

PS :
comment le passer à "résolu" ?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...