[2] ErrorException in Channel.php line 240

mysqli_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES)

  1. $this->success("", "", $this->view->fetch('common/' . $template . '_ajax'));
  2. }
  3. return $this->view->fetch('/' . $template);
  4. }
  5. protected function jieye($channel){
  6. $config = get_addon_config('cms');
  7. $pagelist = ChannelModel::where('parent_id', $channel->id)->order('weigh desc')
  8. ->paginate($channel['pagesize']?$channel['pagesize']:20, $config['pagemode'] == 'simple', ['type' => '\\addons\\cms\\library\\Bootstrap']);
  9. $con = mysqli_connect("localhost","root","f96ec0af449067d8");
  10. mysqli_set_charset($con, "utf8");
  11. $select_db = mysqli_select_db($con,'glisdb');
  12. if (!$select_db) {
  13. die("could not connect to the db:\n" . mysqli_error($con));
  14. }

Call Stack

  1. in Channel.php line 240
  2. at Error::appError(2, 'mysqli_connect(): (H...', '/new/sx.tsg.com/addo...', 240, ['channel' => object(Channel), 'config' => ['system_user_id' => '0', 'sitename' => '...', 'sitelogo' => '/uploads/20221114/f8...', ...], 'pagelist' => object(Bootstrap)])
  3. at mysqli_connect('localhost', 'root', 'f96ec0af449067d8') in Channel.php line 240
  4. at Channel->jieye(object(Channel)) in Channel.php line 42
  5. at Channel->index()
  6. at call_user_func_array([object(Channel), 'index'], []) in Route.php line 76
  7. at Route->execute('cms', 'channel', 'index')
  8. at ReflectionMethod->invokeArgs(object(Route), ['cms', 'channel', 'index']) in App.php line 343
  9. at App::invokeMethod(['\think\addons\Route', 'execute'], ['temp_url_path' => 'c/arvrmr.html', 'diyname' => 'arvrmr', 'addon' => 'cms', ...]) in App.php line 470
  10. at App::exec(['type' => 'method', 'method' => ['\think\addons\Route', 'execute'], 'var' => ['addon' => 'cms', 'controller' => 'channel', 'action' => 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => true, ...]) in App.php line 139
  11. at App::run() in start.php line 19
  12. at require('/new/sx.tsg.com/thin...') in index.php line 23

Environment Variables

GET Data

temp_url_path
c/arvrmr.html
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
www.chinacompanynet.cn
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/c/arvrmr.html
REDIRECT_STATUS
200
SERVER_NAME
www.chinacompanynet.cn
SERVER_PORT
80
SERVER_ADDR
172.17.122.209
REMOTE_PORT
38600
REMOTE_ADDR
3.89.116.152
SERVER_SOFTWARE
nginx/1.24.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/new/sx.tsg.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/c/arvrmr.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/c/arvrmr.html
SCRIPT_FILENAME
/new/sx.tsg.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711644599.6825
REQUEST_TIME
1711644599
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/new/sx.tsg.com/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711644599.6828
THINK_START_MEM
404392
EXT
.php
DS
/
THINK_PATH
/new/sx.tsg.com/thinkphp/
LIB_PATH
/new/sx.tsg.com/thinkphp/library/
CORE_PATH
/new/sx.tsg.com/thinkphp/library/think/
TRAIT_PATH
/new/sx.tsg.com/thinkphp/library/traits/
ROOT_PATH
/new/sx.tsg.com/
EXTEND_PATH
/new/sx.tsg.com/extend/
VENDOR_PATH
/new/sx.tsg.com/vendor/
RUNTIME_PATH
/new/sx.tsg.com/runtime/
LOG_PATH
/new/sx.tsg.com/runtime/log/
CACHE_PATH
/new/sx.tsg.com/runtime/cache/
TEMP_PATH
/new/sx.tsg.com/runtime/temp/
CONF_PATH
/new/sx.tsg.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/new/sx.tsg.com/addons/
0.035517s