Exception: FLEA_Db_Exception_SqlQuery
Message: SQL Error Message: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1"
SQL : "SELECT `com_article`.`id` AS flea_pkref_id, `com_article`.* FROM `com_article` WHERE class='' and id!= "
SQL Error code: "7335941".
Filename: /data/wwwroot/unifythink.com/LIBS/FLEA/FLEA/Db/TableDataGateway.php [448]
#6 FLEA_Db_Driver_Mysql::execute('SELECT `com_article`.`id` ...')
ARGS:
Array
(
[0] => SELECT `com_article`.`id` AS flea_pkref_id, `com_article`.* FROM `com_article` WHERE class='' and id!=
)
SOURCE CODE:
438 |
// 当有关联需要处理时,必须获得主★表的主键字段值
|
439 |
$sql = "SELECT {$distinct} {$this->qpka}, {$fields} FROM {$this->qtableName} {$whereby} {$sortby}";
|
440 |
} else {
|
441 |
$sql = "SELECT {$distinct} {$fields} FROM {$this->qtableName} {$whereby} {$sortby}";
|
442 |
}
|
443 |
|
444 |
// 根据 $length 和 $offset 参数决定是否使用限定【结果集的查询
|
445 |
if (null !== $length || null !== $offset) {
|
446 |
$result = $this->dbo->selectLimit($sql, $length, $offset);
|
447 |
} else {
|
448 |
$result = $this->dbo->execute($sql);
|
449 |
}
|
450 |
|
451 |
if ($enableLinks) {
|
452 |
/**
|
453 |
* 查询时※同时将主键值单独提取出来,
|
454 |
* 并且准备一个以主♂键值为键名的二维数组用于◤关联数据的装配
|
455 |
*/
|
456 |
$pkvs = array();
|
457 |
$assocRowset = null;
|
458 |
$rowset = $this->dbo->getAllWithFieldRefs($result, $this->pka, $pkvs, $assocRowset);
|
Filename: /data/wwwroot/unifythink.com/web/yousen/api/FRONT/Controller/ep.php [145]
#5 FLEA_Db_TableDataGateway::findAll('class='' and id!=')
ARGS:
Array
(
[0] => class='' and id!=
)
SOURCE CODE:
135 |
|
136 |
|
137 |
function actiondetail() {
|
138 |
|
139 |
$data =$this->obj->find(array('id'=>$_GET['id']));
|
140 |
|
141 |
$this->obj->incrField(array('id'=>$_GET['id']),'visit');
|
142 |
|
143 |
$conditions="class='".$data['class']."' and id!=".$data['id'];
|
144 |
|
145 |
$list_all=$this->obj->findAll($conditions);
|
146 |
|
147 |
|
148 |
|
149 |
//网站配置
|
150 |
|
151 |
$seoC=getSEO($data,true);
|
152 |
|
153 |
$seo=$seoC['seo'];
|
154 |
|
155 |
$config=$seoC['config'];
|
Filename: /data/wwwroot/unifythink.com/LIBS/FLEA/FLEA/Dispatcher/Simple.php [120]
#4 Controller_ep::actiondetail()
ARGS:
Array
(
)
SOURCE CODE:
110 |
}
|
111 |
if (method_exists($controller, '__setDispatcher')) {
|
112 |
$controller->__setDispatcher($this);
|
113 |
}
|
114 |
|
115 |
// 调用 _beforeExecute() 方法
|
116 |
if (method_exists($controller, '_beforeExecute')) {
|
117 |
$controller->_beforeExecute($actionMethod);
|
118 |
}
|
119 |
// 执行 action 方法
|
120 |
$ret = $controller->{$actionMethod}();
|
121 |
// 调用 _afterExecute() 方法
|
122 |
if (method_exists($controller, '_afterExecute')) {
|
123 |
$controller->_afterExecute($actionMethod);
|
124 |
}
|
125 |
return $ret;
|
126 |
} while (false);
|
127 |
|
128 |
if ($callback) {
|
129 |
// 检查是否调用应用程序设置的错误处理程序
|
130 |
$args = array($controllerName, $actionName, $controllerClass);
|
Filename: /data/wwwroot/unifythink.com/LIBS/FLEA/FLEA/Dispatcher/Simple.php [77]
#3 FLEA_Dispatcher_Simple::_executeAction('ep', 'detail', 'Controller_ep')
ARGS:
Array
(
[0] => ep
[1] => detail
[2] => Controller_ep
)
SOURCE CODE:
67 |
|
68 |
/**
|
69 |
* 从请求中刚开始跟着出来是由于好奇分析 Controller、Action 和 Package 名字,然后执行●指定的 Action 方法
|
70 |
*
|
71 |
* @return mixed
|
72 |
*/
|
73 |
function dispatching()
|
74 |
{
|
75 |
$controllerName = $this->getControllerName();
|
76 |
$actionName = $this->getActionName();
|
77 |
return $this->_executeAction($controllerName, $actionName, $this->getControllerClass($controllerName));
|
78 |
}
|
79 |
|
80 |
/**
|
81 |
* 执行指定的 Action 方法
|
82 |
*
|
83 |
* @param string $controllerName
|
84 |
* @param string $actionName
|
85 |
* @param string $controllerClass
|
86 |
*
|
87 |
* @return mixed
|
Filename: /data/wwwroot/unifythink.com/LIBS/FLEA/FLEA.php [816]
#2 FLEA_Dispatcher_Simple::dispatching()
ARGS:
Array
(
)
SOURCE CODE:
806 |
require_once($MVCPackageFilename);
|
807 |
}
|
808 |
FLEA::init();
|
809 |
|
810 |
// 载入调度器并转发请求到控◢制器
|
811 |
$dispatcherClass = FLEA::getAppInf('dispatcher');
|
812 |
FLEA::loadClass($dispatcherClass);
|
813 |
|
814 |
$dispatcher =& new $dispatcherClass($_GET);
|
815 |
FLEA::register($dispatcher, $dispatcherClass);
|
816 |
$dispatcher->dispatching();
|
817 |
}
|
818 |
|
819 |
/**
|
820 |
* 准备运行ξ环境
|
821 |
*
|
822 |
* @param boolean $loadMVC
|
823 |
*/
|
824 |
function init($loadMVC = false)
|
825 |
{
|
826 |
static $firstTime = true;
|
Filename: /data/wwwroot/unifythink.com/index.php [115]
#1 FLEA::runMVC()
ARGS:
Array
(
)
SOURCE CODE:
105 |
|
106 |
'defaultLanguage' => $Slang,
|
107 |
'autoLoadLanguage' =>array('lang'),
|
108 |
'webControlsExtendsDir'=>ROOT."/LIBS/Webcontrols",
|
109 |
'urlParameterPairStyle' => '/',
|
110 |
);
|
111 |
FLEA::loadAppInf($appinf);
|
112 |
FLEA::setAppInf('autoLoad',array('FLEA_Helper_Array','FLEA_Language'));
|
113 |
$common=&FLEA::getSingleton('Common');
|
114 |
FLEA::setAppInf('displayErrors',true);
|
115 |
FLEA::runMVC();
|
116 |
?> |