Re: smarty 2.5 crashin' php on iis/xp

From: Date: Tue, 24 Jun 2003 13:36:54 +0000
Subject: Re: smarty 2.5 crashin' php on iis/xp
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9770@lists.php.net to get a copy of this message
Had a very similar problem with my installation. The Smarty.class files are in a directory called /libs/. The way I got it to work without messing up the "dir structure" was to put the Fully quallified path in the SMARTY_DIR directive and leave the plugins etc where they are. define('SMARTY_DIR','e:/max/matrix/includes/Smarty-2.5.0/libs/'); include_once(SMARTY_DIR.'Smarty.class.php'); $smarty = new Smarty(); |Hope it helps ;-) Pete Rasmus Schultz wrote:
Hi Smarties, I've been trying to upgrade my sites to Smarty 2.5 now for a couple of days, to no avail ... I was previously using Smarty 2.3.1 without problems, but when I install 2.5 instead, I get a strange error: Fatal error: main(): Failed opening required 'Smarty.class.php' (include_path='.;c:\php4\pear') in C:\Documents and Settings\mindplay\My Documents\Websites\Help Editors\Orion Smarty\i_hh.php on line 3 This error doesn't make any sense ... it would mean the file is missing, which is impossible, since I'm overwriting the already existing file with the new one. I've checked the file permissions, and they're correct. I've checked all permissions and security settings, both in PHP and IIS. The strange thing is, after overwriting the Smarty library files with the 2.5 versions and getting this strange error, the error "sticks", even after I downgrade to 2.3.1 again - I have to reboot to get the error to go away ... but at the same time, if I run a DIFFERENT Smarty 2.3.1 installation off the same server, that works fine - it's like the server makes up it's mind this script doesn't work, and then won't run it all again until the next session, really weird ... I'm using the latest version of IIS on Win XP Pro, all latest patches, service packs etc. are installed. I'm using the ISAPI DLL version of PHP 4.3.2 - I've tried downgrading to the CGI EXE instead, same deal. Any ideas would be warm welcome ... please reply directly, as I'm not on the mailing list at the moment - thanks. Regards, Rasmus Schultz


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