您的位置:BugFree > 论坛 > 技术支持 > BugFree Support[BugFree安装支持] > [问题]请问,Smarty.class.php在哪儿呀,安装包中好象没有哦。
2005-06-07 14:31:18 [问题]请问,Smarty.class.php在哪儿呀,安装包中好象没有哦。
#1
zhumoo
访问次数 : 31
注册日期 : 05-06-07 14:28
上次访问 : 09-10-29 21:05
Fatal error: main(): Failed opening required 'Smarty/Smarty.class.php' (include_path='/Bug/Include/;/Bug/Include/Class/') in E:BugFreeIncludeSetupBug.inc.php on line 77
回帖
2005-06-07 15:11:38
#2
wwccss
访问次数 : 593
注册日期 : 05-05-01 10:08
上次访问 : 10-07-19 11:44
下载最新的版本试一下,是包含路径的问题。
回帖
2005-06-07 15:30:28
#3
zhumoo
访问次数 : 31
注册日期 : 05-06-07 14:28
上次访问 : 09-10-29 21:05
我可是刚下的版本啊
回帖
2005-06-07 16:35:05
#4
leeyupeng
访问次数 : 14
注册日期 : 05-05-10 09:57
上次访问 : 09-10-29 21:05
:oops:
回帖
2005-06-07 17:32:04
#5
wwccss
访问次数 : 593
注册日期 : 05-05-01 10:08
上次访问 : 10-07-19 11:44
你现在使用的是虚拟主机吧,是原来的包含路径判断程序有点问题,可以按照下面的方法进行修改。
打开SetupBug.inc.php

require_once("ConfigBug.inc.php");
这一行之前的代码换成下面的。
[code]
/**
* Report all errors except E_NOTICE
*/
error_reporting(E_ALL ^ E_NOTICE);

/**
* Get the BugFree Directory path and base url address.
* If the php script is in the Admin directory then strip Admin from the ScriptDir.
*/
$BugConfig["ScriptDir"] = eregi_replace("/Admin" , "" , dirname($_SERVER["SCRIPT_FILENAME"]));

// Set the separator of include path. On windows it's ";" while on linux it's ":".
$BugConfig["PathSeparator"] = eregi("WIN",PHP_OS) ? ";" : ":";

// Set the include path.
ini_set("include_path", $BugConfig["ScriptDir"] . "/Include/" . $BugConfig["PathSeparator"] . $BugConfig["ScriptDir"] . "/Include/Class/" . $BugConfig["PathSeparator"] . $BugConfig["ScriptDir"] . "/Include/Class/PhpMailer");

// Create the BaseURL of BugFree system.
$BugConfig["BaseURL"] = "http://" . $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . eregi_replace("/Admin" , "", dirname($_SERVER["SCRIPT_NAME"]));
[/code]
回帖
2005-06-08 09:04:38
#6
zhumoo
访问次数 : 31
注册日期 : 05-06-07 14:28
上次访问 : 09-10-29 21:05
Warning: Smarty error: unable to read resource: "Login.tpl" in E:BugFreeIncludeClassSmartySmarty.class.php on line 1082
回帖
2005-06-08 09:05:39
#7
zhumoo
访问次数 : 31
注册日期 : 05-06-07 14:28
上次访问 : 09-10-29 21:05
我是用的一个虚拟目录,难道这样不行吗?
另外请问,用IIS可不可以?
回帖
2005-06-08 09:42:49
#8
zhumoo
访问次数 : 31
注册日期 : 05-06-07 14:28
上次访问 : 09-10-29 21:05
我将全部文件拷贝到网根下,还是出一样的错,真是郁闷。
回帖
2005-06-08 10:08:48
#9
wwccss
访问次数 : 593
注册日期 : 05-05-01 10:08
上次访问 : 10-07-19 11:44
SetupBug.inc.php文件
[code]
$TPL->template_dir = $BugConfig["ScriptDir"] . "/" . 'Template';
$TPL->compile_dir = $BugConfig["ScriptDir"] . "/" . 'Compile';
[/code]
把上面的两个地址写成绝对路径试一下:
比如
$TPL->template_dir = "d:\bugfree\Template"
iis应该可以,不过我们没有测试过。[/code]
回帖
2005-06-08 10:36:22
#10
zhumoo
访问次数 : 31
注册日期 : 05-06-07 14:28
上次访问 : 09-10-29 21:05
看到登录页面了,谢谢wwccss的热心帮助!!
回帖