Exception: FLEA_Db_Exception_SqlQuery
Message: SQL Error Message: "Table 'rhcfdlcom.com_config' doesn't exist"
SQL : "SHOW FULL COLUMNS FROM `com_config`"
SQL Error code: "7335941".
Filename: /www/wwwroot/rhcfdl.com/LIBS/FLEA/FLEA/Db/Driver/Mysql.php [244]
#13 FLEA_Db_Driver_Mysql::execute('SHOW FULL COLUMNS FROM `com ...')
ARGS:
Array
(
[0] => SHOW FULL COLUMNS FROM `com_config`
)
SOURCE CODE:
234 |
'BLOB' => 'X',
|
235 |
'TEXT' => 'X',
|
236 |
'MEDIUMBLOB' => 'X',
|
237 |
'MEDIUMTEXT' => 'X',
|
238 |
'LONGBLOB' => 'X',
|
239 |
'LONGTEXT' => 'X',
|
240 |
'ENUM' => 'C',
|
241 |
'SET' => 'C',
|
242 |
);
|
243 |
|
244 |
$rs = $this->execute(sprintf($this->META_COLUMNS_SQL, $table));
|
245 |
if (!$rs) { return false; }
|
246 |
$retarr = array();
|
247 |
while (($row = mysql_fetch_assoc($rs))) {
|
248 |
$field = array();
|
249 |
$field['name'] = $row['Field'];
|
250 |
$type = $row['Type'];
|
251 |
|
252 |
$field['scale'] = null;
|
253 |
$queryArray = false;
|
254 |
if (preg_match('/^(.+)\((\d+),(\d+)/', $type, $queryArray)) {
|
Filename: /www/wwwroot/rhcfdl.com/LIBS/FLEA/FLEA/Db/TableDataGateway.php [1996]
#12 FLEA_Db_Driver_Mysql::metaColumns('`com_config`')
ARGS:
Array
(
[0] => `com_config`
)
SOURCE CODE:
1986 |
$meta = FLEA::getCache($cacheId, FLEA::getAppInf('dbMetaLifetime'));
|
1987 |
if (is_array($meta)) {
|
1988 |
$this->meta = $meta;
|
1989 |
return true;
|
1990 |
}
|
1991 |
}
|
1992 |
|
1993 |
/**
|
1994 |
* 从数据库获得 meta
|
1995 |
*/
|
1996 |
$this->meta = $this->dbo->metaColumns($this->qtableName);
|
1997 |
if (!is_array($this->meta) || empty($this->meta)) {
|
1998 |
FLEA::loadClass('FLEA_Db_Exception_MetaColumnsFailed');
|
1999 |
return __THROW(new FLEA_Db_Exception_MetaColumnsFailed($this->qtableName));
|
2000 |
}
|
2001 |
|
2002 |
if ($cached) {
|
2003 |
return FLEA::writeCache($cacheId, $this->meta);
|
2004 |
} else {
|
2005 |
return true;
|
2006 |
}
|
Filename: /www/wwwroot/rhcfdl.com/LIBS/FLEA/FLEA/Db/TableDataGateway.php [333]
#11 FLEA_Db_TableDataGateway::_prepareMeta()
ARGS:
Array
(
)
SOURCE CODE:
323 |
$this->dbo =& $dbo;
|
324 |
|
325 |
if (empty($this->schema) && !empty($dbo->dsn['schema'])) {
|
326 |
$this->schema = $dbo->dsn['schema'];
|
327 |
}
|
328 |
if (empty($this->fullTableName)) {
|
329 |
$this->fullTableName = $dbo->dsn['prefix'] . $this->tableName;
|
330 |
}
|
331 |
$this->qtableName = $dbo->qtable($this->fullTableName, $this->schema);
|
332 |
|
333 |
if (!$this->_prepareMeta()) {
|
334 |
return false;
|
335 |
}
|
336 |
$this->fields = array_keys($this->meta);
|
337 |
|
338 |
if (is_array($this->validateRules)) {
|
339 |
foreach ($this->validateRules as $fieldName => $rules) {
|
340 |
$fieldName = strtoupper($fieldName);
|
341 |
if (!isset($this->meta[$fieldName])) { continue; }
|
342 |
foreach ((array)$rules as $ruleName => $rule) {
|
343 |
$this->meta[$fieldName][$ruleName] = $rule;
|
Filename: /www/wwwroot/rhcfdl.com/LIBS/FLEA/FLEA/Db/TableDataGateway.php [306]
#10 FLEA_Db_TableDataGateway::setDBO(FLEA_Db_Driver_Mysql)
ARGS:
Array
(
[0] => FLEA_Db_Driver_Mysql Object
(
[NEXT_ID_SQL] => UPDATE %s SET id = LAST_INSERT_ID(id + 1)
[CREATE_SEQ_SQL] => CREATE TABLE %s (id INT NOT NULL)
[INIT_SEQ_SQL] => INSERT INTO %s VALUES (%s)
[DROP_SEQ_SQL] => DROP TABLE %s
[META_COLUMNS_SQL] => SHOW FULL COLUMNS FROM %s
[PARAM_STYLE] => ?
[HAS_INSERT_ID] => 1
[HAS_AFFECTED_ROWS] => 1
[_mysqlVersion] => 5.5.62-log
[TRUE_VALUE] => 1
[FALSE_VALUE] => 0
[NULL_VALUE] => NULL
[HAS_TRANSACTION] =>
[HAS_SAVEPOINT] =>
[RESULT_FIELD_NAME_LOWER] =>
[dsn] => Array
(
[driver] => mysql
[host] => localhost
[database] => rhcfdlcom
[login] => rhcfdlcom
[password] => kdkjhGG3
[charset] => utf8
[port] =>
[options] =>
[prefix] => com_
[schema] =>
[id] => mysql://rhcfdlcom:kdkjhGG3@localhost_com_/rhcfdlcom//
)
[conn] => Resource id #27
[log] => Array
(
[0] => SELECT VERSION()
[1] => SET NAMES 'utf8'
[2] => SHOW FULL COLUMNS FROM `com_config`
)
[querycount] => 3
[lasterr] => Table 'rhcfdlcom.com_config' doesn't exist
[lasterrcode] => 1146
[_insertId] =>
[_transCount] => 0
[_hasFailedQuery] =>
[_savepointStack] => Array
(
)
[enableLog] => 1
)
)
SOURCE CODE:
296 |
// 初始化数据访问对象
|
297 |
if (!isset($params['dbo'])) {
|
298 |
if (isset($params['dbDSN'])) {
|
299 |
$dbo =& FLEA::getDBO($params['dbDSN']);
|
300 |
} else {
|
301 |
$dbo =& FLEA::getDBO();
|
302 |
}
|
303 |
} else {
|
304 |
$dbo =& $params['dbo'];
|
305 |
}
|
306 |
$this->setDBO($dbo);
|
307 |
|
308 |
// 当 skipCreateLinks 不为 true 时,建立关联
|
309 |
if (!isset($params['skipCreateLinks']) || $params['skipCreateLinks'] == false) {
|
310 |
$this->relink();
|
311 |
}
|
312 |
}
|
313 |
|
314 |
/**
|
315 |
* 设置数据库访问对象
|
316 |
*
|
Filename: /www/wwwroot/rhcfdl.com/LIBS/FLEA/FLEA.php [422]
#9 FLEA_Db_TableDataGateway::FLEA_Db_TableDataGateway()
ARGS:
Array
(
)
SOURCE CODE:
412 |
} else {
|
413 |
$classExists = class_exists($className);
|
414 |
}
|
415 |
if (!$classExists) {
|
416 |
if (!FLEA::loadClass($className)) {
|
417 |
$return = false;
|
418 |
return $return;
|
419 |
}
|
420 |
}
|
421 |
|
422 |
$instances[$className] =& new $className();
|
423 |
FLEA::register($instances[$className], $className);
|
424 |
return $instances[$className];
|
425 |
}
|
426 |
|
427 |
/**
|
428 |
* 将一个对象实例注册到对象实例容器,以便稍后取出
|
429 |
*
|
430 |
* example:
|
431 |
* <code>
|
432 |
* $obj =& new MyClass();
|
Filename: /www/wwwroot/rhcfdl.com/CORE/SHARED/Helper.php [504]
#8 FLEA::getSingleton('Table_Config')
ARGS:
Array
(
[0] => Table_Config
)
SOURCE CODE:
494 |
}
|
495 |
flock($fp, LOCK_UN);
|
496 |
fclose($fp);
|
497 |
return $data;
|
498 |
} else {
|
499 |
return false;
|
500 |
}
|
501 |
}
|
502 |
|
503 |
function getSettings() {
|
504 |
$configobj=&FLEA::getSingleton('Table_Config');
|
505 |
$config=$configobj->find(array('lang'=>$_SESSION['lang']));
|
506 |
return $config;
|
507 |
}
|
508 |
//新增加函数
|
509 |
//实现分页
|
510 |
function pagebreak($pattern,$content)
|
511 |
{
|
512 |
$content = $content;
|
513 |
$pattern = $pattern;
|
514 |
$strsplit = explode($pattern, $content);
|
Filename: /www/wwwroot/rhcfdl.com/CORE/SHARED/Helper.php [173]
#7 getSettings()
ARGS:
Array
(
)
SOURCE CODE:
163 |
function getSEO($conTitle='',$table='',$conditions=array())
|
164 |
{
|
165 |
$seo=&FLEA::loadFile('SEO.'.$_SESSION['lang'].'.inc.php');
|
166 |
if(isset($seo[$_GET['c']]))
|
167 |
{
|
168 |
$seo=$seo[$_GET['c']];
|
169 |
}else{
|
170 |
$seo=$seo['main'];
|
171 |
}
|
172 |
$seo=$seo[$_GET['a']]?$seo[$_GET['a']]:$seo['default'];
|
173 |
$config=getSettings();
|
174 |
$title_a=array($conTitle,$seo[title],$config['sitename']);
|
175 |
$key_a=array($conTitle,$seo[keyword]);
|
176 |
$desc_a=array($conTitle,$seo[desc]);
|
177 |
foreach($title_a as $k=>$v)
|
178 |
{
|
179 |
if($title_a[$k]=='') unset($title_a[$k]);
|
180 |
}
|
181 |
foreach($key_a as $k=>$v)
|
182 |
{
|
183 |
if($key_a[$k]=='') unset($key_a[$k]);
|
Filename: /www/wwwroot/rhcfdl.com/CORE/SHARED/Common.php [7]
#6 getSEO()
ARGS:
Array
(
)
SOURCE CODE:
1 |
<?php
|
2 |
FLEA::loadClass('FLEA_Controller_Action');
|
3 |
class Common {
|
4 |
var $smarty;
|
5 |
function __construct() {
|
6 |
$this->smarty =FLEA_Controller_Action::_getView();
|
7 |
$seoC=getSEO();
|
8 |
$seo=$seoC['seo'];
|
9 |
$config=$seoC['config'];
|
10 |
$lang=$_SESSION['lang'];
|
11 |
$htmlinfo=FLEA::getAppInf('_htmlInfo');
|
12 |
$viewdata =array(
|
13 |
'config' => $config,
|
14 |
'lang' =>$lang,
|
15 |
'htmlinfo'=>$htmlinfo,
|
16 |
);
|
17 |
$this->smarty->assign($viewdata);
|
Filename: /www/wwwroot/rhcfdl.com/CORE/SHARED/Common.php [20]
#5 Common::__construct()
ARGS:
Array
(
)
SOURCE CODE:
10 |
$lang=$_SESSION['lang'];
|
11 |
$htmlinfo=FLEA::getAppInf('_htmlInfo');
|
12 |
$viewdata =array(
|
13 |
'config' => $config,
|
14 |
'lang' =>$lang,
|
15 |
'htmlinfo'=>$htmlinfo,
|
16 |
);
|
17 |
$this->smarty->assign($viewdata);
|
18 |
}
|
19 |
}
|
20 |
$common =new Common();
|
21 |
?>
|
Filename: /www/wwwroot/rhcfdl.com/LIBS/FLEA/FLEA.php [298]
#4 require('/www/wwwroot/rhcfdl.com/COR ...')
ARGS:
Array
(
[0] => /www/wwwroot/rhcfdl.com/CORE/SHARED/Common.php
)
SOURCE CODE:
288 |
{
|
289 |
static $is_loaded = array();
|
290 |
|
291 |
$path = FLEA::getFilePath($filename);
|
292 |
if ($path != '') {
|
293 |
if (isset($is_loaded[$path]) && $loadOnce) { return true; }
|
294 |
$is_loaded[$path] = true;
|
295 |
if ($loadOnce) {
|
296 |
return require_once($path);
|
297 |
} else {
|
298 |
return require($path);
|
299 |
}
|
300 |
}
|
301 |
|
302 |
FLEA::loadClass('FLEA_Exception_ExpectedFile');
|
303 |
__THROW(new FLEA_Exception_ExpectedFile($filename));
|
304 |
return false;
|
305 |
}
|
306 |
|
307 |
/**
|
308 |
* 载入指定类的定义文件
|
Filename: /www/wwwroot/rhcfdl.com/LIBS/FLEA/FLEA.php [909]
#3 FLEA::loadFile('Common')
ARGS:
Array
(
[0] => Common
)
SOURCE CODE:
899 |
// 处理 $loadMVC
|
900 |
if ($loadMVC) {
|
901 |
$MVCPackageFilename = FLEA::getAppInf('MVCPackageFilename');
|
902 |
if ($MVCPackageFilename != '') {
|
903 |
require_once($MVCPackageFilename);
|
904 |
}
|
905 |
}
|
906 |
|
907 |
// 处理 autoLoad
|
908 |
foreach ((array)FLEA::getAppInf('autoLoad') as $file) {
|
909 |
FLEA::loadFile($file);
|
910 |
}
|
911 |
|
912 |
// 载入指定的 session 服务提供程序
|
913 |
if (FLEA::getAppInf('sessionProvider')) {
|
914 |
FLEA::getSingleton(FLEA::getAppInf('sessionProvider'));
|
915 |
}
|
916 |
// 自动起用 session 会话
|
917 |
if (FLEA::getAppInf('autoSessionStart')) {
|
918 |
session_start();
|
919 |
}
|
Filename: /www/wwwroot/rhcfdl.com/LIBS/FLEA/FLEA.php [808]
#2 FLEA::init()
ARGS:
Array
(
)
SOURCE CODE:
798 |
* FleaPHP 应用程序 MVC 模式入口
|
799 |
*
|
800 |
* 如果应用程序需要使用 FleaPHP 提供的 MVC 模式,则在载入 FLEA.php 和自定义的应用程序设置后,应该调用 FLEA::runMVC() 启动应用程序。
|
801 |
*/
|
802 |
function runMVC()
|
803 |
{
|
804 |
$MVCPackageFilename = FLEA::getAppInf('MVCPackageFilename');
|
805 |
if ($MVCPackageFilename != '') {
|
806 |
require_once($MVCPackageFilename);
|
807 |
}
|
808 |
FLEA::init();
|
809 |
|
810 |
// 载入调度器并转发请求到控制器
|
811 |
$dispatcherClass = FLEA::getAppInf('dispatcher');
|
812 |
FLEA::loadClass($dispatcherClass);
|
813 |
if($_GET['controller']=="index.php") unset($_GET['controller']);
|
814 |
$dispatcher =& new $dispatcherClass($_GET);
|
815 |
FLEA::register($dispatcher, $dispatcherClass);
|
816 |
$dispatcher->dispatching();
|
817 |
}
|
818 |
|
Filename: /www/wwwroot/rhcfdl.com/index.php [59]
#1 FLEA::runMVC()
ARGS:
Array
(
)
SOURCE CODE:
49 |
'webControlsExtendsDir'=>ROOT.'/web/'.MYWEB.'/zcomm/Webcontrols',
|
50 |
'urlParameterPairStyle' => '/',
|
51 |
'controllerAccessor' =>'c',
|
52 |
'actionAccessor' =>'a',
|
53 |
'defaultAction' =>'index',
|
54 |
'defaultController' =>'main',
|
55 |
);
|
56 |
FLEA::loadAppInf($appinf);
|
57 |
FLEA::setAppInf('autoLoad',array('FLEA_Helper_Array','FLEA_Language','Helper','Common'));
|
58 |
FLEA::setAppInf('displayErrors',true);
|
59 |
FLEA::runMVC();
|
60 |
?> |