=== Checking KCD Data ===
Illuminate\Database\QueryException {#1764 +errorInfo: array:3 [ 0 => "HY000" 1 => 1045 2 => "Access denied for user 'root'@'localhost' (using password: NO)" ] +connectionName: "mysql" #sql: "select * from `settings` where `key` = ? limit 1" #bindings: array:1 [ 0 => "tahun_ajaran_aktif" ] }
throw new UniqueConstraintViolationException( $this->getName(), $query, $this->prepareBindings($bindings), $e ); } throw new QueryException( $this->getName(), $query, $this->prepareBindings($bindings), $e ); } } protected function tryAgainIfCausedByLostConnection(QueryException $e, $query, $bindings, Closure $callback) { if ($this->causedByLostConnection($e->getPrevious())) { $this->reconnect(); return $this->runQueryCallback($query, $bindings, $callback); } throw $e; } { if ($this->transactions >= 1) { throw $e; } return $this->tryAgainIfCausedByLostConnection( $e, $query, $bindings, $callback ); } /** // 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 ); } // Once we have run the query we will calculate the time that it took to run and * @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<int, \stdClass> */ public function get($columns = ['*']) { $items = new Collection($this->onceWithColumns(Arr::wrap($columns), function () { return $this->processor->processSelect($this, $this->runSelect()); })); return $this->applyAfterQueryCallbacks( isset($this->groupLimit) ? $this->withoutGroupLimitKeys($items) : $items ); if (is_null($original)) { $this->columns = $columns; } $result = $callback(); $this->columns = $original; return $result; } * @param string|\Illuminate\Contracts\Database\Query\Expression|array<string|\Illuminate\Contracts\Database\Query\Expression> $columns * @return \Illuminate\Support\Collection<int, \stdClass> */ public function get($columns = ['*']) { $items = new Collection($this->onceWithColumns(Arr::wrap($columns), function () { return $this->processor->processSelect($this, $this->runSelect()); })); return $this->applyAfterQueryCallbacks( isset($this->groupLimit) ? $this->withoutGroupLimitKeys($items) : $items * @return array<int, TModel> */ 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); } return $this->applyAfterQueryCallbacks( $builder->getModel()->newCollection($models) * @param array|string $columns * @return TValue|null */ public function first($columns = ['*']) { return $this->limit(1)->get($columns)->first(); } /** * Execute the query and get the first result or throw an exception. * /**
* Get setting by key
*/
public static function get($key, $default = null)
{
$setting = self::where('key', $key)->first();
return $setting ? $setting->value : $default;
}
/**
* Set setting value
} else { $tahunAjaranAktif = ($currentYear - 1) . '/' . $currentYear; } // Try to get from settings, fallback to calculated value $tahunAjaranAktif = Setting::get('tahun_ajaran_aktif', $tahunAjaranAktif); $view->with('tahunAjaranAktif', $tahunAjaranAktif); }); }} */ protected function addEventListener($name, $callback) { if (str_contains($name, '*')) { $callback = function ($name, array $data) use ($callback) { return $callback($data[0]); }; } $this->events->listen($name, $callback); } return $this->createClassListener($listener, $wildcard); } return function ($event, $payload) use ($listener, $wildcard) { if ($wildcard) { return $listener($event, $payload); } return $listener(...array_values($payload)); }; } } $responses = []; foreach ($this->getListeners($event) as $listener) { $response = $listener($event, $payload); // If a response is returned from the listener and event halting is enabled // we will just return this response, and not call the rest of the event // listeners. Otherwise we will add the response on the response list. if ($halt && ! is_null($response)) { ); return null; } return $this->invokeListeners($parsedEvent, $parsedPayload, $halt); } /** * Broadcast an event and call its listeners. * * @return void */ public function callComposer(ViewContract $view) { if ($this->events->hasListeners($event = 'composing: '.$view->name())) { $this->events->dispatch($event, [$view]); } } /** * Call the creator for a given view. // We will keep track of the number of views being rendered so we can flush // the section after the complete rendering operation is done. This will // clear out the sections for any separate views that may be rendered. $this->factory->incrementRender(); $this->factory->callComposer($this); $contents = $this->getContents(); // Once we've finished rendering the view, we'll decrement the render count // so that each section gets flushed out next time a view is created and * @throws \Throwable */ public function render(?callable $callback = null) { try { $contents = $this->renderContents(); $response = isset($callback) ? $callback($this, $contents) : null; // Once we have the contents of the view, we will flush the sections if we are // done rendering all views so that there is nothing left hanging over when $exception = new Exception($flattenException, $request, $this->listener, $this->basePath); $exceptionAsMarkdown = $this->viewFactory->make('laravel-exceptions-renderer::markdown', [ 'exception' => $exception, ])->render(); return $this->viewFactory->make('laravel-exceptions-renderer::show', [ 'exception' => $exception, 'exceptionAsMarkdown' => $exceptionAsMarkdown, ])->render(); try { if (config('app.debug')) { if (app()->has(ExceptionRenderer::class)) { return $this->renderExceptionWithCustomRenderer($e); } elseif ($this->container->bound(Renderer::class)) { return $this->container->make(Renderer::class)->render(request(), $e); } } return $this->renderExceptionWithSymfony($e, config('app.debug')); } catch (Throwable $e) { * @return \Symfony\Component\HttpFoundation\Response */ protected function convertExceptionToResponse(Throwable $e) { return new SymfonyResponse( $this->renderExceptionContent($e), $this->isHttpException($e) ? $e->getStatusCode() : 500, $this->isHttpException($e) ? $e->getHeaders() : [] ); } * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse */ protected function prepareResponse($request, Throwable $e) { if (! $this->isHttpException($e) && config('app.debug')) { return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e)->prepare($request); } if (! $this->isHttpException($e)) { $e = new HttpException(500, $e->getMessage(), $e); } */ protected function renderExceptionResponse($request, Throwable $e) { return $this->shouldReturnJson($request, $e) ? $this->prepareJsonResponse($request, $e) : $this->prepareResponse($request, $e); } /** * Convert an authentication exception into a response. * return $this->finalizeRenderedResponse($request, match (true) { $e instanceof HttpResponseException => $e->getResponse(), $e instanceof AuthenticationException => $this->unauthenticated($request, $e), $e instanceof ValidationException => $this->convertValidationExceptionToResponse($e, $request), default => $this->renderExceptionResponse($request, $e), }, $e); } /** * Prepare the final, rendered response to be returned to the browser. * @param \Throwable $e * @return void */ protected function renderHttpResponse(Throwable $e) { $this->getExceptionHandler()->render(static::$app['request'], $e)->send(); } /** * Handle the PHP shutdown event. * if ($exceptionHandlerFailed ?? false) { exit(1); } } else { $this->renderHttpResponse($e); } } /** * Render an exception to the console. * @return callable */ protected function forwardsTo($method) { return fn (...$arguments) => static::$app ? $this->{$method}(...$arguments) : false; } /** * Determine if the error level is a deprecation. * @return \PDO */ protected function createPdoConnection($dsn, $username, #[\SensitiveParameter] $password, $options) { return version_compare(phpversion(), '8.4.0', '<') ? new PDO($dsn, $username, $password, $options) : PDO::connect($dsn, $username, $password, $options); /** @phpstan-ignore staticMethod.notFound (PHP 8.4) */ } /** * Handle an exception that occurred during connect execution. * @return \PDO */ protected function createPdoConnection($dsn, $username, #[\SensitiveParameter] $password, $options) { return version_compare(phpversion(), '8.4.0', '<') ? new PDO($dsn, $username, $password, $options) : PDO::connect($dsn, $username, $password, $options); /** @phpstan-ignore staticMethod.notFound (PHP 8.4) */ } /** * Handle an exception that occurred during connect execution. * @throws \Throwable */ protected function tryAgainIfCausedByLostConnection(Throwable $e, $dsn, $username, #[\SensitiveParameter] $password, $options) { if ($this->causedByLostConnection($e)) { return $this->createPdoConnection($dsn, $username, $password, $options); } throw $e; } 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']) && (! isset($config['use_db_after_connecting']) || $config['use_db_after_connecting'])) { $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. protected function tryAgainIfCausedByLostConnection(QueryException $e, $query, $bindings, Closure $callback) { if ($this->causedByLostConnection($e->getPrevious())) { $this->reconnect(); return $this->runQueryCallback($query, $bindings, $callback); } throw $e; } { if ($this->transactions >= 1) { throw $e; } return $this->tryAgainIfCausedByLostConnection( $e, $query, $bindings, $callback ); } /** // 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 ); } // Once we have run the query we will calculate the time that it took to run and * @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<int, \stdClass> */ public function get($columns = ['*']) { $items = new Collection($this->onceWithColumns(Arr::wrap($columns), function () { return $this->processor->processSelect($this, $this->runSelect()); })); return $this->applyAfterQueryCallbacks( isset($this->groupLimit) ? $this->withoutGroupLimitKeys($items) : $items ); if (is_null($original)) { $this->columns = $columns; } $result = $callback(); $this->columns = $original; return $result; } * @param string|\Illuminate\Contracts\Database\Query\Expression|array<string|\Illuminate\Contracts\Database\Query\Expression> $columns * @return \Illuminate\Support\Collection<int, \stdClass> */ public function get($columns = ['*']) { $items = new Collection($this->onceWithColumns(Arr::wrap($columns), function () { return $this->processor->processSelect($this, $this->runSelect()); })); return $this->applyAfterQueryCallbacks( isset($this->groupLimit) ? $this->withoutGroupLimitKeys($items) : $items * @return array<int, TModel> */ 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); } return $this->applyAfterQueryCallbacks( $builder->getModel()->newCollection($models) * @param array|string $columns * @return TValue|null */ public function first($columns = ['*']) { return $this->limit(1)->get($columns)->first(); } /** * Execute the query and get the first result or throw an exception. * /**
* Get setting by key
*/
public static function get($key, $default = null)
{
$setting = self::where('key', $key)->first();
return $setting ? $setting->value : $default;
}
/**
* Set setting value
} else { $tahunAjaranAktif = ($currentYear - 1) . '/' . $currentYear; } // Try to get from settings, fallback to calculated value $tahunAjaranAktif = Setting::get('tahun_ajaran_aktif', $tahunAjaranAktif); $view->with('tahunAjaranAktif', $tahunAjaranAktif); }); }} */ protected function addEventListener($name, $callback) { if (str_contains($name, '*')) { $callback = function ($name, array $data) use ($callback) { return $callback($data[0]); }; } $this->events->listen($name, $callback); } return $this->createClassListener($listener, $wildcard); } return function ($event, $payload) use ($listener, $wildcard) { if ($wildcard) { return $listener($event, $payload); } return $listener(...array_values($payload)); }; } } $responses = []; foreach ($this->getListeners($event) as $listener) { $response = $listener($event, $payload); // If a response is returned from the listener and event halting is enabled // we will just return this response, and not call the rest of the event // listeners. Otherwise we will add the response on the response list. if ($halt && ! is_null($response)) { ); return null; } return $this->invokeListeners($parsedEvent, $parsedPayload, $halt); } /** * Broadcast an event and call its listeners. * * @return void */ public function callComposer(ViewContract $view) { if ($this->events->hasListeners($event = 'composing: '.$view->name())) { $this->events->dispatch($event, [$view]); } } /** * Call the creator for a given view. // We will keep track of the number of views being rendered so we can flush // the section after the complete rendering operation is done. This will // clear out the sections for any separate views that may be rendered. $this->factory->incrementRender(); $this->factory->callComposer($this); $contents = $this->getContents(); // Once we've finished rendering the view, we'll decrement the render count // so that each section gets flushed out next time a view is created and * @throws \Throwable */ public function render(?callable $callback = null) { try { $contents = $this->renderContents(); $response = isset($callback) ? $callback($this, $contents) : null; // Once we have the contents of the view, we will flush the sections if we are // done rendering all views so that there is nothing left hanging over when $exception = new Exception($flattenException, $request, $this->listener, $this->basePath); $exceptionAsMarkdown = $this->viewFactory->make('laravel-exceptions-renderer::markdown', [ 'exception' => $exception, ])->render(); return $this->viewFactory->make('laravel-exceptions-renderer::show', [ 'exception' => $exception, 'exceptionAsMarkdown' => $exceptionAsMarkdown, ])->render(); try { if (config('app.debug')) { if (app()->has(ExceptionRenderer::class)) { return $this->renderExceptionWithCustomRenderer($e); } elseif ($this->container->bound(Renderer::class)) { return $this->container->make(Renderer::class)->render(request(), $e); } } return $this->renderExceptionWithSymfony($e, config('app.debug')); } catch (Throwable $e) { * @return \Symfony\Component\HttpFoundation\Response */ protected function convertExceptionToResponse(Throwable $e) { return new SymfonyResponse( $this->renderExceptionContent($e), $this->isHttpException($e) ? $e->getStatusCode() : 500, $this->isHttpException($e) ? $e->getHeaders() : [] ); } * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse */ protected function prepareResponse($request, Throwable $e) { if (! $this->isHttpException($e) && config('app.debug')) { return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e)->prepare($request); } if (! $this->isHttpException($e)) { $e = new HttpException(500, $e->getMessage(), $e); } */ protected function renderExceptionResponse($request, Throwable $e) { return $this->shouldReturnJson($request, $e) ? $this->prepareJsonResponse($request, $e) : $this->prepareResponse($request, $e); } /** * Convert an authentication exception into a response. * return $this->finalizeRenderedResponse($request, match (true) { $e instanceof HttpResponseException => $e->getResponse(), $e instanceof AuthenticationException => $this->unauthenticated($request, $e), $e instanceof ValidationException => $this->convertValidationExceptionToResponse($e, $request), default => $this->renderExceptionResponse($request, $e), }, $e); } /** * Prepare the final, rendered response to be returned to the browser. * @param \Throwable $e * @return void */ protected function renderHttpResponse(Throwable $e) { $this->getExceptionHandler()->render(static::$app['request'], $e)->send(); } /** * Handle the PHP shutdown event. * if ($exceptionHandlerFailed ?? false) { exit(1); } } else { $this->renderHttpResponse($e); } } /** * Render an exception to the console. * @return callable */ protected function forwardsTo($method) { return fn (...$arguments) => static::$app ? $this->{$method}(...$arguments) : false; } /** * Determine if the error level is a deprecation.|
[2/2]
QueryException
|
|---|
Illuminate\Database\QueryException:
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) (Connection: mysql, SQL: select * from `settings` where `key` = tahun_ajaran_aktif limit 1)
at /home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Connection.php:824
at Illuminate\Database\Connection->runQueryCallback('select * from `settings` where `key` = ? limit 1', array('tahun_ajaran_aktif'), object(Closure))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Connection.php:978)
at Illuminate\Database\Connection->tryAgainIfCausedByLostConnection(object(QueryException), 'select * from `settings` where `key` = ? limit 1', array('tahun_ajaran_aktif'), object(Closure))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Connection.php:957)
at Illuminate\Database\Connection->handleQueryException(object(QueryException), 'select * from `settings` where `key` = ? limit 1', array('tahun_ajaran_aktif'), object(Closure))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Connection.php:780)
at Illuminate\Database\Connection->run('select * from `settings` where `key` = ? limit 1', array('tahun_ajaran_aktif'), object(Closure))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Connection.php:397)
at Illuminate\Database\Connection->select('select * from `settings` where `key` = ? limit 1', array('tahun_ajaran_aktif'), true)
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:3188)
at Illuminate\Database\Query\Builder->runSelect()
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:3173)
at Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure}()
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:3763)
at Illuminate\Database\Query\Builder->onceWithColumns(array('*'), object(Closure))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:3172)
at Illuminate\Database\Query\Builder->get(array('*'))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:902)
at Illuminate\Database\Eloquent\Builder->getModels(array('*'))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:884)
at Illuminate\Database\Eloquent\Builder->get(array('*'))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php:366)
at Illuminate\Database\Eloquent\Builder->first()
(/home/dataslbm/sip.web.id/app/Models/Setting.php:17)
at App\Models\Setting::get('tahun_ajaran_aktif', '2025/2026')
(/home/dataslbm/sip.web.id/app/Providers/AppServiceProvider.php:37)
at App\Providers\AppServiceProvider->App\Providers\{closure}(object(View))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/View/Concerns/ManagesEvents.php:162)
at Illuminate\View\Factory->Illuminate\View\Concerns\{closure}('composing: laravel-exceptions-renderer::markdown', array(object(View)))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:485)
at Illuminate\Events\Dispatcher->Illuminate\Events\{closure}('composing: laravel-exceptions-renderer::markdown', array(object(View)))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:315)
at Illuminate\Events\Dispatcher->invokeListeners('composing: laravel-exceptions-renderer::markdown', array(object(View)), false)
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:295)
at Illuminate\Events\Dispatcher->dispatch('composing: laravel-exceptions-renderer::markdown', array(object(View)))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/View/Concerns/ManagesEvents.php:178)
at Illuminate\View\Factory->callComposer(object(View))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/View/View.php:189)
at Illuminate\View\View->renderContents()
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/View/View.php:160)
at Illuminate\View\View->render()
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Renderer/Renderer.php:95)
at Illuminate\Foundation\Exceptions\Renderer\Renderer->render(object(Request), object(QueryException))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:879)
at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(QueryException))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:860)
at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(QueryException))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:839)
at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(QueryException))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:738)
at Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse(object(Request), object(QueryException))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:626)
at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(QueryException))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:221)
at Illuminate\Foundation\Bootstrap\HandleExceptions->renderHttpResponse(object(QueryException))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:198)
at Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(object(QueryException))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:258)
at Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}(object(QueryException))
|
|
[1/2]
PDOException
|
|---|
PDOException:
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)
at /home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:66
at PDO->__construct('mysql:host=127.0.0.1;port=3306;dbname=appsuper', 'root', object(SensitiveParameterValue), array(0, 2, 0, false, false))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:66)
at Illuminate\Database\Connectors\Connector->createPdoConnection('mysql:host=127.0.0.1;port=3306;dbname=appsuper', 'root', object(SensitiveParameterValue), array(0, 2, 0, false, false))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:85)
at Illuminate\Database\Connectors\Connector->tryAgainIfCausedByLostConnection(object(PDOException), 'mysql:host=127.0.0.1;port=3306;dbname=appsuper', 'root', object(SensitiveParameterValue), array(0, 2, 0, false, false))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:48)
at Illuminate\Database\Connectors\Connector->createConnection('mysql:host=127.0.0.1;port=3306;dbname=appsuper', array('driver' => 'mysql', 'host' => '127.0.0.1', 'port' => '3306', 'database' => 'appsuper', 'username' => 'root', 'password' => '', 'unix_socket' => '', 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'prefix' => '', 'prefix_indexes' => true, 'strict' => true, 'engine' => null, 'options' => array(), 'name' => 'mysql'), array(0, 2, 0, false, false))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:24)
at Illuminate\Database\Connectors\MySqlConnector->connect(array('driver' => 'mysql', 'host' => '127.0.0.1', 'port' => '3306', 'database' => 'appsuper', 'username' => 'root', 'password' => '', 'unix_socket' => '', 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'prefix' => '', 'prefix_indexes' => true, 'strict' => true, 'engine' => null, 'options' => array(), 'name' => 'mysql'))
(/home/dataslbm/sip.web.id/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))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Connection.php:1234)
at Illuminate\Database\Connection->getPdo()
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Connection.php:1270)
at Illuminate\Database\Connection->getReadPdo()
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Connection.php:511)
at Illuminate\Database\Connection->getPdoForSelect(true)
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Connection.php:406)
at Illuminate\Database\Connection->Illuminate\Database\{closure}('select * from `settings` where `key` = ? limit 1', array('tahun_ajaran_aktif'))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Connection.php:811)
at Illuminate\Database\Connection->runQueryCallback('select * from `settings` where `key` = ? limit 1', array('tahun_ajaran_aktif'), object(Closure))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Connection.php:978)
at Illuminate\Database\Connection->tryAgainIfCausedByLostConnection(object(QueryException), 'select * from `settings` where `key` = ? limit 1', array('tahun_ajaran_aktif'), object(Closure))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Connection.php:957)
at Illuminate\Database\Connection->handleQueryException(object(QueryException), 'select * from `settings` where `key` = ? limit 1', array('tahun_ajaran_aktif'), object(Closure))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Connection.php:780)
at Illuminate\Database\Connection->run('select * from `settings` where `key` = ? limit 1', array('tahun_ajaran_aktif'), object(Closure))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Connection.php:397)
at Illuminate\Database\Connection->select('select * from `settings` where `key` = ? limit 1', array('tahun_ajaran_aktif'), true)
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:3188)
at Illuminate\Database\Query\Builder->runSelect()
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:3173)
at Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure}()
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:3763)
at Illuminate\Database\Query\Builder->onceWithColumns(array('*'), object(Closure))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:3172)
at Illuminate\Database\Query\Builder->get(array('*'))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:902)
at Illuminate\Database\Eloquent\Builder->getModels(array('*'))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:884)
at Illuminate\Database\Eloquent\Builder->get(array('*'))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php:366)
at Illuminate\Database\Eloquent\Builder->first()
(/home/dataslbm/sip.web.id/app/Models/Setting.php:17)
at App\Models\Setting::get('tahun_ajaran_aktif', '2025/2026')
(/home/dataslbm/sip.web.id/app/Providers/AppServiceProvider.php:37)
at App\Providers\AppServiceProvider->App\Providers\{closure}(object(View))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/View/Concerns/ManagesEvents.php:162)
at Illuminate\View\Factory->Illuminate\View\Concerns\{closure}('composing: laravel-exceptions-renderer::markdown', array(object(View)))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:485)
at Illuminate\Events\Dispatcher->Illuminate\Events\{closure}('composing: laravel-exceptions-renderer::markdown', array(object(View)))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:315)
at Illuminate\Events\Dispatcher->invokeListeners('composing: laravel-exceptions-renderer::markdown', array(object(View)), false)
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:295)
at Illuminate\Events\Dispatcher->dispatch('composing: laravel-exceptions-renderer::markdown', array(object(View)))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/View/Concerns/ManagesEvents.php:178)
at Illuminate\View\Factory->callComposer(object(View))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/View/View.php:189)
at Illuminate\View\View->renderContents()
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/View/View.php:160)
at Illuminate\View\View->render()
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Renderer/Renderer.php:95)
at Illuminate\Foundation\Exceptions\Renderer\Renderer->render(object(Request), object(QueryException))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:879)
at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(QueryException))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:860)
at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(QueryException))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:839)
at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(QueryException))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:738)
at Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse(object(Request), object(QueryException))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:626)
at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(QueryException))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:221)
at Illuminate\Foundation\Bootstrap\HandleExceptions->renderHttpResponse(object(QueryException))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:198)
at Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(object(QueryException))
(/home/dataslbm/sip.web.id/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:258)
at Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}(object(QueryException))
|