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

Multiple smarty sites on one rented host

 
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
thecringe
Smarty Rookie


Joined: 16 Mar 2004
Posts: 11
Location: NYC

PostPosted: Tue Mar 16, 2004 2:06 am    Post subject: Multiple smarty sites on one rented host Reply with quote

I installed smarty on the server I am using (rented). The site I first did with smarty works fine, functions and all.

I started a new site.
I copied the lib and resorces.
I made changes in the config.

The templating works but functions do not.
The first time I put in a function ( if in this case ) I got a parse error in the smarty generated compile file.

Any suggestions?
Thanks,
-Thecringe
Back to top
View user's profile Send private message Visit poster's website
boots
Administrator


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

PostPosted: Tue Mar 16, 2004 3:54 am    Post subject: Reply with quote

Is it possible you copied the temporary files from the old site to the new one? If so, remove them from the new site--it will need its own temporary directories and files.
Back to top
View user's profile Send private message
thecringe
Smarty Rookie


Joined: 16 Mar 2004
Posts: 11
Location: NYC

PostPosted: Tue Mar 16, 2004 4:12 am    Post subject: Reply with quote

Would that just be the files inside of /complie/ ?
Back to top
View user's profile Send private message Visit poster's website
thecringe
Smarty Rookie


Joined: 16 Mar 2004
Posts: 11
Location: NYC

PostPosted: Tue Mar 16, 2004 4:24 am    Post subject: Reply with quote

The error that gets writen to the page is:
" Parse error: parse error in /home/sites/site71/web/resources/compile/%%144/%%1441804480/dinner.php.php on line 34 "

The line of code from /dinner.php.php being referenced in the error is:
" <option value="dinner" <?php if (): ?>selected<?php endif; ?> >dinner</option> "

In the template file it looks like this:
" <option value="dinner" <%if $menu eq "dinner" %>selected<%/if%> >dinner</option> "

Maybe this helps,
-Thecringe
Back to top
View user's profile Send private message Visit poster's website
boots
Administrator


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

PostPosted: Tue Mar 16, 2004 4:25 am    Post subject: Reply with quote

thecringe wrote:
Would that just be the files inside of /complie/ ?


Well, wherever your equivalents for the 'templates_c' (compile_dir)and 'cache' (cache_dir) are.
Back to top
View user's profile Send private message
thecringe
Smarty Rookie


Joined: 16 Mar 2004
Posts: 11
Location: NYC

PostPosted: Tue Mar 16, 2004 6:00 pm    Post subject: Reply with quote

I am still getting the same error.
I apriciate the help though.
Any other suggestions?

-Thecringe
Back to top
View user's profile Send private message Visit poster's website
boots
Administrator


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

PostPosted: Tue Mar 16, 2004 6:32 pm    Post subject: Reply with quote

hmm. I'm at a loss based on what you posted so far. Sad
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