xscream_007 Posted November 15, 2012 Share Posted November 15, 2012 (edited) Bonjour a tous, j'ai un problème, sur le site j'ai des pages blanche, je suis obligé de rafréchir la page pour qu'elle fonctionne. J'ai l'erreur suivante : Fatal error: Function name must be a string in /homez.582/phoneaccm/www/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 281 D'ou viens le problème, je suis perdu là... Lien du site : http://www.phoneaccessoire.com Réglage performance : Mon fichier .htaccess : # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com - http://www.prestashop.com/forums <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^www.phoneaccessoire.com$ RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteCond %{HTTP_HOST} ^www.phoneaccessoire.com$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^www.phoneaccessoire.com$ RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] RewriteCond %{HTTP_HOST} ^www.phoneaccessoire.com$ RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L] RewriteCond %{HTTP_HOST} ^www.phoneaccessoire.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L] RewriteCond %{HTTP_HOST} ^www.phoneaccessoire.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L] RewriteCond %{HTTP_HOST} ^www.phoneaccessoire.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L] RewriteCond %{HTTP_HOST} ^www.phoneaccessoire.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L] RewriteCond %{HTTP_HOST} ^www.phoneaccessoire.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L] RewriteCond %{HTTP_HOST} ^www.phoneaccessoire.com$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^www.phoneaccessoire.com$ RewriteRule ^c/([a-zA-Z-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # Dispatcher RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{HTTP_HOST} ^www.phoneaccessoire.com$ RewriteRule ^.*$ - [NC,L] RewriteCond %{HTTP_HOST} ^www.phoneaccessoire.com$ RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] </IfModule> <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType image/x-icon "access plus 1 year" </IfModule> FileETag INode MTime Size <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript </IfModule> #If rewrite mod isn't enabled ErrorDocument 404 /index.php?controller=404 # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again Edited November 15, 2012 by xscream_007 (see edit history) Link to comment Share on other sites More sharing options...
Rafiki Posted January 6, 2013 Share Posted January 6, 2013 This is a bug of prestashop. To fix this you need to disable smarty cache in (advanced parameters->>performance) Link to comment Share on other sites More sharing options...
kiamaru Posted March 28, 2013 Share Posted March 28, 2013 i disable smarty cache, but the same proble Link to comment Share on other sites More sharing options...
2FR3 Posted March 28, 2013 Share Posted March 28, 2013 Vides les deux dossiers dans cache/smarty a l’exception des index.php Link to comment Share on other sites More sharing options...
kiamaru Posted March 28, 2013 Share Posted March 28, 2013 j'ai trouvé. ça venait du bloc catégorie quand il est sur le Hook left. va savoir. je l'ai changé de hook, plus de problème meric 2FR3 Link to comment Share on other sites More sharing options...
tink Posted May 15, 2013 Share Posted May 15, 2013 I am also seeing this error. The frustrating part is that I can't reliably reproduce it - it only appears once in a while and I can't figure out what the conditions are that make it appear. We are using PS 1.5.3.1 My customers and I see it on the last page of checkout when paying by credit card. We are using the CreditCardOfflinePayment Module. When the 'confirm my order' button is clicked sometimes it goes to the white screen. With the errors turned on I see this: Notice: Undefined index: unifunc in /home/website/store.mailsbestfriend.com/webdocs/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 281 Fatal error: Function name must be a string in /home/website/store.mailsbestfriend.com/webdocs/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 281 I have already tried clearing out the cache files as recommended above. In Advanced Parameters -> Performance all of the CCC options are turned off. Above it is recommended to turn off the cache. But I see that turning of the cache entirely is not recommended by PS. Is there a real problem doing this? Thoughts? Link to comment Share on other sites More sharing options...
vom Posted May 31, 2013 Share Posted May 31, 2013 j'ai trouvé. ça venait du bloc catégorie quand il est sur le Hook left. va savoir. je l'ai changé de hook, plus de problème meric 2FR3 Bonjour, j'ai rencontré le même problème (page blanche/erreur 500 en naviguant dans les catégories et produits & cache smarty activé). En supprimant le bloc catégorie du hook left, tout fonctionne ... 1 Link to comment Share on other sites More sharing options...
btsconsult Posted May 31, 2013 Share Posted May 31, 2013 Bonjour, j'ai rencontré le même problème (page blanche/erreur 500 en naviguant dans les catégories et produits & cache smarty activé). En supprimant le bloc catégorie du hook left, tout fonctionne ... Bonjour, Peux-tu développer un peu, quand tu parles du "hook left", tu parles du Nom technique "displayLeftColumn" ? Link to comment Share on other sites More sharing options...
vom Posted June 2, 2013 Share Posted June 2, 2013 Bonjour, Peux-tu développer un peu, quand tu parles du "hook left", tu parles du Nom technique "displayLeftColumn" ? Bonjour, oui c'est bien cela ! Link to comment Share on other sites More sharing options...
hsrcoughlan Posted June 5, 2013 Share Posted June 5, 2013 hi, this is the error message i am getting with my problem. Its just when i add a product or category and then click on it i get error 500 Function name must be a string in /home5/absfairi/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 281 Link to comment Share on other sites More sharing options...
andreaxc Posted June 14, 2013 Share Posted June 14, 2013 I have this problem... Fatal error... tools/smarty/sysplugins/smarty_internal_templatebase.php on line 281 Link to comment Share on other sites More sharing options...
Advisuel Posted June 21, 2013 Share Posted June 21, 2013 Bonjour, Avez vous une solution ? cdt Link to comment Share on other sites More sharing options...
hsrcoughlan Posted June 21, 2013 Share Posted June 21, 2013 If you turn off the smarty cache it solves the problem ! Link to comment Share on other sites More sharing options...
Oron Posted June 21, 2013 Share Posted June 21, 2013 I am also seeing this error. The frustrating part is that I can't reliably reproduce it - it only appears once in a while and I can't figure out what the conditions are that make it appear. We are using PS 1.5.3.1 My customers and I see it on the last page of checkout when paying by credit card. We are using the CreditCardOfflinePayment Module. When the 'confirm my order' button is clicked sometimes it goes to the white screen. With the errors turned on I see this: Notice: Undefined index: unifunc in /home/website/store.mailsbestfriend.com/webdocs/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 281 Fatal error: Function name must be a string in /home/website/store.mailsbestfriend.com/webdocs/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 281 I have already tried clearing out the cache files as recommended above. In Advanced Parameters -> Performance all of the CCC options are turned off. Above it is recommended to turn off the cache. But I see that turning of the cache entirely is not recommended by PS. Is there a real problem doing this? Thoughts? Hi Please thank you kindly ask your questions on the English forum if you only speak English. Link to comment Share on other sites More sharing options...
Oron Posted June 21, 2013 Share Posted June 21, 2013 If you turn off the smarty cache it solves the problem ! I have this problem... Fatal error... tools/smarty/sysplugins/smarty_internal_templatebase.php on line 281 hi, this is the error message i am getting with my problem. Its just when i add a product or category and then click on it i get error 500 Function name must be a string in /home5/absfairi/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 281 This is a bug of prestashop. To fix this you need to disable smarty cache in (advanced parameters->>performance) Hi Please thank you kindly ask your questions on the English forum if you only speak English. or write in French, Thank you for your understanding Link to comment Share on other sites More sharing options...
titeuf913 Posted November 7, 2013 Share Posted November 7, 2013 Effectivement, pour ma part c'était le module block catégorie. En le supprimant du hook left je n'ai plus de probleme Merci pour la solution 1 Link to comment Share on other sites More sharing options...
Juanan13 Posted January 10, 2014 Share Posted January 10, 2014 Bonjour, j'ai rencontré le même problème (page blanche/erreur 500 en naviguant dans les catégories et produits & cache smarty activé). En supprimant le bloc catégorie du hook left, tout fonctionne ... Merci Vom, problème résolu dans la version 1.5.5 était la même Désolé pour mon français. Albacete - Espagne Link to comment Share on other sites More sharing options...
TCJET Posted February 11, 2014 Share Posted February 11, 2014 (edited) Please thank you kindly ask your questions on the English forum if you only speak English. or write in French, Thank you for your understanding I only speak English, but I hope that you will forgive me for posting a link to the answer as I posted on an English thread: http://www.prestashop.com/forums/topic/220984-white-screen-when-clicking-on-page-refresh-and-it-loads-fine/?do=findComment&comment=1557237 That should be the solution. . . now somebody should translate that. . . Edited February 11, 2014 by TCJET (see edit history) 1 Link to comment Share on other sites More sharing options...
Jean.M Posted November 24, 2014 Share Posted November 24, 2014 Effectivement, pour ma part c'était le module block catégorie. En le supprimant du hook left je n'ai plus de probleme Merci pour la solution Bonjour, Comment avez vous identifié que c'etait le module block catégorie? Cordialement, Link to comment Share on other sites More sharing options...
Oron Posted November 24, 2014 Share Posted November 24, 2014 I only speak English, but I hope that you will forgive me for posting a link to the answer as I posted on an English thread: http://www.prestashop.com/forums/topic/220984-white-screen-when-clicking-on-page-refresh-and-it-loads-fine/?do=findComment&comment=1557237 That should be the solution. . . now somebody should translate that. . . Hey Used google translation with all the answers in English we believe the English forum and all the French do not understand English. I never learned English in school but I'm working on to speak in English. The French responses on the English forum are not more appreciated. It's nice to have help around the world but keep a clear language forum. Links to answer in another language is to accept what is natural. 6 answers 18 is much Thank you for your unterstanding Link to comment Share on other sites More sharing options...
presto07 Posted March 29, 2017 Share Posted March 29, 2017 Recently, I installed Prestashop v1.7 and turned on another language. However, when i made the language selection on the front end of the site...i got this error: SmartyException in smarty_internal_templatebase.php line 129: Unable to load template file '/index.tpl'. in smarty_internal_templatebase.php line 129 at Smarty_Internal_TemplateBase->fetch('/index.tpl', null, 'layouts/layout-full-width.tpl', null, false, true, false) in SmartyDev.php line 41 at SmartyDev->fetch('/index.tpl', null, 'layouts/layout-full-width.tpl') in FrontController.php line 655 at FrontControllerCore->smartyOutputContent('/index.tpl') in FrontController.php line 639 at FrontControllerCore->display() in Controller.php line 221 at ControllerCore->run() in Dispatcher.php line 366 at DispatcherCore->dispatch() in index.php line 28 Need help any one? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now