a:4:{s:6:"_token";s:40:"VkUeX7wcKFdxyCXqTIGmmn8QpDyhYHlqqXaaxHDz";s:15:"current_site_id";s:6:"master";s:9:"_previous";a:1:{s:3:"url";s:25:"http://180.80.193.25:8090";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}a:4:{s:6:"_token";s:40:"VkUeX7wcKFdxyCXqTIGmmn8QpDyhYHlqqXaaxHDz";s:15:"current_site_id";s:6:"master";s:9:"_previous";a:1:{s:3:"url";s:25:"http://180.80.193.25:8090";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}
Illuminate\Database\QueryException {#3937 +errorInfo: array:3 [ 0 => "HY000" 1 => 1049 2 => "Unknown database 'mw_tenant_12'" ] +connectionName: "tenant" #sql: "select `sucess_co__content`.`id` from `sucess_co__content` where `sucess_co__content`.`url` = ? and `sucess_co__content`.`content_type` = ? and `sucess_co__content`.`is_deleted` = ? limit 1" #bindings: array:3 [ 0 => "ㅈㅈ" 1 => "page" 2 => 0 ] }
throw new UniqueConstraintViolationException( $this->getName(), $query, $this->prepareBindings($bindings), $e ); } throw new QueryException( $this->getName(), $query, $this->prepareBindings($bindings), $e ); } } // Here we will run this query. If an exception occurs we'll determine if it was // caused by a connection that has been lost. If that is the cause, we'll try // to re-establish connection and re-run the query with a fresh connection. try { $result = $this->runQueryCallback($query, $bindings, $callback); } catch (QueryException $e) { $result = $this->handleQueryException( $e, $query, $bindings, $callback ); } * @param bool $useReadPdo * @return array */ public function select($query, $bindings = [], $useReadPdo = true) { return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) { if ($this->pretending()) { return []; } // For select statements, we'll simply execute the query and return an array * * @return array */ protected function runSelect() { return $this->connection->select( $this->toSql(), $this->getBindings(), ! $this->useWritePdo ); } /** * @return \Illuminate\Support\Collection */ public function get($columns = ['*']) { return collect($this->onceWithColumns(Arr::wrap($columns), function () { return $this->processor->processSelect($this, $this->runSelect()); })); } /** * Run the query as a "select" statement against the connection. if (is_null($original)) { $this->columns = $columns; } $result = $callback(); $this->columns = $original; return $result; } * @param array|string $columns * @return \Illuminate\Support\Collection */ public function get($columns = ['*']) { return collect($this->onceWithColumns(Arr::wrap($columns), function () { return $this->processor->processSelect($this, $this->runSelect()); })); } /** * @return \Illuminate\Database\Eloquent\Model[]|static[] */ public function getModels($columns = ['*']) { return $this->model->hydrate( $this->query->get($columns)->all() )->all(); } /** * Eager load the relationships for the models. $builder = $this->applyScopes(); // If we actually found models we will also eager load any relationships that // have been specified as needing to be eager loaded, which will solve the // n+1 query issue for the developers to avoid running a lot of queries. if (count($models = $builder->getModels($columns)) > 0) { $models = $builder->eagerLoadRelations($models); } $collection = $builder->getModel()->newCollection($models); * @param array|string $columns * @return \Illuminate\Database\Eloquent\Model|object|static|null */ public function first($columns = ['*']) { return $this->take(1)->get($columns)->first(); } /** * Execute the query and get the first result if it's the sole matching record. * } $count = true; } else if (isset($params['single']) || isset($params['one'])) { $exec = $this->query->first(); $single = true; } else { $exec = $this->query->get(); $multiple = true; } if (!is_null($value)) { return $value; } $this->put($key, $value = $callback(), $seconds); return $value; } /** // return from local memory to prevent cache hits return self::$_cacheCallbackMemory[$_cacheCallback_memory_key]; } return self::$_cacheCallbackMemory[$_cacheCallback_memory_key] = self::getCacheInstance()->tags($tag)->remember( $cacheKey, $this->getCacheExpiresTime($time), $callback ); } * * @return self */ public function getByParams($params = []) { $result = $this->cacheCallback(__FUNCTION__, func_get_args(), function () use ($params) { $searchable = []; $model = $this->getModel(); $table = $model->getTable(); if (!isset($params['fields']) and !isset($params['count']) and !isset($params['count_paging']) and !isset($params['page_count'])) { $get = false; $params['fields'] = 'id'; $getIds = app()->content_repository->getByParams($params); if ($getIds) { if(isset($params['single']) or isset($params['one'])){ * var_dump($data); * </code> */ public function get($params = false) { return $this->crud->get($params); } public function get_children($id = 0) { return app()->content_repository->getChildren($id); if (!isset($params['content_type'])) { $params['content_type'] = 'page'; } return $this->get($params); } public function get_posts($params = false) { $params2 = array(); * * @link http://microweber.com/docs/functions/get_pages */function get_pages($params = false){ return app()->content_manager->get_pages($params);}function get_products($params = false){ return app()->content_manager->get_products($params); } if ($type == 'page') { // If page found return slug $findPageBySlug = get_pages('url=' . $findSlugByType . '&single=1'); if ($findPageBySlug) { return $findPageBySlug['url']; } // If page not found try to find page from category if (trim($page_url) == '' and $preview_module == false) { $page = $this->app->content_manager->homepage(); } else { $page_exact = false; $slug_page = $this->app->permalink_manager->slug($page_url, 'page'); $slug_post = $this->app->permalink_manager->slug($page_url, 'post'); $slug_category = $this->app->permalink_manager->slug($page_url, 'category'); $found_mod = false; $try_content = false; if (\Config::get('microweber.force_https') && !is_cli() && !is_https()) { $https = str_ireplace('http://', 'https://', url_current()); return mw()->url_manager->redirect($https); } return $this->frontend($request_params); } public function frontend($request_params = []) { * @param array $parameters * @return \Symfony\Component\HttpFoundation\Response */ public function callAction($method, $parameters) { return $this->{$method}(...array_values($parameters)); } /** * Handle calls to missing methods on the controller. * public function dispatch(Route $route, $controller, $method) { $parameters = $this->resolveParameters($route, $controller, $method); if (method_exists($controller, 'callAction')) { return $controller->callAction($method, $parameters); } return $controller->{$method}(...array_values($parameters)); } * * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException */ protected function runController() { return $this->controllerDispatcher()->dispatch( $this, $this->getController(), $this->getControllerMethod() ); } /** { $this->container = $this->container ?: new Container; try { if ($this->isControllerAction()) { return $this->runController(); } return $this->runCallable(); } catch (HttpResponseException $e) { return $e->getResponse(); return (new Pipeline($this->container)) ->send($request) ->through($middleware) ->then(fn ($request) => $this->prepareResponse( $request, $route->run() )); } /** * Gather the middleware for the given route with resolved class names. */ protected function prepareDestination(Closure $destination) { return function ($passable) use ($destination) { try { return $destination($passable); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; } * @return mixed */ public function handle($request, Closure $next) { if (! $request->hasSession() || ! $request->user()) { return $next($request); } if ($this->guard()->viaRemember()) { $passwordHash = explode('|', $request->cookies->get($this->guard()->getRecallerName()))[2] ?? null; if (!mw_is_installed()) { return $next($request); } return parent::handle($request,$next); }} // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); */ public function handle($request, Closure $next) { return $next($request); }} // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); */ public function handle($request, Closure $next) { $this->clean($request); return $next($request); } /** * Clean the request's data. * if ($callback($request)) { return $next($request); } } return parent::handle($request, $next); } /** * Transform the given value. * // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); }); } $request->merge($input); return $next($request); }} // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); { $pipeline = array_reduce( array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination) ); return $pipeline($this->passable); } /** * Run the pipeline and return the result. * $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route); return (new Pipeline($this->container)) ->send($request) ->through($middleware) ->then(fn ($request) => $this->prepareResponse( $request, $route->run() )); } /** $request->setRouteResolver(fn () => $route); $this->events->dispatch(new RouteMatched($route, $request)); return $this->prepareResponse($request, $this->runRouteWithinStack($route, $request) ); } /** * Run the given route within a Stack "onion" instance. * @param \Illuminate\Http\Request $request * @return \Symfony\Component\HttpFoundation\Response */ public function dispatchToRoute(Request $request) { return $this->runRoute($request, $this->findRoute($request)); } /** * Find the route matching a given request. * */ public function dispatch(Request $request) { $this->currentRequest = $request; return $this->dispatchToRoute($request); } /** * Dispatch the request to a route and return the response. * protected function dispatchToRouter() { return function ($request) { $this->app->instance('request', $request); return $this->router->dispatch($request); }; } /** * Call the terminate method on any terminable middleware. */ protected function prepareDestination(Closure $destination) { return function ($passable) use ($destination) { try { return $destination($passable); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; } } } catch (\Exception $e) { Log::error("[TenantIdentify Middleware] Failed to switch tenant DB. Error: " . $e->getMessage()); } return $next($request); }} // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); * @return mixed */ public function handle($request, Closure $next) { if (!$this->debugbar->isEnabled() || $this->inExceptArray($request)) { return $next($request); } $this->debugbar->boot(); try { // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { $response = $next($request); if ($response instanceof Response && Livewire::shouldDisableBackButtonCache()){ $response->headers->add([ "Pragma" => "no-cache", "Expires" => "Fri, 01 Jan 1990 00:00:00 GMT", // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); { $request::setTrustedProxies([], $this->getTrustedHeaderNames()); $this->setTrustedProxyIpAddresses($request); return $next($request); } /** * Sets the trusted proxies on the request. * } } if($proxy_ips) { $this->proxies = $proxy_ips; } return parent::handle($request, $next); } return parent::handle($request, $next); } // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); */ public function handle($request, Closure $next) { // Check if we're dealing with CORS and if we should handle it if (! $this->shouldRun($request)) { return $next($request); } // For Preflight, return the Preflight response if ($this->cors->isPreflightRequest($request)) { $response = $this->cors->handlePreflightRequest($request); // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); null, $this->getHeaders($data) ); } return $next($request); } /** * Determine if the incoming request has a maintenance mode bypass cookie. * // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); if ($max > 0 && $request->server('CONTENT_LENGTH') > $max) { throw new PostTooLargeException; } return $next($request); } /** * Determine the server 'post_max_size' as bytes. * // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); */ public function handle($request, Closure $next) { $this->clean($request); return $next($request); } /** * Clean the request's data. * if ($callback($request)) { return $next($request); } } return parent::handle($request, $next); } /** * Transform the given value. * // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); $this->startSession($request, $session) ); $this->collectGarbage($session); $response = $next($request); $this->storeCurrentUrl($request, $session); $this->addCookieToResponse($response, $session); if ($this->manager->shouldBlock() || ($request->route() instanceof Route && $request->route()->locksFor())) { return $this->handleRequestWhileBlocking($request, $session, $next); } return $this->handleStatefulRequest($request, $session, $next); } /** * Handle the given request within session state. * * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { return parent::handle($request, $next); // defer to the right stuff } /** * Store the current URL for the request if necessary. * // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); */ public function handle($request, Closure $next) { $this->clean($request); return $next($request); } /** * Clean the request's data. * if ($callback($request)) { return $next($request); } } return parent::handle($request, $next); } /** * Transform the given value. * // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { $response = $next($request); foreach ($this->cookies->getQueuedCookies() as $cookie) { $response->headers->setCookie($cookie); } // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); { $pipeline = array_reduce( array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination) ); return $pipeline($this->passable); } /** * Run the pipeline and return the result. * $this->bootstrap(); return (new Pipeline($this->app)) ->send($request) ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware) ->then($this->dispatchToRouter()); } /** * Bootstrap the application for HTTP requests. * $this->requestStartedAt = Carbon::now(); try { $request->enableHttpMethodParameterOverride(); $response = $this->sendRequestThroughRouter($request); } catch (Throwable $e) { $this->reportException($e); $response = $this->renderException($request, $e); }|*/$kernel = $app->make('Illuminate\Contracts\Http\Kernel');$response = $kernel->handle( $request = Illuminate\Http\Request::capture());$response->send(); * @param array $options * @return \PDO */ protected function createPdoConnection($dsn, $username, $password, $options) { return new PDO($dsn, $username, $password, $options); } /** * Handle an exception that occurred during connect execution. * * @param array $options * @return \PDO */ protected function createPdoConnection($dsn, $username, $password, $options) { return new PDO($dsn, $username, $password, $options); } /** * Handle an exception that occurred during connect execution. * [$username, $password] = [ $config['username'] ?? null, $config['password'] ?? null, ]; try { return $this->createPdoConnection( $dsn, $username, $password, $options ); } catch (Exception $e) { return $this->tryAgainIfCausedByLostConnection( $e, $dsn, $username, $password, $options $options = $this->getOptions($config); // We need to grab the PDO options that should be used while making the brand // new connection instance. The PDO options control various aspects of the // connection's behavior, and some might be specified by the developers. $connection = $this->createConnection($dsn, $config, $options); if (! empty($config['database'])) { $connection->exec("use `{$config['database']}`;"); } return function () use ($config) { foreach (Arr::shuffle($this->parseHosts($config)) as $host) { $config['host'] = $host; try { return $this->createConnector($config)->connect($config); } catch (PDOException $e) { continue; } } * @return \PDO */ public function getPdo() { if ($this->pdo instanceof Closure) { return $this->pdo = call_user_func($this->pdo); } return $this->pdo; } if ($this->readPdo instanceof Closure) { return $this->readPdo = call_user_func($this->readPdo); } return $this->readPdo ?: $this->getPdo(); } /** * Get the current read PDO connection parameter without executing any reconnect logic. * * @param bool $useReadPdo * @return \PDO */ protected function getPdoForSelect($useReadPdo = true) { return $useReadPdo ? $this->getReadPdo() : $this->getPdo(); } /** * Run an insert statement against the database. * // For select statements, we'll simply execute the query and return an array // of the database result set. Each element in the array will be a single // row from the database table, and will either be an array or objects. $statement = $this->prepared( $this->getPdoForSelect($useReadPdo)->prepare($query) ); $this->bindValues($statement, $this->prepareBindings($bindings)); $statement->execute(); { // To execute the statement, we'll simply call the callback, which will actually // run the SQL against the PDO connection. Then we can calculate the time it // took to execute and log the query SQL, bindings and time in our memory. try { return $callback($query, $bindings); } // If an exception occurs when attempting to run a query, we'll format the error // message to include the bindings with SQL, which will make this exception a // lot more helpful to the developer instead of just the database's errors. // Here we will run this query. If an exception occurs we'll determine if it was // caused by a connection that has been lost. If that is the cause, we'll try // to re-establish connection and re-run the query with a fresh connection. try { $result = $this->runQueryCallback($query, $bindings, $callback); } catch (QueryException $e) { $result = $this->handleQueryException( $e, $query, $bindings, $callback ); } * @param bool $useReadPdo * @return array */ public function select($query, $bindings = [], $useReadPdo = true) { return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) { if ($this->pretending()) { return []; } // For select statements, we'll simply execute the query and return an array * * @return array */ protected function runSelect() { return $this->connection->select( $this->toSql(), $this->getBindings(), ! $this->useWritePdo ); } /** * @return \Illuminate\Support\Collection */ public function get($columns = ['*']) { return collect($this->onceWithColumns(Arr::wrap($columns), function () { return $this->processor->processSelect($this, $this->runSelect()); })); } /** * Run the query as a "select" statement against the connection. if (is_null($original)) { $this->columns = $columns; } $result = $callback(); $this->columns = $original; return $result; } * @param array|string $columns * @return \Illuminate\Support\Collection */ public function get($columns = ['*']) { return collect($this->onceWithColumns(Arr::wrap($columns), function () { return $this->processor->processSelect($this, $this->runSelect()); })); } /** * @return \Illuminate\Database\Eloquent\Model[]|static[] */ public function getModels($columns = ['*']) { return $this->model->hydrate( $this->query->get($columns)->all() )->all(); } /** * Eager load the relationships for the models. $builder = $this->applyScopes(); // If we actually found models we will also eager load any relationships that // have been specified as needing to be eager loaded, which will solve the // n+1 query issue for the developers to avoid running a lot of queries. if (count($models = $builder->getModels($columns)) > 0) { $models = $builder->eagerLoadRelations($models); } $collection = $builder->getModel()->newCollection($models); * @param array|string $columns * @return \Illuminate\Database\Eloquent\Model|object|static|null */ public function first($columns = ['*']) { return $this->take(1)->get($columns)->first(); } /** * Execute the query and get the first result if it's the sole matching record. * } $count = true; } else if (isset($params['single']) || isset($params['one'])) { $exec = $this->query->first(); $single = true; } else { $exec = $this->query->get(); $multiple = true; } if (!is_null($value)) { return $value; } $this->put($key, $value = $callback(), $seconds); return $value; } /** // return from local memory to prevent cache hits return self::$_cacheCallbackMemory[$_cacheCallback_memory_key]; } return self::$_cacheCallbackMemory[$_cacheCallback_memory_key] = self::getCacheInstance()->tags($tag)->remember( $cacheKey, $this->getCacheExpiresTime($time), $callback ); } * * @return self */ public function getByParams($params = []) { $result = $this->cacheCallback(__FUNCTION__, func_get_args(), function () use ($params) { $searchable = []; $model = $this->getModel(); $table = $model->getTable(); if (!isset($params['fields']) and !isset($params['count']) and !isset($params['count_paging']) and !isset($params['page_count'])) { $get = false; $params['fields'] = 'id'; $getIds = app()->content_repository->getByParams($params); if ($getIds) { if(isset($params['single']) or isset($params['one'])){ * var_dump($data); * </code> */ public function get($params = false) { return $this->crud->get($params); } public function get_children($id = 0) { return app()->content_repository->getChildren($id); if (!isset($params['content_type'])) { $params['content_type'] = 'page'; } return $this->get($params); } public function get_posts($params = false) { $params2 = array(); * * @link http://microweber.com/docs/functions/get_pages */function get_pages($params = false){ return app()->content_manager->get_pages($params);}function get_products($params = false){ return app()->content_manager->get_products($params); } if ($type == 'page') { // If page found return slug $findPageBySlug = get_pages('url=' . $findSlugByType . '&single=1'); if ($findPageBySlug) { return $findPageBySlug['url']; } // If page not found try to find page from category if (trim($page_url) == '' and $preview_module == false) { $page = $this->app->content_manager->homepage(); } else { $page_exact = false; $slug_page = $this->app->permalink_manager->slug($page_url, 'page'); $slug_post = $this->app->permalink_manager->slug($page_url, 'post'); $slug_category = $this->app->permalink_manager->slug($page_url, 'category'); $found_mod = false; $try_content = false; if (\Config::get('microweber.force_https') && !is_cli() && !is_https()) { $https = str_ireplace('http://', 'https://', url_current()); return mw()->url_manager->redirect($https); } return $this->frontend($request_params); } public function frontend($request_params = []) { * @param array $parameters * @return \Symfony\Component\HttpFoundation\Response */ public function callAction($method, $parameters) { return $this->{$method}(...array_values($parameters)); } /** * Handle calls to missing methods on the controller. * public function dispatch(Route $route, $controller, $method) { $parameters = $this->resolveParameters($route, $controller, $method); if (method_exists($controller, 'callAction')) { return $controller->callAction($method, $parameters); } return $controller->{$method}(...array_values($parameters)); } * * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException */ protected function runController() { return $this->controllerDispatcher()->dispatch( $this, $this->getController(), $this->getControllerMethod() ); } /** { $this->container = $this->container ?: new Container; try { if ($this->isControllerAction()) { return $this->runController(); } return $this->runCallable(); } catch (HttpResponseException $e) { return $e->getResponse(); return (new Pipeline($this->container)) ->send($request) ->through($middleware) ->then(fn ($request) => $this->prepareResponse( $request, $route->run() )); } /** * Gather the middleware for the given route with resolved class names. */ protected function prepareDestination(Closure $destination) { return function ($passable) use ($destination) { try { return $destination($passable); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; } * @return mixed */ public function handle($request, Closure $next) { if (! $request->hasSession() || ! $request->user()) { return $next($request); } if ($this->guard()->viaRemember()) { $passwordHash = explode('|', $request->cookies->get($this->guard()->getRecallerName()))[2] ?? null; if (!mw_is_installed()) { return $next($request); } return parent::handle($request,$next); }} // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); */ public function handle($request, Closure $next) { return $next($request); }} // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); */ public function handle($request, Closure $next) { $this->clean($request); return $next($request); } /** * Clean the request's data. * if ($callback($request)) { return $next($request); } } return parent::handle($request, $next); } /** * Transform the given value. * // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); }); } $request->merge($input); return $next($request); }} // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); { $pipeline = array_reduce( array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination) ); return $pipeline($this->passable); } /** * Run the pipeline and return the result. * $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route); return (new Pipeline($this->container)) ->send($request) ->through($middleware) ->then(fn ($request) => $this->prepareResponse( $request, $route->run() )); } /** $request->setRouteResolver(fn () => $route); $this->events->dispatch(new RouteMatched($route, $request)); return $this->prepareResponse($request, $this->runRouteWithinStack($route, $request) ); } /** * Run the given route within a Stack "onion" instance. * @param \Illuminate\Http\Request $request * @return \Symfony\Component\HttpFoundation\Response */ public function dispatchToRoute(Request $request) { return $this->runRoute($request, $this->findRoute($request)); } /** * Find the route matching a given request. * */ public function dispatch(Request $request) { $this->currentRequest = $request; return $this->dispatchToRoute($request); } /** * Dispatch the request to a route and return the response. * protected function dispatchToRouter() { return function ($request) { $this->app->instance('request', $request); return $this->router->dispatch($request); }; } /** * Call the terminate method on any terminable middleware. */ protected function prepareDestination(Closure $destination) { return function ($passable) use ($destination) { try { return $destination($passable); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; } } } catch (\Exception $e) { Log::error("[TenantIdentify Middleware] Failed to switch tenant DB. Error: " . $e->getMessage()); } return $next($request); }} // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); * @return mixed */ public function handle($request, Closure $next) { if (!$this->debugbar->isEnabled() || $this->inExceptArray($request)) { return $next($request); } $this->debugbar->boot(); try { // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { $response = $next($request); if ($response instanceof Response && Livewire::shouldDisableBackButtonCache()){ $response->headers->add([ "Pragma" => "no-cache", "Expires" => "Fri, 01 Jan 1990 00:00:00 GMT", // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); { $request::setTrustedProxies([], $this->getTrustedHeaderNames()); $this->setTrustedProxyIpAddresses($request); return $next($request); } /** * Sets the trusted proxies on the request. * } } if($proxy_ips) { $this->proxies = $proxy_ips; } return parent::handle($request, $next); } return parent::handle($request, $next); } // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); */ public function handle($request, Closure $next) { // Check if we're dealing with CORS and if we should handle it if (! $this->shouldRun($request)) { return $next($request); } // For Preflight, return the Preflight response if ($this->cors->isPreflightRequest($request)) { $response = $this->cors->handlePreflightRequest($request); // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); null, $this->getHeaders($data) ); } return $next($request); } /** * Determine if the incoming request has a maintenance mode bypass cookie. * // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); if ($max > 0 && $request->server('CONTENT_LENGTH') > $max) { throw new PostTooLargeException; } return $next($request); } /** * Determine the server 'post_max_size' as bytes. * // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); */ public function handle($request, Closure $next) { $this->clean($request); return $next($request); } /** * Clean the request's data. * if ($callback($request)) { return $next($request); } } return parent::handle($request, $next); } /** * Transform the given value. * // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); $this->startSession($request, $session) ); $this->collectGarbage($session); $response = $next($request); $this->storeCurrentUrl($request, $session); $this->addCookieToResponse($response, $session); if ($this->manager->shouldBlock() || ($request->route() instanceof Route && $request->route()->locksFor())) { return $this->handleRequestWhileBlocking($request, $session, $next); } return $this->handleStatefulRequest($request, $session, $next); } /** * Handle the given request within session state. * * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { return parent::handle($request, $next); // defer to the right stuff } /** * Store the current URL for the request if necessary. * // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); */ public function handle($request, Closure $next) { $this->clean($request); return $next($request); } /** * Clean the request's data. * if ($callback($request)) { return $next($request); } } return parent::handle($request, $next); } /** * Transform the given value. * // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { $response = $next($request); foreach ($this->cookies->getQueuedCookies() as $cookie) { $response->headers->setCookie($cookie); } // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); { $pipeline = array_reduce( array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination) ); return $pipeline($this->passable); } /** * Run the pipeline and return the result. * $this->bootstrap(); return (new Pipeline($this->app)) ->send($request) ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware) ->then($this->dispatchToRouter()); } /** * Bootstrap the application for HTTP requests. * $this->requestStartedAt = Carbon::now(); try { $request->enableHttpMethodParameterOverride(); $response = $this->sendRequestThroughRouter($request); } catch (Throwable $e) { $this->reportException($e); $response = $this->renderException($request, $e); }|*/$kernel = $app->make('Illuminate\Contracts\Http\Kernel');$response = $kernel->handle( $request = Illuminate\Http\Request::capture());$response->send();|
[2/2]
QueryException
|
|---|
Illuminate\Database\QueryException:
SQLSTATE[HY000] [1049] Unknown database 'mw_tenant_12' (Connection: tenant, SQL: select `sucess_co__content`.`id` from `sucess_co__content` where `sucess_co__content`.`url` = ㅈㅈ and `sucess_co__content`.`content_type` = page and `sucess_co__content`.`is_deleted` = 0 limit 1)
at /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:801
at Illuminate\Database\Connection->runQueryCallback('select `sucess_co__content`.`id` from `sucess_co__content` where `sucess_co__content`.`url` = ? and `sucess_co__content`.`content_type` = ? and `sucess_co__content`.`is_deleted` = ? limit 1', array('ㅈㅈ', 'page', 0), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:755)
at Illuminate\Database\Connection->run('select `sucess_co__content`.`id` from `sucess_co__content` where `sucess_co__content`.`url` = ? and `sucess_co__content`.`content_type` = ? and `sucess_co__content`.`is_deleted` = ? limit 1', array('ㅈㅈ', 'page', 0), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:407)
at Illuminate\Database\Connection->select('select `sucess_co__content`.`id` from `sucess_co__content` where `sucess_co__content`.`url` = ? and `sucess_co__content`.`content_type` = ? and `sucess_co__content`.`is_deleted` = ? limit 1', array('ㅈㅈ', 'page', 0), true)
(/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2751)
at Illuminate\Database\Query\Builder->runSelect()
(/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2740)
at Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure}()
(/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:3294)
at Illuminate\Database\Query\Builder->onceWithColumns(array('*'), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2739)
at Illuminate\Database\Query\Builder->get(array('*'))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:737)
at Illuminate\Database\Eloquent\Builder->getModels(array('*'))
(/var/www/html/src/MicroweberPackages/Database/Eloquent/Builder/CachedBuilder.php:87)
at MicroweberPackages\Database\Eloquent\Builder\CachedBuilder->get(array('*'))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php:296)
at Illuminate\Database\Eloquent\Builder->first()
(/var/www/html/src/MicroweberPackages/Repository/Repositories/AbstractRepository.php:1092)
at MicroweberPackages\Repository\Repositories\AbstractRepository->MicroweberPackages\Repository\Repositories\{closure}()
(/var/www/html/src/MicroweberPackages/Cache/TaggableFileStore.php:484)
at MicroweberPackages\Cache\TaggableFileStore->remember('ko_KR-repositories-content--getByParams-1994542396-1', 60000, object(Closure))
(/var/www/html/src/MicroweberPackages/Repository/Traits/CacheableRepository.php:186)
at MicroweberPackages\Repository\Repositories\AbstractRepository->cacheCallback('getByParams', array(array('url' => 'ㅈㅈ', 'single' => '1', 'content_type' => 'page', 'is_deleted' => 0, 'table' => 'content', 'cache_group' => 'content', 'fields' => 'id')), object(Closure))
(/var/www/html/src/MicroweberPackages/Repository/Repositories/AbstractRepository.php:1023)
at MicroweberPackages\Repository\Repositories\AbstractRepository->getByParams(array('url' => 'ㅈㅈ', 'single' => '1', 'content_type' => 'page', 'is_deleted' => 0, 'table' => 'content', 'cache_group' => 'content', 'fields' => 'id'))
(/var/www/html/src/MicroweberPackages/Content/ContentManagerCrud.php:274)
at MicroweberPackages\Content\ContentManagerCrud->get(array('url' => 'ㅈㅈ', 'single' => '1', 'content_type' => 'page', 'is_deleted' => 0, 'table' => 'content', 'cache_group' => 'content', 'fields' => 'id'))
(/var/www/html/src/MicroweberPackages/Content/ContentManager.php:266)
at MicroweberPackages\Content\ContentManager->get(array('url' => 'ㅈㅈ', 'single' => '1', 'content_type' => 'page'))
(/var/www/html/src/MicroweberPackages/Content/ContentManager.php:2264)
at MicroweberPackages\Content\ContentManager->get_pages(array('url' => 'ㅈㅈ', 'single' => '1', 'content_type' => 'page'))
(/var/www/html/src/MicroweberPackages/Content/helpers.php:181)
at get_pages('url=ㅈㅈ&single=1')
(/var/www/html/src/MicroweberPackages/App/Managers/PermalinkManager.php:61)
at MicroweberPackages\App\Managers\PermalinkManager->slug('ㅈㅈ', 'page')
(/var/www/html/src/MicroweberPackages/App/Http/Controllers/FrontendController.php:482)
at MicroweberPackages\App\Http\Controllers\FrontendController->frontend('ㅈㅈ')
(/var/www/html/src/MicroweberPackages/App/Http/Controllers/FrontendController.php:78)
at MicroweberPackages\App\Http\Controllers\FrontendController->index('ㅈㅈ')
(/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54)
at Illuminate\Routing\Controller->callAction('index', array('all' => 'ㅈㅈ'))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43)
at Illuminate\Routing\ControllerDispatcher->dispatch(object(Route), object(FrontendController), 'index')
(/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php:259)
at Illuminate\Routing\Route->runController()
(/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php:205)
at Illuminate\Routing\Route->run()
(/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:799)
at Illuminate\Routing\Router->Illuminate\Routing\{closure}(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:141)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/AuthenticateSession.php:41)
at Illuminate\Session\Middleware\AuthenticateSession->handle(object(Request), object(Closure))
(/var/www/html/src/MicroweberPackages/App/Http/Middleware/AuthenticateSessionForUser.php:23)
at MicroweberPackages\App\Http\Middleware\AuthenticateSessionForUser->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/src/MicroweberPackages/Multilanguage/Http/Middleware/MultilanguageMiddleware.php:25)
at MicroweberPackages\Multilanguage\Http\Middleware\MultilanguageMiddleware->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:40)
at Illuminate\Foundation\Http\Middleware\TrimStrings->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/src/MicroweberPackages/App/Http/Middleware/XSS.php:36)
at MicroweberPackages\App\Http\Middleware\XSS->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:116)
at Illuminate\Pipeline\Pipeline->then(object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:798)
at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:777)
at Illuminate\Routing\Router->runRoute(object(Request), object(Route))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:741)
at Illuminate\Routing\Router->dispatchToRoute(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:730)
at Illuminate\Routing\Router->dispatch(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:200)
at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:141)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/userfiles/modules/onebuild_saas/src/Http/Middleware/TenantIdentify.php:116)
at OneBuild\SaaS\Http\Middleware\TenantIdentify->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php:59)
at Barryvdh\Debugbar\Middleware\InjectDebugbar->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/livewire/livewire/src/DisableBrowserCache.php:19)
at Livewire\DisableBrowserCache->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php:39)
at Illuminate\Http\Middleware\TrustProxies->handle(object(Request), object(Closure))
(/var/www/html/src/MicroweberPackages/App/Http/Middleware/TrustProxies.php:42)
at MicroweberPackages\App\Http\Middleware\TrustProxies->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/microweber-deps/laravel-cors/src/HandleCors.php:38)
at Fruitcake\Cors\HandleCors->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:89)
at Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27)
at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:40)
at Illuminate\Foundation\Http\Middleware\TrimStrings->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:121)
at Illuminate\Session\Middleware\StartSession->handleStatefulRequest(object(Request), object(Store), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:64)
at Illuminate\Session\Middleware\StartSession->handle(object(Request), object(Closure))
(/var/www/html/src/MicroweberPackages/App/Http/Middleware/StartSessionExtended.php:22)
at MicroweberPackages\App\Http\Middleware\StartSessionExtended->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php:31)
at Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37)
at Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:116)
at Illuminate\Pipeline\Pipeline->then(object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:175)
at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144)
at Illuminate\Foundation\Http\Kernel->handle(object(Request))
(/var/www/html/index.php:97)
|
|
[1/2]
PDOException
|
|---|
PDOException:
SQLSTATE[HY000] [1049] Unknown database 'mw_tenant_12'
at /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65
at PDO->__construct('mysql:host=one-build-db;dbname=mw_tenant_12', 'mw_user', object(SensitiveParameterValue), array(0, 2, 0, false, false))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
at Illuminate\Database\Connectors\Connector->createPdoConnection('mysql:host=one-build-db;dbname=mw_tenant_12', 'mw_user', 'antigravity_pass', array(0, 2, 0, false, false))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:44)
at Illuminate\Database\Connectors\Connector->createConnection('mysql:host=one-build-db;dbname=mw_tenant_12', array('driver' => 'mysql', 'host' => 'one-build-db', 'database' => 'mw_tenant_12', 'username' => 'mw_user', 'password' => 'antigravity_pass', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => 'sucess_co__', 'prefix_indexes' => true, 'strict' => false, 'name' => 'tenant'), array(0, 2, 0, false, false))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:24)
at Illuminate\Database\Connectors\MySqlConnector->connect(array('driver' => 'mysql', 'host' => 'one-build-db', 'database' => 'mw_tenant_12', 'username' => 'mw_user', 'password' => 'antigravity_pass', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => 'sucess_co__', 'prefix_indexes' => true, 'strict' => false, 'name' => 'tenant'))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:184)
at Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()
at call_user_func(object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:1292)
at Illuminate\Database\Connection->getPdo()
(/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:1328)
at Illuminate\Database\Connection->getReadPdo()
(/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:521)
at Illuminate\Database\Connection->getPdoForSelect(true)
(/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:416)
at Illuminate\Database\Connection->Illuminate\Database\{closure}('select `sucess_co__content`.`id` from `sucess_co__content` where `sucess_co__content`.`url` = ? and `sucess_co__content`.`content_type` = ? and `sucess_co__content`.`is_deleted` = ? limit 1', array('ㅈㅈ', 'page', 0))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:788)
at Illuminate\Database\Connection->runQueryCallback('select `sucess_co__content`.`id` from `sucess_co__content` where `sucess_co__content`.`url` = ? and `sucess_co__content`.`content_type` = ? and `sucess_co__content`.`is_deleted` = ? limit 1', array('ㅈㅈ', 'page', 0), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:755)
at Illuminate\Database\Connection->run('select `sucess_co__content`.`id` from `sucess_co__content` where `sucess_co__content`.`url` = ? and `sucess_co__content`.`content_type` = ? and `sucess_co__content`.`is_deleted` = ? limit 1', array('ㅈㅈ', 'page', 0), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:407)
at Illuminate\Database\Connection->select('select `sucess_co__content`.`id` from `sucess_co__content` where `sucess_co__content`.`url` = ? and `sucess_co__content`.`content_type` = ? and `sucess_co__content`.`is_deleted` = ? limit 1', array('ㅈㅈ', 'page', 0), true)
(/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2751)
at Illuminate\Database\Query\Builder->runSelect()
(/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2740)
at Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure}()
(/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:3294)
at Illuminate\Database\Query\Builder->onceWithColumns(array('*'), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2739)
at Illuminate\Database\Query\Builder->get(array('*'))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:737)
at Illuminate\Database\Eloquent\Builder->getModels(array('*'))
(/var/www/html/src/MicroweberPackages/Database/Eloquent/Builder/CachedBuilder.php:87)
at MicroweberPackages\Database\Eloquent\Builder\CachedBuilder->get(array('*'))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php:296)
at Illuminate\Database\Eloquent\Builder->first()
(/var/www/html/src/MicroweberPackages/Repository/Repositories/AbstractRepository.php:1092)
at MicroweberPackages\Repository\Repositories\AbstractRepository->MicroweberPackages\Repository\Repositories\{closure}()
(/var/www/html/src/MicroweberPackages/Cache/TaggableFileStore.php:484)
at MicroweberPackages\Cache\TaggableFileStore->remember('ko_KR-repositories-content--getByParams-1994542396-1', 60000, object(Closure))
(/var/www/html/src/MicroweberPackages/Repository/Traits/CacheableRepository.php:186)
at MicroweberPackages\Repository\Repositories\AbstractRepository->cacheCallback('getByParams', array(array('url' => 'ㅈㅈ', 'single' => '1', 'content_type' => 'page', 'is_deleted' => 0, 'table' => 'content', 'cache_group' => 'content', 'fields' => 'id')), object(Closure))
(/var/www/html/src/MicroweberPackages/Repository/Repositories/AbstractRepository.php:1023)
at MicroweberPackages\Repository\Repositories\AbstractRepository->getByParams(array('url' => 'ㅈㅈ', 'single' => '1', 'content_type' => 'page', 'is_deleted' => 0, 'table' => 'content', 'cache_group' => 'content', 'fields' => 'id'))
(/var/www/html/src/MicroweberPackages/Content/ContentManagerCrud.php:274)
at MicroweberPackages\Content\ContentManagerCrud->get(array('url' => 'ㅈㅈ', 'single' => '1', 'content_type' => 'page', 'is_deleted' => 0, 'table' => 'content', 'cache_group' => 'content', 'fields' => 'id'))
(/var/www/html/src/MicroweberPackages/Content/ContentManager.php:266)
at MicroweberPackages\Content\ContentManager->get(array('url' => 'ㅈㅈ', 'single' => '1', 'content_type' => 'page'))
(/var/www/html/src/MicroweberPackages/Content/ContentManager.php:2264)
at MicroweberPackages\Content\ContentManager->get_pages(array('url' => 'ㅈㅈ', 'single' => '1', 'content_type' => 'page'))
(/var/www/html/src/MicroweberPackages/Content/helpers.php:181)
at get_pages('url=ㅈㅈ&single=1')
(/var/www/html/src/MicroweberPackages/App/Managers/PermalinkManager.php:61)
at MicroweberPackages\App\Managers\PermalinkManager->slug('ㅈㅈ', 'page')
(/var/www/html/src/MicroweberPackages/App/Http/Controllers/FrontendController.php:482)
at MicroweberPackages\App\Http\Controllers\FrontendController->frontend('ㅈㅈ')
(/var/www/html/src/MicroweberPackages/App/Http/Controllers/FrontendController.php:78)
at MicroweberPackages\App\Http\Controllers\FrontendController->index('ㅈㅈ')
(/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54)
at Illuminate\Routing\Controller->callAction('index', array('all' => 'ㅈㅈ'))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43)
at Illuminate\Routing\ControllerDispatcher->dispatch(object(Route), object(FrontendController), 'index')
(/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php:259)
at Illuminate\Routing\Route->runController()
(/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php:205)
at Illuminate\Routing\Route->run()
(/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:799)
at Illuminate\Routing\Router->Illuminate\Routing\{closure}(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:141)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/AuthenticateSession.php:41)
at Illuminate\Session\Middleware\AuthenticateSession->handle(object(Request), object(Closure))
(/var/www/html/src/MicroweberPackages/App/Http/Middleware/AuthenticateSessionForUser.php:23)
at MicroweberPackages\App\Http\Middleware\AuthenticateSessionForUser->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/src/MicroweberPackages/Multilanguage/Http/Middleware/MultilanguageMiddleware.php:25)
at MicroweberPackages\Multilanguage\Http\Middleware\MultilanguageMiddleware->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:40)
at Illuminate\Foundation\Http\Middleware\TrimStrings->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/src/MicroweberPackages/App/Http/Middleware/XSS.php:36)
at MicroweberPackages\App\Http\Middleware\XSS->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:116)
at Illuminate\Pipeline\Pipeline->then(object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:798)
at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:777)
at Illuminate\Routing\Router->runRoute(object(Request), object(Route))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:741)
at Illuminate\Routing\Router->dispatchToRoute(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:730)
at Illuminate\Routing\Router->dispatch(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:200)
at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:141)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/userfiles/modules/onebuild_saas/src/Http/Middleware/TenantIdentify.php:116)
at OneBuild\SaaS\Http\Middleware\TenantIdentify->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php:59)
at Barryvdh\Debugbar\Middleware\InjectDebugbar->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/livewire/livewire/src/DisableBrowserCache.php:19)
at Livewire\DisableBrowserCache->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php:39)
at Illuminate\Http\Middleware\TrustProxies->handle(object(Request), object(Closure))
(/var/www/html/src/MicroweberPackages/App/Http/Middleware/TrustProxies.php:42)
at MicroweberPackages\App\Http\Middleware\TrustProxies->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/microweber-deps/laravel-cors/src/HandleCors.php:38)
at Fruitcake\Cors\HandleCors->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:89)
at Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27)
at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:40)
at Illuminate\Foundation\Http\Middleware\TrimStrings->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:121)
at Illuminate\Session\Middleware\StartSession->handleStatefulRequest(object(Request), object(Store), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:64)
at Illuminate\Session\Middleware\StartSession->handle(object(Request), object(Closure))
(/var/www/html/src/MicroweberPackages/App/Http/Middleware/StartSessionExtended.php:22)
at MicroweberPackages\App\Http\Middleware\StartSessionExtended->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php:31)
at Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37)
at Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:116)
at Illuminate\Pipeline\Pipeline->then(object(Closure))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:175)
at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request))
(/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144)
at Illuminate\Foundation\Http\Kernel->handle(object(Request))
(/var/www/html/index.php:97)
|