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

Petit probleme aprés mise a jours vers 3

 
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
hemida
Smarty n00b


Joined: 24 Jun 2013
Posts: 2

PostPosted: Mon Jun 24, 2013 12:19 am    Post subject: Petit probleme aprés mise a jours vers 3 Reply with quote

Bonjour
j'utilise le script http://www.best9gagclonescript.com/ depuis quelques temps sans probleme mais aprés quelques modification que j'ai ajouté , j'ai remarqué que la fonction {for} n'est pas surporté , donc j'ai mise à jours vers dernière version (suppression de l'ancien dossiers libs et ajout du nouveau), tout fonctionne corectement sauf pour la version mobile ou j'ai l'erreur :
Code:
Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file 'header.tpl'' in /home/likeber/smarty/libs/sysplugins/smarty_internal_templatebase.php:127 Stack trace: #0 /home/likeber/smarty/libs/sysplugins/smarty_internal_templatebase.php(374): Smarty_Internal_TemplateBase->fetch('header.tpl', NULL, NULL, NULL, true) #1 /home/likeber/libraries/mysmarty.class.php(92): Smarty_Internal_TemplateBase->display('header.tpl') #2 /home/likeber/m/index.php(150): STemplate::display('header.tpl') #3 {main} thrown in /home/likeber/smarty/libs/sysplugins/smarty_internal_templatebase.php on line 127



Voila la partie du code qui bug /home/likeber/m/index.php :

Code:
$templateselect = "index.tpl";
$pagetitle = $lang['172'];
STemplate::assign('pagetitle',$pagetitle);
STemplate::assign('section',"hot");
STemplate::assign('currentpage',$currentpage);
//TEMPLATES BEGIN
STemplate::setTplDir($config['mobiledir']."/themes");
STemplate::assign('beginning',$beginning);
STemplate::assign('ending',$ending);
STemplate::assign('pagelinks',$pagelinks);
STemplate::assign('total',$total);
STemplate::assign('posts',$posts);
STemplate::display($config['mobiledir']."header.tpl");
STemplate::display($templateselect);
STemplate::display($config['mobiledir']."footer.tpl");
//TEMPLATES END


la version web pointe sur : /home/likeber/
et la version mobile pointe sur : /home/likeber/m
le dossiers smarty est dans /home/likeber/smarty/libs

j'ai bien verifié que $config['mobiledir'] pointe sur le bon chemin .

Merci d'avance pour votre aide bien aprécié.
Salutation
Back to top
View user's profile Send private message
hemida
Smarty n00b


Joined: 24 Jun 2013
Posts: 2

PostPosted: Mon Jun 24, 2013 12:10 pm    Post subject: Reply with quote

Problème résolu, merci comme même .
Mon problème venait du fait qu'il y'avait un conflit dans les variables $config[''].
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