[10501] PDOException in Connection.php line 391

SQLSTATE[42000]: Syntax error or access violation: 1305 FUNCTION tixiaoyi.getCategoryChildLst does not exist

  1. $this->PDOStatement->execute();
  2. // 调试结束
  3. $this->debug(false, '', $master);
  4. // 返回结果集
  5. return $this->getResult($pdo, $procedure);
  6. } catch (\PDOException $e) {
  7. if ($this->isBreak($e)) {
  8. return $this->close()->query($sql, $bind, $master, $pdo);
  9. }
  10. throw new PDOException($e, $this->config, $this->getLastsql());
  11. } catch (\Throwable $e) {
  12. if ($this->isBreak($e)) {
  13. return $this->close()->query($sql, $bind, $master, $pdo);
  14. }
  15. throw $e;
  16. } catch (\Exception $e) {
  17. if ($this->isBreak($e)) {
  18. return $this->close()->query($sql, $bind, $master, $pdo);
  19. }

Call Stack

  1. in Connection.php line 391
  2. at Connection->query('select getCategoryCh...')
  3. at call_user_func_array([object(Mysql), 'query'], ['select getCategoryCh...']) in Db.php line 178
  4. at Db::__callStatic('query', ['select getCategoryCh...']) in Category.php line 34
  5. at Category::getCategoryChildList('4839') in Category.php line 122
  6. at Category->index()
  7. at ReflectionMethod->invokeArgs(object(Category), []) in App.php line 343
  8. at App::invokeMethod([object(Category), 'index'], []) in App.php line 611
  9. at App::module(['index', 'category', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  10. at App::exec(['type' => 'module', 'module' => ['index', 'category', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  11. at App::run() in start.php line 19
  12. at require('/www/wwwroot/www.tix...') in index.php line 23

Exception Datas

PDO Error Info
SQLSTATE 42000
Driver Error Code 1305
Driver Error Message FUNCTION tixiaoyi.getCategoryChildLst does not exist
Database Status
Error Code 10501
Error Message SQLSTATE[42000]: Syntax error or access violation: 1305 FUNCTION tixiaoyi.getCategoryChildLst does not exist
Error SQL select getCategoryChildLst(4839,-1) as category_ids
Database Config
type mysql
hostname rm-bp1xojw75gup625g60o.mysql.rds.aliyuncs.com
database tixiaoyi
hostport
dsn
params []
charset utf8mb4
prefix fa_
debug false
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
result_type 2
resultset_type array
auto_timestamp false
datetime_format false
sql_explain false
builder
query \think\db\Query
break_reconnect false

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_ACCEPT_ENCODING
gzip, deflate
HTTP_REFERER
http://m.tixiaoyi.com/
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_UPGRADE_INSECURE_REQUESTS
1
HTTP_CACHE_CONTROL
no-cache
HTTP_PRAGMA
no-cache
HTTP_CONNECTION
keep-alive
HTTP_HOST
www.tixiaoyi.com
PATH_INFO
/list/odzsobq.html
REDIRECT_STATUS
200
SERVER_NAME
www.tixiaoyi.com
SERVER_PORT
80
SERVER_ADDR
172.25.170.44
REMOTE_PORT
61124
REMOTE_ADDR
18.189.195.1
SERVER_SOFTWARE
nginx/1.24.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/www.tixiaoyi.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/list/odzsobq.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/list/odzsobq.html
SCRIPT_FILENAME
/www/wwwroot/www.tixiaoyi.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1737609127.5011
REQUEST_TIME
1737609127
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.tixiaoyi.com/public/../application/
HTML_PATH
/www/wwwroot/www.tixiaoyi.com/public/../
THINK_VERSION
5.0.24
THINK_START_TIME
1737609127.5015
THINK_START_MEM
405280
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.tixiaoyi.com/thinkphp/
LIB_PATH
/www/wwwroot/www.tixiaoyi.com/thinkphp/library/
CORE_PATH
/www/wwwroot/www.tixiaoyi.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.tixiaoyi.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.tixiaoyi.com/
EXTEND_PATH
/www/wwwroot/www.tixiaoyi.com/extend/
VENDOR_PATH
/www/wwwroot/www.tixiaoyi.com/vendor/
RUNTIME_PATH
/www/wwwroot/www.tixiaoyi.com/runtime/
LOG_PATH
/www/wwwroot/www.tixiaoyi.com/runtime/log/
CACHE_PATH
/www/wwwroot/www.tixiaoyi.com/runtime/cache/
TEMP_PATH
/www/wwwroot/www.tixiaoyi.com/runtime/temp/
CONF_PATH
/www/wwwroot/www.tixiaoyi.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/www/wwwroot/www.tixiaoyi.com/addons/