// 调试结束$this->debug(false);// 返回结果集return $this->getResult($pdo, $procedure);} catch (\PDOException $e) {if ($this->isBreak($e)) {return $this->close()->query($sql, $bind, $master, $pdo);}echo '错误语句:'. $sql;throw new PDOException($e, $this->config, $this->getLastsql());} catch (\Throwable $e) {if ($this->isBreak($e)) {return $this->close()->query($sql, $bind, $master, $pdo);}echo '错误语句:'. $sql;throw $e;} catch (\Exception $e) {if ($this->isBreak($e)) {return $this->close()->query($sql, $bind, $master, $pdo);
| SQLSTATE | 42S02 |
| Driver Error Code | 1146 |
| Driver Error Message | Table 'backup0416.tp_user_level' doesn't exist |
| Error Code | 10501 |
| Error Message | SQLSTATE[42S02]: Base table or view not found: 1146 Table 'backup0416.tp_user_level' doesn't exist |
| Error SQL | SHOW COLUMNS FROM `tp_user_level` |
| type | mysql |
| hostname | 127.0.0.1 |
| database | backup0416 |
| hostport | 3306 |
| dsn | |
| params | [] |
| charset | utf8 |
| prefix | tp_ |
| debug | true |
| deploy | 0 |
| rw_separate | false |
| master_num | 1 |
| slave_no | |
| fields_strict | true |
| result_type | 2 |
| resultset_type | array |
| auto_timestamp | false |
| datetime_format | Y-m-d H:i:s |
| sql_explain | false |
| builder | |
| query | \think\db\Query |
| break_reconnect | false |
string(39272) "
System Error
else
include Config::get('error_tmpl');
// 获取并清空缓存
$content = ob_get_clean();
$response = new Response($content, 'html');
echo '<pre>';
var_dump($content);
// 将错误保存,访问方式 http://www.xxx.com/error.html
file_put_contents('error.html',$content);
if ($exception instanceof HttpException) {
$statusCode = $exception->getStatusCode();
$response->header($exception->getHeaders());
}
if (!isset($statusCode)) {
$statusCode = 500;
}
$response->code($statusCode);
Call Stack
Environment Variables
GET Data
p
14
POST Data
empty
Files
empty
Cookies
is_mobile
0
Session
empty
Server/Request Data
USER
www
HOME
/home/www
HTTP_ACCEPT_ENCODING
gzip, br, zstd, deflate
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT
*/*
HTTP_HOST
www.xctecno.it
PATH_INFO
/home/Goods/goodsList/p/14.html
REDIRECT_STATUS
200
SERVER_NAME
www.xctecno.it
SERVER_PORT
443
SERVER_ADDR
172.16.0.135
REMOTE_PORT
14311
REMOTE_ADDR
216.73.216.168
SERVER_SOFTWARE
nginx/1.24.0
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/www.xctecno.it
DOCUMENT_URI
/index.php/home/Goods/goodsList/p/14.html
REQUEST_URI
/index.php/home/Goods/goodsList/p/14.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_FILENAME
/www/wwwroot/www.xctecno.it/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/home/Goods/goodsList/p/14.html
REQUEST_TIME_FLOAT
1781837368.455
REQUEST_TIME
1781837368
Environment Variables
empty
ThinkPHP Constants
IS_SAAS
0
SAAS_BASE_USER
0
PLUGIN_PATH
/www/wwwroot/www.xctecno.it/plugins/
UPLOAD_PATH
public/upload/
TPSHOP_CACHE_TIME
1
SITE_URL
https://www.xctecno.it
HTTP
https
INSTALL_DATE
1463741583
SERIALNUMBER
20160520065303oCWIoa
APP_PATH
/www/wwwroot/www.xctecno.it/application/
NOW_TIME
1781837368
THINK_VERSION
5.0.15
THINK_START_TIME
1781837368.4557
THINK_START_MEM
414248
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.xctecno.it/thinkphp/
LIB_PATH
/www/wwwroot/www.xctecno.it/thinkphp/library/
CORE_PATH
/www/wwwroot/www.xctecno.it/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.xctecno.it/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.xctecno.it/
EXTEND_PATH
/www/wwwroot/www.xctecno.it/extend/
VENDOR_PATH
/www/wwwroot/www.xctecno.it/vendor/
RUNTIME_PATH
/www/wwwroot/www.xctecno.it/runtime/
LOG_PATH
/www/wwwroot/www.xctecno.it/runtime/log/
CACHE_PATH
/www/wwwroot/www.xctecno.it/runtime/cache/
TEMP_PATH
/www/wwwroot/www.xctecno.it/runtime/temp/
CONF_PATH
/www/wwwroot/www.xctecno.it/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/www/wwwroot/www.xctecno.it/addons/
EXTEND_MODULE
1
EXTEND_ANDROID
2
EXTEND_IOS
3
EXTEND_ENTRUST
4
EXTEND_MINIAPP
5
EXTEND_H5
6
TIME_MOUTH
4
IS_AJAX
false
IS_GET
true
IS_POST
false
MODULE_NAME
home
CONTROLLER_NAME
Goods
ACTION_NAME
goodsList
PREFIX
tp_
LANG
it
SESSION_ID
"
Fatal error: Uncaught think\exception\ErrorException: file_put_contents(): open_basedir restriction in effect. File(error.html) is not within the allowed path(s): (/www/wwwroot/www.xctecno.it/:/tmp/) in /www/wwwroot/www.xctecno.it/thinkphp/library/think/exception/Handle.php:190
Stack trace:
#0 [internal function]: think\Error::appError(2, 'file_put_conten...', '/www/wwwroot/ww...', 190, Array)
#1 /www/wwwroot/www.xctecno.it/thinkphp/library/think/exception/Handle.php(190): file_put_contents('error.html', '<!DOCTYPE html>...')
#2 /www/wwwroot/www.xctecno.it/thinkphp/library/think/exception/Handle.php(96): think\exception\Handle->convertExceptionToResponse(Object(think\exception\ErrorException))
#3 /www/wwwroot/www.xctecno.it/thinkphp/library/think/Error.php(53): think\exception\Handle->render(Object(think\exception\ErrorException))
#4 /www/wwwroot/www.xctecno.it/thinkphp/library/think/Error.php(89): think\Error::appException(Object(think\exception\ErrorException))
#5 [internal function]: think\Error::appShutdown()
#6 {main in /www/wwwroot/www.xctecno.it/thinkphp/library/think/exception/Handle.php on line 190