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

trouble with Demo

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


Joined: 29 Sep 2004
Posts: 2

PostPosted: Wed Sep 29, 2004 3:48 pm    Post subject: trouble with Demo Reply with quote

I am trying to install Smarty and am running into probs.

I am trying to get demo to work and i get the following error:
Warning: Unable to access /var/www/html/smarty/libs/core/core.get_microtime.php in /home/virtual/site19/fst/var/www/html/smarty/libs/Smarty.class.php on line 1139

I had to add these lines to the index.php to find Smarty.class.php:
define("SMARTY_DIR","/var/www/html/smarty/libs/");
ini_set("include_path",".:/var/www/html/smarty/libs/");
require '../libs/Smarty.class.php';

I have been working for days and i am stumped... does anyone know of a company that will assist with Smarty install for $? I feel like i am spinning my wheels.
Back to top
View user's profile Send private message MSN Messenger
boots
Administrator


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

PostPosted: Wed Sep 29, 2004 3:58 pm    Post subject: Reply with quote

Check it out:

Warning: Unable to access /var/www/html/smarty/libs/core/core.get_microtime.php in /home/virtual/site19/fst/var/www/html/smarty/libs/Smarty.class.php on line 1139

In the first case, it is looking for /var/www/html/smarty/libs/core/ (note that in your version of Smarty, core/ is a a required subdirectory of libs/)

But apararently, your Smarty class is at /home/virtual/site19/fst/var/www/html/smarty/libs/

So Smarty can't find the Smarty dir. I take it that your include of the Smarty class is not using the distribution's smarty class because you modified it. Don't do that: instead, subclass the original Smarty class as explained in the documentation: http://smarty.php.net/manual/en/installing.smarty.extended.php

Still, setting SMARTY_DIR should work...unless you are super funkifying your modified smarty class...hmm.

HTH
Back to top
View user's profile Send private message
stevevs
Smarty n00b


Joined: 29 Sep 2004
Posts: 2

PostPosted: Wed Sep 29, 2004 4:30 pm    Post subject: Reply with quote

Thanks a million boots. are you for hire? Smile
Back to top
View user's profile Send private message MSN Messenger
boots
Administrator


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

PostPosted: Wed Sep 29, 2004 4:52 pm    Post subject: Reply with quote

For hire? Damn: here I am giving it away for free!
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