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

Difficulties installing...

 
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
archie
Smarty n00b


Joined: 11 Dec 2003
Posts: 1

PostPosted: Thu Dec 11, 2003 9:38 pm    Post subject: Difficulties installing... Reply with quote

Hello

I have spent the last three days trying to install Smarty. I am sure it is due to my own incompitance rather than any fault of this magnificent software, but if anyone could give me some pointers I would be very grateful.

I currently have a directory called 'smarty' in the root directory of my webspace - ie not directly accessable from the internet. In this folder, I have copied across all the required smarty files, as detailed in the manual (core directory, plugins directory, smarty.class.php, and smarty_compiler.class.php).

I have created (in the 'smarty' directory) two directories called 'templates' and 'templates_c'. I have changemod'ed them to 777 (yes, I know it isn't the most secure setting, but in my despiration to finally install Smarty I thought I would start with the easy option and then make it secure later).

I have copied across 'footer.tpl' , 'header.tpl' , and 'index.tpl' from the 'demo' directory of the Smarty download into the 'templates' directory on site. I have also copied across the 'index.php' demo file into the 'public_html' directory of my site (ie, if you go to www.mysite.com, the php file that loads is the Smarty demo php file).

I modified the index.php file, inserting the following:

Code:
define("SMARTY_DIR","../smarty/");

require_once(SMARTY_DIR."Smarty.class.php");


I hoped that this would successfully point Smarty in the direction of the folders in which it is installed.

What actually happens is I get the following error:

Quote:
Warning: Smarty error: unable to read resource: "index.tpl" in /home/neowar/smarty/Smarty.class.php on line 1144

Fatal error: Smarty error: the $compile_dir 'templates_c' does not exist, or is not a directory. in /home/neowar/smarty/Smarty.class.php on line 1144


The fact that I am getting a Smarty error, rather than just a php error, means that it has found and tried to execute the smarty.class.php file. What I don't understand is how it then cannot find the directory 'templates_c'? I have defined the SMARTY_DIR - so what is stopping it from working?

I would really appreciate help with this.

Thanks in advance,

Archie
Back to top
View user's profile Send private message
yvan
Smarty n00b


Joined: 17 Dec 2003
Posts: 2

PostPosted: Wed Dec 17, 2003 8:56 pm    Post subject: i've got the same bug! Reply with quote

Hi,
I've seen you haven't get any reply to your question... So, i'm a new 'smarty' user and i've got the same bug. Have you find what's wrong with that??? If yes, please could you send me a mail to explain me the way to correct it.
Thanks a lot.
Yvan
Back to top
View user's profile Send private message
boots
Administrator


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

PostPosted: Wed Dec 17, 2003 9:29 pm    Post subject: Reply with quote

try searching the forum
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