smarty error, new one

From: Date: Wed, 19 Jun 2002 22:49:34 +0000
Subject: smarty error, new one
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4953@lists.php.net to get a copy of this message
i reinstalled smarty and fixed the problems. it was magic. however, now I have a new problem. Here is the mysterious error of the hour: [Wed Jun 19 18:42:16 2002] [error] [client 127.0.0.1] PHP Parse error: parse error, unexpected T_VARIABLE, expecting ')' in c:\templates_c\N66\N668896216\0.php on line 4 here is the php from the smarty generated code, lines 3 - 5: ?php $this->_load_plugins(array( array('function', ''$adtitle_value'', 'createad.tpl', 2552, false),)); ?><html> I would like to ad that no matter what I do to the tpl file, it's the same error. I've deleted the cache files, and I've even tried loading just a plain .tpl file and i STILL get there error.. any thoughts? ----- Original Message ----- From: "Blue Presley" <blue928@carolina.rr.com> To: <smarty-general@lists.php.net> Sent: Wednesday, June 19, 2002 12:45 PM Subject: Re: [SMARTY] smarty error > no go.. i've tried just ('foo.tpl'), > ('emp/foo.tpl'),('./foo.tpl') > > what i've done is i had all my files in one directory with the template* > directories in the heirarchy. to organize things a bit, I just created to > subdirectories (emp and js) to file things in. once i put the items in > those directory.. kerput.. nuttin.. broken.. and i keep getting that error > now. any other thoughts? > > blue > ----- Original Message ----- > From: "Monte Ohrt" <monte@ispi.net> > To: "Blue Presley" <blue928@carolina.rr.com> > Cc: <smarty-general@lists.php.net> > Sent: Wednesday, June 19, 2002 12:05 PM > Subject: Re: [SMARTY] smarty error > > > > Try getting rid of the "./" in front of your template when you are using: > > > > $smarty->display('foo.tpl'); > > > > or > > > > {include file="foo.tpl"} > > > > > > > > Blue Presley wrote: > > > yes.. all directories have appropriate permissions. However, my > directory > > > structure has been reorganized. anyone know why I would be getting this > > > error for just moving files lower in the directory tree? > > > > > > [Wed Jun 19 11:47:57 2002] [error] [client 127.0.0.1] PHP Warning: > Smarty > > > error: unable to read template resource: "./login.tpl" in c:\program > > > files\php\includes\Smarty.class.php on line 466 > > > > > > > > > that's from apache. > > > what is the "template resource?" > > > > > > thanks, > > > blue > > > ----- Original Message ----- > > > From: "Ben Godfrey" <ben@hypothetical.co.uk> > > > To: "Blue Presley" <blue928@carolina.rr.com> > > > Cc: <smarty-general@lists.php.net> > > > Sent: Monday, June 17, 2002 9:18 PM > > > Subject: Re: [SMARTY] smarty error > > > > > > > > > > > >>Does the web server have permission to read the file? > > >> > > >>Ben > > >> > > >> > > >>On Tuesday, June 18, 2002, at 01:39 , Blue Presley wrote: > > >> > > >> > > >>>what does this error mean? > > >>> > > >>> > > >>>PHP Warning: Smarty error: unable to read template resource: > > >>>"login.tpl" in c:\program files\php\includes\Smarty.class.php > > >>>on line 466 > > >>> > > >>>the file is there. I don't understand why it can't read it. > > >>> > > >>>thanks, > > >>>blue > > >> > > > > > > > > > > > > > > -- > > Monte Ohrt <monte@ispi.net> > > Director of Technology, ispi Inc. > > > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

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