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

Problem after moving site to server

 
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 -> General
View previous topic :: View next topic  
Author Message
trev
Smarty n00b


Joined: 19 Apr 2003
Posts: 4
Location: Southampton, UK

PostPosted: Fri Apr 25, 2003 10:08 pm    Post subject: Problem after moving site to server Reply with quote

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
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Fri Apr 25, 2003 10:26 pm    Post subject: Reply with quote

from the error code, it looks like smarty isn't looking in /lib/plugins (which looks like a root path)...
Back to top
View user's profile Send private message
trev
Smarty n00b


Joined: 19 Apr 2003
Posts: 4
Location: Southampton, UK

PostPosted: Sun Apr 27, 2003 5:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Sun Apr 27, 2003 5:59 pm    Post subject: Reply with quote

did you have you smarty_dir set to /path_to_smarty/ or /path_to_smarty/lib/ ? It should be the latter.
Back to top
View user's profile Send private message
trev
Smarty n00b


Joined: 19 Apr 2003
Posts: 4
Location: Southampton, UK

PostPosted: Sun Apr 27, 2003 7:30 pm    Post subject: Reply with quote

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