Error handled

Error #2, mysqli::__construct(): The server requested authentication method unknown to the client [caching_sha2_password], File: /app/wf/core/Db.php, Line: 33
1 PHP internal callWF\Core\ErrorHandler::handler(errno, errstr, errfile, errline, errcontext)
  • Arguments
  • errno integer 2
    errstr string (111) "mysqli::__construct(): The server requested authentication m …"
    mysqli::__construct(): The server requested authentication method unknown to the client [caching_sha2_password]
    errfile string (19) "/app/wf/core/Db.php"
    errline integer 33
    errcontext array (1)
    'config' => array (0)
2 <ROOT>/wf/core/Db.php line 33mysqli->__construct(host, user, password, database)
  • Source
  • Arguments
  • Callee object [mysqli]
  • 26 }
    27
    28 try {
    29 $this->_db = new \mysqli(
    30 $this->getConfig('host'),
    31 $this->getConfig('user'),
    32 $this->getConfig('password'),
    33 $this->getConfig('dbname')
    34 );
    35 } catch (\mysqli_sql_exception $ex) {
    36 throw new \WF\Framework\FatalException('Database connection error!');
    37 }
    38
    39 $this->_db->query('SET NAMES utf8');
    40 }
  • host string (5) "mysql"
    user string (10) "user_opdoc"
    password string (23) "mrq0n2382n3r3fDASA(W!3)"
    database string (9) "woo_opdoc"
  • object mysqli (19)
    • object (19)
    • Available methods (43)
    • public affected_rows -> NULL
      public client_info -> NULL
      public client_version -> NULL
      public connect_errno -> NULL
      public connect_error -> NULL
      public errno -> NULL
      public error -> NULL
      public error_list -> NULL
      public field_count -> NULL
      public host_info -> NULL
      public info -> NULL
      public insert_id -> NULL
      public server_info -> NULL
      public server_version -> NULL
      public stat -> NULL
      public sqlstate -> NULL
      public protocol_version -> NULL
      public thread_id -> NULL
      public warning_count -> NULL
    • public static poll(array &$read, array &$write, array &$error, $sec, $usec)
      public __construct($host, $user, $password, $database, $port, $socket)
      public autocommit($mode)
      public begin_transaction($flags, $name)
      public change_user($user, $password, $database)
      public character_set_name()
      public close()
      public commit($flags, $name)
      public connect($host, $user, $password, $database, $port, $socket)
      public debug($debug_options)
      public dump_debug_info()
      public escape_string($string_to_escape)
      public get_charset()
      public get_client_info()
      public get_connection_stats()
      public get_server_info()
      public get_warnings()
      public init()
      public kill($connection_id)
      public more_results()
      public multi_query($query)
      public next_result()
      public options($option, $value)
      public ping()
      public prepare($query)
      public query($query, $resultmode)
      public real_connect($host, $user, $password, $database, $port, $socket, $flags)
      public real_escape_string($string_to_escape)
      public real_query($query)
      public reap_async_query()
      public refresh($options)
      public release_savepoint($name)
      public rollback($flags, $name)
      public savepoint($name)
      public select_db($database)
      public set_charset($charset)
      public set_opt($option, $value)
      public ssl_set($key, $cert, $certificate_authority, $certificate_authority_path, $cipher)
      public stat()
      public stmt_init()
      public store_result($flags)
      public thread_safe()
      public use_result()
3 <ROOT>/wf/bootstrap.php line 25WF\Core\Db->init()
  • Source
  • Callee object [WF\Core\Db]
  • 18
    19 WF\Core\ErrorHandler::i()->useHandler(WF_DEV); // true - display error + trace, false - log error, show "Oops!" message
    20
    21 Config::i()->import(require WF_DIR . 'config.php');
    22
    23 // db initialization
    24 Db::i()->importConfig(Config::i()->coreDb);
    25 Db::i()->init();
    26
    27 // ------------------ core components configuration --------------------------- //
    28
    29 UrlManager::i()->setConfig('baseUrlPath', Config::i()->baseUrlPath);
    30
    31 // selecting module by url type
    32 if (UrlManager::i()->isMatch('gigadmin/{*}')) {
  • object WF\Core\Db (2)
    • object (2)
    • Static class properties (2)
    • Available methods (15)
    • private _db -> NULL
      protected _config -> array (4)
      'host' => string (5) "mysql"
      'user' => string (10) "user_opdoc"
      'password' => string (23) "mrq0n2382n3r3fDASA(W!3)"
      'dbname' => string (9) "woo_opdoc"
    • protected $_instance :: array (1)
      'WF\Core\Db' => object WF\Core\Db (2) *RECURSION*
      constant VERSION :: string (7) "1.0-dev"
    • public static escapeString($str)
      Defined in <ROOT>/wf/core/Db.php line 12
      public static i() -> CoreComponent
      Singleton
      @return CoreComponent
      
      Defined in <ROOT>/wf/framework/traits/Singleton.php line 17
      public deleteAll($query)
      Defined in <ROOT>/wf/core/Db.php line 117
      public fetchAll($query, $primaryKey = "")
      Defined in <ROOT>/wf/core/Db.php line 76
      public fetchAssoc($query, $primaryKey)
      Defined in <ROOT>/wf/core/Db.php line 61
      public fetchColumn($query)
      Defined in <ROOT>/wf/core/Db.php line 93
      public fetchOne($query)
      Defined in <ROOT>/wf/core/Db.php line 100
      public getConfig($key)
      Defined in <ROOT>/wf/framework/traits/Configurable.php line 21
      public getDb()
      Defined in <ROOT>/wf/core/Db.php line 17
      public importConfig(array $arr)
      Defined in <ROOT>/wf/framework/traits/Configurable.php line 11
      public init(array $config = array())
      Defined in <ROOT>/wf/core/Db.php line 22
      public insertOne($query)
      Defined in <ROOT>/wf/core/Db.php line 107
      public query($query, $isSelect = false)
      Defined in <ROOT>/wf/core/Db.php line 44
      public setConfig($key, $value)
      Defined in <ROOT>/wf/framework/traits/Configurable.php line 16
      public updateAll($query)
      Defined in <ROOT>/wf/core/Db.php line 112
4 <ROOT>/index.php line 17require(0)
  • Source
  • Arguments
  • 10 use WF\Core\UrlManager;
    11 use WF\Core\View\Handler as Viewer;
    12 use WF\Core\Controller\Handler as Controller;
    13 use WF\Core\Config;
    14
    15 try {
    16
    17 require WF_DIR . 'bootstrap.php';
    18
    19 WF\Helpers\Js\Frameworks\Jquery::useHelper();
    20 WF\Helpers\Js\Bootstrap::useHelper();
    21
    22 try {
    23
    24 UrlManager::i()->matchAll(function ($args) {
  • 0 string (29) "&lt;ROOT&gt;/wf/bootstrap.php"

2014 © WooFramework by Woo