Re: [SMARTY] could not load plugin file

From: Date: Wed, 12 Jun 2002 19:29:06 +0000
Subject: Re: [SMARTY] could not load plugin file
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4816@lists.php.net to get a copy of this message
Definitely not. Here is the exact code: require "Smarty.class.php"; $te = new Smarty(); $te->left_delimiter = "{{"; $te->right_delimiter = "}}"; $te->assign( "te_left_delimiter", "{{" ); $te->assign( "te_right_delimiter", "}}" ); $te->assign( "rootdir", $rootdir ); $te->assign( "webdir", $webdir ); $te->assign( "logfile", $logfile ); $te->assign( "tpldir", $tpldir ); $te->assign( "db_type", "mysql" ); $te->assign( "db_host", $_SESSION["dbhost"] ); $te->assign( "db_port", $_SESSION["dbport"] ); $te->assign( "db_name", $_SESSION["dbname"] ); $te->assign( "db_user", $_SESSION["dbuser"] ); $te->assign( "db_pass", $_SESSION["dbpass"] ); $inistring = $te->fetch( "$installdir/willow.ini.tpl" ); Travis On Wed, 12 Jun 2002, Monte Ohrt wrote: > something like: > > $smarty->register_resource("c", array(...)); > > travis@dawnstar.org wrote: > > Not that I'm aware of. What code would I look for to give you a > > definitive answer? > > > > Travis > > > > On Wed, 12 Jun 2002, Monte Ohrt wrote: > > > > > >>Is the php application trying to register a resource named "c" ? > >> > >>travis@dawnstar.org wrote: > >> > >>>Please help! I have a php file which creates an instance of Smarty like > >>>so: > >>> require "Smarty.class.php"; > >>> $te = new Smarty(); > >>> (then a bunch of te->assign()s...) > >>> > >>>And certain users, noteably on Windows, are getting the following error: > >>> > >>>------------------------------------------------------------------------------ > >>>Warning: Smarty plugin error: could not load plugin file > >>>c:\apache\include\plugins\resource.c.php in > >>>c:\apache\include\Smarty.class.php > >>>on line 1810 > >>> > >>>Fatal error: Call to undefined function: () in > >>>c:\apache\include\Smarty.class.php on line 981 > >>>------------------------------------------------------------------------------ > >>> > >>>I can't reproduce the error, so I'm having a lot of trouble solving it. > >>>Please help! And let me know if you need more information. > >>> > >>>Travis > >>> > >>> > >> > >> > >> > >> > > > > > >

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