Jump to content

Fatal error smarty_internal_templatebase.php on line 281


Recommended Posts

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 :

 

Capture%20d’écran%202012-11-15%20à%2021.10.18.png

Capture%20d’écran%202012-11-15%20à%2021.10.28.png

Capture%20d’écran%202012-11-15%20à%2021.10.33.png

 

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 by xscream_007 (see edit history)
Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...
  • 1 month later...

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

  • 3 weeks later...

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 ...

  • Like 1
Link to comment
Share on other sites

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

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

  • 2 weeks later...
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

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

  • 4 months later...
  • 2 months later...

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

  • 1 month later...

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 by TCJET (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 9 months later...

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

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

  • 2 years later...

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'.

 

  1. in smarty_internal_templatebase.php line 129
  2. at Smarty_Internal_TemplateBase->fetch('/index.tpl', null, 'layouts/layout-full-width.tpl', nullfalsetruefalse) in SmartyDev.php line 41
  3. at SmartyDev->fetch('/index.tpl', null, 'layouts/layout-full-width.tpl') in FrontController.php line 655
  4. at FrontControllerCore->smartyOutputContent('/index.tpl') in FrontController.php line 639
  5. at FrontControllerCore->display() in Controller.php line 221
  6. at ControllerCore->run() in Dispatcher.php line 366
  7. at DispatcherCore->dispatch() in index.php line 28

 

 

Need help any one?

 

 

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...