Error: mysqli::mysqli(): (HY000/2002): No such file or directory

#0 - File: /plugins/pdoquery/PDOQuery.class.php, line 266

264:                     $port = isset($opts["port"]) ? $opts["port"] : ini_get("mysqli.default_port");
265:                     $socket = isset($opts["socket"]) ? $opts["socket"] : ini_get("mysqli.default_socket");
266:                     self::$db = @new mysqli($host, $username, $password, $dbname, $port, $socket);
267:                     if (self::$db -> connect_errno == 0) {
268:                         self::$connected = true;

#1 - Function: phej_exception_error_handler

No source code available

#2 - File: /plugins/pdoquery/PDOQuery.class.php, line 266

264:                     $port = isset($opts["port"]) ? $opts["port"] : ini_get("mysqli.default_port");
265:                     $socket = isset($opts["socket"]) ? $opts["socket"] : ini_get("mysqli.default_socket");
266:                     self::$db = @new mysqli($host, $username, $password, $dbname, $port, $socket);
267:                     if (self::$db -> connect_errno == 0) {
268:                         self::$connected = true;

#3 - File: /plugins/pdoquery/pdoquery_plugin.php, line 35

33:     $password = $phej -> getPluginOption("pdoquery", "password");
34:     $database = $phej -> getPluginOption("pdoquery", "database");
35:     return PQ() -> connect($engine.':dbname='.$database.';host='.$hostname, $username, $password);
36: }
37: 

#4 - File: /plugins/pdoquery/pdoquery_plugin.php, line 26

24: // plugin functions
25: function pdoquery_preload_hook(Phej &$phej) {
26:     if ($phej -> getPluginOption("pdoquery", "autoconnect")) pdoquery_connect($phej);
27: }
28: 

#5 - Function: pdoquery_preload_hook

No source code available

#6 - File: /Phej.php, line 434

432:                             $this -> log(Phej::LOG_VERBOSE, __FILE__, __LINE__, 'Triggering "'.$type.'" hook "'.$function.'" for plugin "'.$plugin.'"');
433:                             $this -> pluginHooksDone[$type][$plugin][] = $function;
434:                             if (($result = call_user_func_array($function, $args)) === false) break;
435:                         }
436:                     }

#7 - File: /Phej.php, line 119

117:         // trigger any existing "preload" hooks
118:         $this -> setPluginHookStep("preload");
119:         $this -> triggerHook('preload', array(&$this, $uri));
120: 
121:         // check for prefix locks (useful for plugin-provided controllers/URIs)

#8 - File: /index.php, line 111

109: 
110: session_start();
111: $phej -> run(FRONT_URI);
112: 
113: } catch (Exception $e) {

Stack trace:

#FileLineCall
1 n/a n/a phej_exception_error_handler(integer, string, string, integer, array[16])
2 /plugins/pdoquery/PDOQuery.class.php 266 mysqli -> mysqli(string, string, string, string, string, string)
3 /plugins/pdoquery/pdoquery_plugin.php 35 PDOQuery -> connect(string, string, string)
4 /plugins/pdoquery/pdoquery_plugin.php 26 pdoquery_connect(object Phej)
5 n/a n/a pdoquery_preload_hook(object Phej, string)
6 /Phej.php 434 call_user_func_array(string, array[2])
7 /Phej.php 119 Phej -> triggerHook(string, array[2])
8 /index.php 111 Phej -> run(string)

Activity log:

LevelFileLineTime (ms)Memory (kB)Message
INFO/Phej.php9001Phej framework v2.0 started
INFO/Phej.php34206Loading plugin "pdoquery"
INFO/Phej.php342048Loading plugin "phej_auth"
INFO/Phej.php342054Loading plugin "jquery"
INFO/Phej.php342157Loading plugin "tablesorter"
INFO/Phej.php342160Loading plugin "superfish"
INFO/Phej.php342164Loading plugin "ganalytics"
INFO/Phej.php342166Loading plugin "woopra"
INFO/Phej.php342168Loading plugin "syntaxhighlighter"
INFO/Phej.php1152411Starting Phej run with URI "/tools/analyzer/6"