Re: [SMARTY] _get_auto_id problem with cached templates
| From: | messju mohr | Date: | Sat, 31 Jan 2004 16:08:33 +0000 |
| Subject: | Re: [SMARTY] _get_auto_id problem with cached templates | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10908@lists.php.net to get a copy of this message | ||
On Sat, Jan 31, 2004 at 03:55:40PM +0000, Mark Mitchenall wrote:
> Hi,
>
> I have a problem with one smarty driven website, but it only happens at one
> installation. I've tried this with a variety of versions of smarty with
> similar errors. With 2.6.1 I get the following error with all cached
> templates, but not with any non cached ones others...
>
> Fatal error: Call to undefined function: _get_auto_id() in
> /home/sites/site76/web/class/smarty/core/core.read_cache_file.php on line 41
>
> However, with a similar site on the same server, no problems, and with the
> same site, but running on my local machine, no problems. I've emptied the
> cache directories, etc., no effect. I've tried to find out if there's
> anything specific causing the problem, but I'm starting to get quite
> confused.
>
> I tried reverting to an older version of Smarty, and again, a similar
> problem, only the error appeared in the main Smarty class.
>
> If it was just one server, I might be able to spot the problem, but it works
> on another site using almost identical code and the same site showing this
> problem definitely works OK on my local machine, so I'm completely at a
> loss.
>
> Does anyone have ideas as to what I should be looking for?
to me it seems the Smarty.class.php you use doesn't fit to the
core-directory you use.
maybe it's because of any include-path-precedence.
I'd echo SMARTY_DIR and $smarty->_version before i call display() to
see if the correct files are in use.
maybe i'd define:
define('SMARTY_DIR', '/home/sites/site76/web/class/smarty/');
require_once(SMARTY_DIR . 'Smarty.class.php');
on top, to ensure the correct Smarty-installation taken.
> TIA
>
> Mark