CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Fatal error: smarty
Pages: [1]

Author Topic: Fatal error: smarty  (Read 2111 times)

priscillab

  • Guest
Fatal error: smarty
June 02, 2010, 01:46:29 am
Hello,

I've just installed civicrm but have the following error message on the civicrm page:

Fatal error: Call to undefined function smarty_modifier_truncate() in /home/alltoget/public_html/sites/default/files/civicrm/templates_c/en_US/en_US/%%06/069/0693F89E%%drupal.tpl.php  on line 13

Does anybody out there know what I need to do to fix this, please?

I'm using civicrm 3.1.5 with drupal 6.16, php 5.2.10, and mysql 5.0.90-community.

Many thanks  :)

----------
several hours later:

I've searched the web but I can't find anybody else who has reported and/or solved this problem.

Also, the message on my homepage says:

user error: Smarty error: [in CRM/common/drupal.tpl line 30]: [plugin] modifier 'truncate' is not implemented (core.load_plugins.php, line 118) in /home/alltoget/public_html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1093

Maybe this will help clarify the problem?
« Last Edit: June 02, 2010, 05:45:33 pm by priscillab »

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Fatal error: smarty
June 07, 2010, 11:19:02 am
The smarty_modifier_truncate function is defined in the packages/Smarty/plugins/modifier.truncate.php file; can you check whether your CiviCRM install has it?

Alternatively, it can be a problem with your hosting loading some other Smarty version before the one shipped with CiviCRM (but I think we try to make packages be early enough in the search path).
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

priscillab

  • Guest
Re: Fatal error: smarty
June 07, 2010, 04:23:15 pm
Thank you soooooo much, you were right, the plugins directory was empty for some bizarre reason.

All fixed now  :D


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Fatal error: smarty

This forum was archived on 2017-11-26.