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

ERROR : Modifier '...' is not implemented

 
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 -> Installation and Setup
View previous topic :: View next topic  
Author Message
marius_13
Smarty n00b


Joined: 04 Jun 2003
Posts: 4

PostPosted: Wed Jun 04, 2003 7:45 pm    Post subject: ERROR : Modifier '...' is not implemented Reply with quote

I am getting the following error on the smarty demo....

Fatal error: Smarty error: [in index.tpl line 9]: [plugin] modifier 'capitalize' is not implemented (Smarty.class.php, line 2543) in /var/www/html/smarty/Smarty.class.php on line 2652

I'm running Redhat8 & Apache. I'm assuming that my plugins aren't working, but I don't understand why. I untarted the download. Created a smarty dir under my dir that contains index.php. I also created the configs, templates and templates_c dirs. And then copied over
the demo files. Please let me know if you have any ideas.

Thanks,
Brian
Back to top
View user's profile Send private message
sweatje
Smarty Regular


Joined: 17 Apr 2003
Posts: 70
Location: Bettendorf, Iowa, USA

PostPosted: Thu Jun 05, 2003 2:00 am    Post subject: Reply with quote

Seems like your app can't find the plugins directory. It is normally expected to be right below the Smarty.class.php file.
_________________
Jason
jsweat_php AT yahoo DOT com
Back to top
View user's profile Send private message
marius_13
Smarty n00b


Joined: 04 Jun 2003
Posts: 4

PostPosted: Thu Jun 05, 2003 11:18 am    Post subject: Reply with quote

I have that. Current directory structure....

var --- www --- html --- cache
--- configs
--- templates
--- templates_c
--- smarty --- plugins

php.ini is set for user and group to be apache.

cache -> apache : apache rwxr-xr-w
configs -> root : root rwxr-xr-x
templates -> root : root rwxr-xr-x
templates_c -> apache : apahce rwx------
smarty -> root : root rwxr-xr-x
plugins -> apache : apache rwxr-xr-x
Back to top
View user's profile Send private message
sweatje
Smarty Regular


Joined: 17 Apr 2003
Posts: 70
Location: Bettendorf, Iowa, USA

PostPosted: Thu Jun 05, 2003 12:14 pm    Post subject: Reply with quote

and just to make sure, the plugins directory contains the file modifier.capitalize.php
readable by apache?

You might also want to see the contents of the constant SMARTY_DIR after you have included the Smarty.class.php file to verify the path is correct.
_________________
Jason
jsweat_php AT yahoo DOT com
Back to top
View user's profile Send private message
marius_13
Smarty n00b


Joined: 04 Jun 2003
Posts: 4

PostPosted: Thu Jun 05, 2003 12:26 pm    Post subject: Reply with quote

I fixed my problem. You gave me the clue. I printed out SMARTY_DIR, and it was correct /var/www/html/smarty. Then I thought, what if the dir is used to append to a file (SOME_FILE). If the append doesn't check to see if a "/" is needed, then my value would be path and file would be incorrect. I would end up with /var/www/html/smartySOME_FILE. I changed /var/www/html/smarty to /var/www/html/smarty/ and now it works.

Thanks sewatje, your quick responses and help are greatly appreciated.


Thanks again,
Brian
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 -> Installation and Setup 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