^ think\db\exception\PDOException {#417
#data: array:3 [
"PDO Error Info" => array:3 [
"SQLSTATE" => "HY000"
"Driver Error Code" => 2002
"Driver Error Message" => "通常每个套接字地址(协议/网络地址/端口)只允许使用一次。\r\n"
]
"Database Status" => array:3 [
"Error Code" => 10501
"Error Message" => "SQLSTATE[HY000] [2002] 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。\r\n"
"Error SQL" => ""
]
"Database Config" => array:21 [
"type" => "mysql"
"hostname" => "127.0.0.1"
"database" => "oureman_com"
"hostport" => "3306"
"dsn" => ""
"params" => []
"charset" => "utf8mb4"
"prefix" => "ymkj_"
"deploy" => 0
"rw_separate" => false
"master_num" => 1
"slave_no" => ""
"read_master" => false
"fields_strict" => true
"fields_cache" => true
"trigger_sql" => "0"
"builder" => ""
"query" => ""
"break_reconnect" => false
"break_match_str" => []
"auto_param_bind" => true
]
]
#message: "SQLSTATE[HY000] [2002] 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。\r\n"
#code: 10501
#file: "D:\wwwroot\oureman.com\vendor\topthink\think-orm\src\db\PDOConnection.php"
#line: 797
trace: {
D:\wwwroot\oureman.com\vendor\topthink\think-orm\src\db\PDOConnection.php:797 {
think\db\PDOConnection->getPDOStatement(string $sql, array $bind = [], bool $master = false, bool $procedure = false): PDOStatement …
› if ($e instanceof \PDOException) {
› throw new PDOException($e, $this->config, $this->getLastsql());
› } else {
}
D:\wwwroot\oureman.com\vendor\topthink\think-orm\src\db\PDOConnection.php:711 {
think\db\PDOConnection->pdoQuery(BaseQuery $query, $sql, bool $master = null): array …
›
› $this->getPDOStatement($sql, $bind, $master, $procedure);
›
arguments: {
$sql: "SELECT * FROM `ymkj_content` WHERE ( `site_id` = :ThinkBind_1_1388562062_ AND `id` = :ThinkBind_2_584168488_ ) AND `ymkj_content`.`delete_time` = :ThinkBind_3_1802544847_ LIMIT 1 "
$bind: array:3 [ …3]
$master: false
$procedure: false
}
}
D:\wwwroot\oureman.com\vendor\topthink\think-orm\src\db\PDOConnection.php:878 {
think\db\PDOConnection->find(BaseQuery $query): array …
› return $this->builder->select($query, true);
› });
›
arguments: {
$query: think\db\Query {#415 …}
$sql: "SELECT * FROM `ymkj_content` WHERE ( `site_id` = :ThinkBind_1_1388562062_ AND `id` = :ThinkBind_2_584168488_ ) AND `ymkj_content`.`delete_time` = :ThinkBind_3_1802544847_ LIMIT 1 "
}
}
D:\wwwroot\oureman.com\vendor\topthink\think-orm\src\db\BaseQuery.php:1193 {
think\db\BaseQuery->find($data = null) …
› } else {
› $result = $this->connection->find($this);
› }
arguments: {
$query: think\db\Query {#415 …}
}
}
D:\wwwroot\oureman.com\app\addon\cms\index\controller\Cms.php:137 {
app\addon\cms\index\controller\Cms->content($id, $cid = null) …
› }
› })->find($id);
› } else {
arguments: {
$data: "338"
}
}
app\addon\cms\index\controller\Cms->content() {}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Container.php:344 {
think\Container->invokeReflectMethod($instance, $reflect, array $vars = []) …
›
› return $reflect->invokeArgs($instance, $args);
› }
arguments: {
$object: app_mod\addon\cms\index\controller\Cms {#409 …}
$args: array:2 [ …2]
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\route\dispatch\Controller.php:110 {
think\route\dispatch\Controller->think\route\dispatch\{closure} …
›
› $data = $this->app->invokeReflectMethod($instance, $reflect, $vars);
›
arguments: {
$instance: app_mod\addon\cms\index\controller\Cms {#409 …}
$reflect: ReflectionMethod {#410 …}
$vars: array:3 [ …3]
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Pipeline.php:59 {
think\Pipeline->think\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable | Exception $e) {
arguments: {
app\Request {#56 …}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Pipeline.php:66 {
think\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
arguments: {
app\Request {#56 …}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\route\dispatch\Controller.php:113 {
think\route\dispatch\Controller->exec() …
› return $this->autoResponse($data);
› });
› }
arguments: {
$destination: Closure() {#407 …}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\route\Dispatch.php:90 {
think\route\Dispatch->run(): Response …
›
› $data = $this->exec();
› return $this->autoResponse($data);
}
D:\wwwroot\oureman.com\app\common\Route.php:78 {
app\common\Route->app\common\{closure} …
› ->then(function () use ($dispatch) {
› $response = $dispatch->run();
› // event(new ControllerDoneEvent($response));
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Pipeline.php:59 {
think\Pipeline->think\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable | Exception $e) {
arguments: {
app\Request {#56 …}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Pipeline.php:66 {
think\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
arguments: {
app\Request {#56 …}
}
}
D:\wwwroot\oureman.com\app\common\Route.php:81 {
app\common\Route->app\common\{closure} …
› return $response;
› });
› });
arguments: {
$destination: Closure() {#404 …}
}
}
D:\wwwroot\oureman.com\app\common\addon\AddonDispatch.php:117 {
app\common\addon\AddonDispatch->app\common\addon\{closure} …
› ->then(function () use ($callback) {
› return $callback();
› });
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Pipeline.php:59 {
think\Pipeline->think\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable | Exception $e) {
arguments: {
app\Request {#56 …}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Pipeline.php:66 {
think\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
arguments: {
app\Request {#56 …}
}
}
D:\wwwroot\oureman.com\app\common\addon\AddonDispatch.php:118 {
app\common\addon\AddonDispatch->app\common\addon\{closure} …
› return $callback();
› });
› });
arguments: {
$destination: Closure() {#401 …}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Pipeline.php:59 {
think\Pipeline->think\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable | Exception $e) {
arguments: {
app\Request {#56 …}
}
}
D:\wwwroot\oureman.com\app\index\middleware\IndexAppInit.php:71 {
app\index\middleware\IndexAppInit->handle(Request $request, Closure $next) …
› /** @var Response */
› $res = $next($request);
› event(new IndexDoneEvent($res));
arguments: {
app\Request {#56 …}
}
}
app\index\middleware\IndexAppInit->handle() {}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Middleware.php:142 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
arguments: {
$function_name: array:2 [ …2]
...$parameters: {
app\Request {#56 …}
Closure($passable) {#73 …}
}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
arguments: {
app\Request {#56 …}
Closure($passable) {#73 …}
}
}
D:\wwwroot\oureman.com\app\common\middleware\RequestCache.php:101 {
app\common\middleware\RequestCache->handle($request, Closure $next, $cache = null) …
› /** @var Response */
› $response = $next($request);
›
arguments: {
app\Request {#56 …}
}
}
app\common\middleware\RequestCache->handle() {}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Middleware.php:142 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
arguments: {
$function_name: array:2 [ …2]
...$parameters: {
app\Request {#56 …}
Closure($passable) {#73 …}
}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
arguments: {
app\Request {#56 …}
Closure($passable) {#73 …}
}
}
D:\wwwroot\oureman.com\app\common\middleware\VisitCallback.php:173 {
app\common\middleware\VisitCallback->handle(Request $request, Closure $next) …
› */
› $response = $next($request);
›
arguments: {
app\Request {#56 …}
}
}
app\common\middleware\VisitCallback->handle() {}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Middleware.php:142 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
arguments: {
$function_name: array:2 [ …2]
...$parameters: {
app\Request {#56 …}
Closure($passable) {#73 …}
}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
arguments: {
app\Request {#56 …}
Closure($passable) {#73 …}
}
}
D:\wwwroot\oureman.com\app\common\middleware\ResponseHandler.php:33 {
app\common\middleware\ResponseHandler->handle(Request $request, Closure $next) …
› */
› $response = $next($request);
›
arguments: {
app\Request {#56 …}
}
}
app\common\middleware\ResponseHandler->handle() {}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Middleware.php:142 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
arguments: {
$function_name: array:2 [ …2]
...$parameters: {
app\Request {#56 …}
Closure($passable) {#73 …}
}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
arguments: {
app\Request {#56 …}
Closure($passable) {#73 …}
}
}
D:\wwwroot\oureman.com\vendor\topthink\think-throttle\src\Throttle.php:141 {
think\middleware\Throttle->handle(Request $request, Closure $next, array $params = []): Response …
› }
› $response = $next($request);
› if (200 <= $response->getCode() && 300 > $response->getCode() && $this->config['visit_enable_show_rate_limit']) {
arguments: {
app\Request {#56 …}
}
}
think\middleware\Throttle->handle() {}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Middleware.php:142 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
arguments: {
$function_name: array:2 [ …2]
...$parameters: {
app\Request {#56 …}
Closure($passable) {#73 …}
}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
arguments: {
app\Request {#56 …}
Closure($passable) {#73 …}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Pipeline.php:66 {
think\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
arguments: {
app\Request {#56 …}
}
}
D:\wwwroot\oureman.com\app\common\addon\AddonDispatch.php:119 {
app\common\addon\AddonDispatch->handleMiddleware(Closure $callback) …
› });
› });
› } else {
arguments: {
$destination: Closure() {#383 …}
}
}
D:\wwwroot\oureman.com\app\common\Route.php:82 {
app\common\Route->dispatch(Request $request, $withRoute = true) …
› });
› });
› } elseif (isset($param['app'])) { // 对于不是在应用目录下绑定的路由, 需要用 app 参数来指定应用
arguments: {
$callback: Closure() {#381 …}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Http.php:216 {
think\Http->dispatchToRoute($request) …
›
› return $this->app->route->dispatch($request, $withRoute);
› }
arguments: {
$request: app\Request {#56 …}
$withRoute: Closure() {#372 …}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Http.php:206 {
think\Http->think\{closure} …
› ->then(function ($request) {
› return $this->dispatchToRoute($request);
› });
arguments: {
$request: app\Request {#56 …}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Pipeline.php:59 {
think\Pipeline->think\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable | Exception $e) {
arguments: {
app\Request {#56 …}
}
}
D:\wwwroot\oureman.com\vendor\topthink\think-multi-app\src\MultiApp.php:45 {
think\app\MultiApp->handle($request, Closure $next) …
› if (!$this->parseMultiApp()) {
› return $next($request);
› }
arguments: {
app\Request {#56 …}
}
}
think\app\MultiApp->handle() {}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Middleware.php:142 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
arguments: {
$function_name: array:2 [ …2]
...$parameters: {
app\Request {#56 …}
Closure($passable) {#73 …}
}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
arguments: {
app\Request {#56 …}
Closure($passable) {#73 …}
}
}
D:\wwwroot\oureman.com\app\common\middleware\SiteCheck.php:109 {
app\common\middleware\SiteCheck->handle(Request $request, Closure $next) …
› }
› $response = $next($request);
› return $response;
arguments: {
app\Request {#56 …}
}
}
app\common\middleware\SiteCheck->handle() {}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Middleware.php:142 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
arguments: {
$function_name: array:2 [ …2]
...$parameters: {
app\Request {#56 …}
Closure($passable) {#73 …}
}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
arguments: {
app\Request {#56 …}
Closure($passable) {#73 …}
}
}
D:\wwwroot\oureman.com\app\common\middleware\AppStart.php:20 {
app\common\middleware\AppStart->handle(Request $request, Closure $next) …
› event(new AppStartEvent());
› $response = $next($request);
› // 触发 AppDoneEvent
arguments: {
app\Request {#56 …}
}
}
app\common\middleware\AppStart->handle() {}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Middleware.php:142 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
arguments: {
$function_name: array:2 [ …2]
...$parameters: {
app\Request {#56 …}
Closure($passable) {#73 …}
}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
arguments: {
app\Request {#56 …}
Closure($passable) {#73 …}
}
}
D:\wwwroot\oureman.com\app\common\middleware\InstallGuide.php:54 {
app\common\middleware\InstallGuide->handle(Request $request, Closure $next) …
› */
› $response = $next($request);
›
arguments: {
app\Request {#56 …}
}
}
app\common\middleware\InstallGuide->handle() {}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Middleware.php:142 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
arguments: {
$function_name: array:2 [ …2]
...$parameters: {
app\Request {#56 …}
Closure($passable) {#73 …}
}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
arguments: {
app\Request {#56 …}
Closure($passable) {#73 …}
}
}
D:\wwwroot\oureman.com\vendor\topthink\think-trace\src\TraceDebug.php:71 {
think\trace\TraceDebug->handle($request, Closure $next) …
›
› $response = $next($request);
›
arguments: {
app\Request {#56 …}
}
}
think\trace\TraceDebug->handle() {}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Middleware.php:142 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
arguments: {
$function_name: array:2 [ …2]
...$parameters: {
app\Request {#56 …}
Closure($passable) {#73 …}
}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
arguments: {
app\Request {#56 …}
Closure($passable) {#73 …}
}
}
D:\wwwroot\oureman.com\app\common\middleware\JsonTrace.php:37 {
app\common\middleware\JsonTrace->handle($request, Closure $next) …
›
› $response = $next($request);
›
arguments: {
app\Request {#56 …}
}
}
app\common\middleware\JsonTrace->handle() {}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Middleware.php:142 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
arguments: {
$function_name: array:2 [ …2]
...$parameters: {
app\Request {#56 …}
Closure($passable) {#73 …}
}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
arguments: {
app\Request {#56 …}
Closure($passable) {#73 …}
}
}
D:\wwwroot\oureman.com\app\common\middleware\SessionDebugHandler.php:22 {
app\common\middleware\SessionDebugHandler->handle(Request $request, Closure $next) …
›
› $response = $next($request);
› return $response;
arguments: {
app\Request {#56 …}
}
}
app\common\middleware\SessionDebugHandler->handle() {}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Middleware.php:142 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
arguments: {
$function_name: array:2 [ …2]
...$parameters: {
app\Request {#56 …}
Closure($passable) {#73 …}
}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
arguments: {
app\Request {#56 …}
Closure($passable) {#73 …}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\middleware\SessionInit.php:67 {
think\middleware\SessionInit->handle($request, Closure $next) …
› /** @var Response $response */
› $response = $next($request);
›
arguments: {
app\Request {#56 …}
}
}
think\middleware\SessionInit->handle() {}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Middleware.php:142 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
arguments: {
$function_name: array:2 [ …2]
...$parameters: {
app\Request {#56 …}
Closure($passable) {#73 …}
}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
arguments: {
app\Request {#56 …}
Closure($passable) {#73 …}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Pipeline.php:66 {
think\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
arguments: {
app\Request {#56 …}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Http.php:207 {
think\Http->runWithRequest(Request $request) …
› return $this->dispatchToRoute($request);
› });
› }
arguments: {
$destination: Closure($request) {#38 …}
}
}
D:\wwwroot\oureman.com\vendor\topthink\framework\src\think\Http.php:170 {
think\Http->run(Request $request = null): Response …
› try {
› $response = $this->runWithRequest($request);
› } catch (Throwable $e) {
arguments: {
$request: app\Request {#56 …}
}
}
D:\wwwroot\oureman.com\public\index.php:22 {
›
› $response = $http->run();
›
}
}
}