|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
trev Smarty n00b
Joined: 19 Apr 2003 Posts: 4 Location: Southampton, UK
|
Posted: Fri Apr 25, 2003 10:08 pm Post subject: Problem after moving site to server |
|
|
I have developed a site locally but after copying everything to the server, I get the following error:
Quote: | Fatal error: Smarty error: [in header.tpl line 3]: [plugin] modifier 'default' is not implemented (Smarty.class.php, line 2543) in /usr/local/psa/home/vhosts/mysite.com/httpdocs/totalaloe/smarty/libs/Smarty.class.php on line 2652 |
The template looks like this:
Quote: | <html>
<head>
<title>Total Aloe - {$pagetitle|default:"Welcome"}</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="templates/ta.css">
</head>
<body class="ta">
<div class="tr">
<div class='headertitle'>Total Aloe</div>
</div> |
If I remove the modifier things sort of work OK. I have made sure that all the files in the /libs/plugins dir are present and correct!
Any ideas? |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Fri Apr 25, 2003 10:26 pm Post subject: |
|
|
from the error code, it looks like smarty isn't looking in /lib/plugins (which looks like a root path)... |
|
Back to top |
|
trev Smarty n00b
Joined: 19 Apr 2003 Posts: 4 Location: Southampton, UK
|
Posted: Sun Apr 27, 2003 5:21 pm Post subject: |
|
|
boots wrote: | from the error code, it looks like smarty isn't looking in /lib/plugins (which looks like a root path)... |
Yes that looks like the probem. Got it working by getting rid of the smarty dir and placing the smarty files directly in the working folder.
There were some access rights probs as well!
Thanks for the help. |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Sun Apr 27, 2003 5:59 pm Post subject: |
|
|
did you have you smarty_dir set to /path_to_smarty/ or /path_to_smarty/lib/ ? It should be the latter. |
|
Back to top |
|
trev Smarty n00b
Joined: 19 Apr 2003 Posts: 4 Location: Southampton, UK
|
Posted: Sun Apr 27, 2003 7:30 pm Post subject: |
|
|
boots wrote: | did you have you smarty_dir set to /path_to_smarty/ or /path_to_smarty/lib/ ? It should be the latter. |
I think it was path_to_smarty !!
The site is located on a temporary server so my client can make comments before it goes live. I will have to move the entire site to a new server so I will set the folders up with a bit more care next time.
Thanks again for your help. |
|
Back to top |
|
|
|
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
|