Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Smarty -> OVH

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French
View previous topic :: View next topic  
Author Message
Hayreon
Smarty Rookie


Joined: 20 Sep 2008
Posts: 6

PostPosted: Sat Sep 08, 2012 9:09 am    Post subject: Smarty -> OVH Reply with quote

Bonjour,

Je rencontre ce problème lors de la mise en ligne de mon site :

Parse error: syntax error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /.../.../www/test/core/smarty/Smarty.class.php on line 116

En local tout fonctionne bien !

Je suis chez OVH, serveur mutualisé.

Y a t il une configuration spéciale à faire ?

D'avance merci pour votre aide.
Back to top
View user's profile Send private message
bluejester
Smarty Regular


Joined: 26 Apr 2012
Posts: 55

PostPosted: Wed Oct 24, 2012 8:49 am    Post subject: Reply with quote

Salut,

J'interviens tard, tu as sûrement déjà trouvé la réponse, mais si ça peut servir à d'autres personnes...

Chez OVH, c'est PHP4 qui est exécuté par défaut ; pour utiliser Smarty 3, il faut activer PHP5.

Il suffit pour cela de créer un fichier .htaccess à la racine de ton application (celle qui va utiliser smarty, pas le dossier smarty lui-même) en indiquant :

Code:
SetEnv PHP_VER 5


Bien à toi,
Back to top
View user's profile Send private message Visit poster's website
Hayreon
Smarty Rookie


Joined: 20 Sep 2008
Posts: 6

PostPosted: Wed Jun 26, 2013 2:58 pm    Post subject: Reply with quote

Bonjour,

Et non, je n'avait pas la réponse et j'utilise toujours ma bonne vieille version mais maintenant je vais pouvoir faire une bonne mise à jour Very Happy

Merci !
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP