Re: SV: [SMARTY] unable to read template resource error

From: Date: Sun, 17 Nov 2002 20:59:19 +0000
Subject: Re: SV: [SMARTY] unable to read template resource error
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6463@lists.php.net to get a copy of this message
As I mentioned in my followup, it had to do with enabling the Debug Console (and the way Smarty looks for the debug template). I did go back and set debug_tpl, along with the other variables, but errors remained. I also had SMARTY_DIR set correctly. So, something was missing for it to properly invoke the debug console. I finally got lazy and just set my .htaccess file to include Smarty in the PHP path...it works now, and I have control over the directories Smarty is writing to. But, I was under the impression I should not have to set the path variable if I explicitly set all the other required Smarty path variables. Roy At 09:49 PM 11/17/2002 +0100, Paolo Nesti Poggi wrote:
Have you checked if you've forgot some {include file=""} tag around in your template? Paolo -----Oprindelig meddelelse----- Fra: Roy [mailto:roy@monkeybots.com] Sendt: 16. november 2002 18:41 Til: smarty-general@lists.php.net Emne: [SMARTY] unable to read template resource error Howdy Folks, All my Smarty templates generate the following error at the end of their execution... Warning: Smarty error: unable to read template resource: "" in /home/beatfarm/public_html/Smarty/Smarty-2.3.0/Smarty.class.php on line 589 This confuses me, since it obviously finds the template directory (since it's displaying the page using the template). I am using the little trick extending the class, which allows more control over caching directories and the like. Here's the initial class I call... class Smarty_Setup extends Smarty {
    function Smarty_Setup() {
              // Class Constructor. These automatically get set
with each new instance.
              $this->template_dir =
'/web/beatfarm/public_html/Smarty/Smartystore/templates/';
              $this->compile_dir =
'/web/beatfarm/public_html/Smarty/Smartystore/templates_c/';
              $this->config_dir =
'/web/beatfarm/public_html/Smarty/Smartystore/configs/';
              $this->cache_dir =
'/web/beatfarm/public_html/Smarty/Smartystore/cache/';
    }
} I just confirmed that, if I disable the Smarty_Setup class and go back to using it the 'regular' way, it works fine. Is there something I'm missing that is causing this to barf right at the end? I'm pretty sure all my paths are correct. Is there something else I need to set? Roy -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.smarty.general (#6463) next »