Deprecated: Return type of Slim\Collection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/atbuedu/atbu/vendor/slim/slim/Slim/Collection.php on line 141

Deprecated: Return type of Slim\Collection::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/atbuedu/atbu/vendor/slim/slim/Slim/Collection.php on line 153

Deprecated: Return type of Slim\Collection::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/atbuedu/atbu/vendor/slim/slim/Slim/Collection.php on line 164

Deprecated: Return type of Slim\Collection::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/atbuedu/atbu/vendor/slim/slim/Slim/Collection.php on line 174

Deprecated: Return type of Slim\Collection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/atbuedu/atbu/vendor/slim/slim/Slim/Collection.php on line 184

Deprecated: Return type of Slim\Collection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/atbuedu/atbu/vendor/slim/slim/Slim/Collection.php on line 198
Slim Application Error

Slim Application Error

The application could not run because of the following error:

Details

Type: Illuminate\Database\QueryException
Code: 1044
Message: SQLSTATE[HY000] [1044] Access denied for user 'academic_user'@'localhost' to database 'portal' (SQL: select * from `site`)
File: /home/atbuedu/atbu/vendor/illuminate/database/Connection.php
Line: 664

Trace

#0 /home/atbuedu/atbu/vendor/illuminate/database/Connection.php(624): Illuminate\Database\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/atbuedu/atbu/vendor/illuminate/database/Connection.php(333): Illuminate\Database\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/atbuedu/atbu/vendor/illuminate/database/Query/Builder.php(1705): Illuminate\Database\Connection->select('select * from `...', Array, true)
#3 /home/atbuedu/atbu/vendor/illuminate/database/Query/Builder.php(1690): Illuminate\Database\Query\Builder->runSelect()
#4 /home/atbuedu/atbu/app/Portal/Setting.php(37): Illuminate\Database\Query\Builder->get()
#5 /home/atbuedu/atbu/app/Portal/Setting.php(23): App\Portal\Setting->init()
#6 /home/atbuedu/atbu/bootstrap/services.php(106): App\Portal\Setting->__construct(Object(Slim\Container))
#7 /home/atbuedu/atbu/vendor/pimple/pimple/src/Pimple/Container.php(118): {closure}(Object(Slim\Container))
#8 /home/atbuedu/atbu/vendor/slim/slim/Slim/Container.php(123): Pimple\Container->offsetGet('setting')
#9 /home/atbuedu/atbu/app/Portal/Site.php(83): Slim\Container->get('setting')
#10 /home/atbuedu/atbu/app/Portal/Site.php(97): App\Portal\Site->__get('auth')
#11 /home/atbuedu/atbu/app/Portal/Site.php(66): App\Portal\Site->GetCurrentUser()
#12 /home/atbuedu/atbu/bootstrap/services.php(65): App\Portal\Site->__get('user')
#13 /home/atbuedu/atbu/vendor/pimple/pimple/src/Pimple/Container.php(118): {closure}(Object(Slim\Container))
#14 /home/atbuedu/atbu/vendor/slim/slim/Slim/Container.php(123): Pimple\Container->offsetGet('view')
#15 /home/atbuedu/atbu/vendor/slim/slim/Slim/Container.php(172): Slim\Container->get('view')
#16 /home/atbuedu/atbu/app/Middleware/CsrfViewMiddleware.php(21): Slim\Container->__get('view')
#17 [internal function]: App\Middleware\CsrfViewMiddleware->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#18 /home/atbuedu/atbu/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(App\Middleware\CsrfViewMiddleware), Array)
#19 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#20 /home/atbuedu/atbu/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#21 /home/atbuedu/atbu/vendor/slim/csrf/src/Guard.php(170): Slim\Route->Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#22 [internal function]: Slim\Csrf\Guard->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#23 /home/atbuedu/atbu/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(App\Guard\CsrfGuard), Array)
#24 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#25 /home/atbuedu/atbu/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#26 /home/atbuedu/atbu/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#27 /home/atbuedu/atbu/vendor/slim/slim/Slim/Route.php(313): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#28 /home/atbuedu/atbu/vendor/slim/slim/Slim/App.php(495): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response))
#29 /home/atbuedu/atbu/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#30 /home/atbuedu/atbu/vendor/slim/slim/Slim/App.php(388): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#31 /home/atbuedu/atbu/vendor/slim/slim/Slim/App.php(296): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response))
#32 /home/atbuedu/public_html/public/index.php(5): Slim\App->run()
#33 {main}

Previous exception

Type: PDOException
Code: 1044
Message: SQLSTATE[HY000] [1044] Access denied for user 'academic_user'@'localhost' to database 'portal'
File: /home/atbuedu/atbu/vendor/illuminate/database/Connectors/Connector.php
Line: 67

Trace

#0 /home/atbuedu/atbu/vendor/illuminate/database/Connectors/Connector.php(67): PDO->__construct('mysql:host=loca...', 'academic_user', 'l7kg0{(=C$P3', Array)
#1 /home/atbuedu/atbu/vendor/illuminate/database/Connectors/Connector.php(43): Illuminate\Database\Connectors\Connector->createPdoConnection('mysql:host=loca...', 'academic_user', 'l7kg0{(=C$P3', Array)
#2 /home/atbuedu/atbu/vendor/illuminate/database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection('mysql:host=loca...', Array, Array)
#3 /home/atbuedu/atbu/vendor/illuminate/database/Connectors/ConnectionFactory.php(183): Illuminate\Database\Connectors\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()
#5 /home/atbuedu/atbu/vendor/illuminate/database/Connection.php(915): call_user_func(Object(Closure))
#6 /home/atbuedu/atbu/vendor/illuminate/database/Connection.php(940): Illuminate\Database\Connection->getPdo()
#7 /home/atbuedu/atbu/vendor/illuminate/database/Connection.php(399): Illuminate\Database\Connection->getReadPdo()
#8 /home/atbuedu/atbu/vendor/illuminate/database/Connection.php(325): Illuminate\Database\Connection->getPdoForSelect(true)
#9 /home/atbuedu/atbu/vendor/illuminate/database/Connection.php(657): Illuminate\Database\Connection->Illuminate\Database\{closure}('select * from `...', Array)
#10 /home/atbuedu/atbu/vendor/illuminate/database/Connection.php(624): Illuminate\Database\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/atbuedu/atbu/vendor/illuminate/database/Connection.php(333): Illuminate\Database\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/atbuedu/atbu/vendor/illuminate/database/Query/Builder.php(1705): Illuminate\Database\Connection->select('select * from `...', Array, true)
#13 /home/atbuedu/atbu/vendor/illuminate/database/Query/Builder.php(1690): Illuminate\Database\Query\Builder->runSelect()
#14 /home/atbuedu/atbu/app/Portal/Setting.php(37): Illuminate\Database\Query\Builder->get()
#15 /home/atbuedu/atbu/app/Portal/Setting.php(23): App\Portal\Setting->init()
#16 /home/atbuedu/atbu/bootstrap/services.php(106): App\Portal\Setting->__construct(Object(Slim\Container))
#17 /home/atbuedu/atbu/vendor/pimple/pimple/src/Pimple/Container.php(118): {closure}(Object(Slim\Container))
#18 /home/atbuedu/atbu/vendor/slim/slim/Slim/Container.php(123): Pimple\Container->offsetGet('setting')
#19 /home/atbuedu/atbu/app/Portal/Site.php(83): Slim\Container->get('setting')
#20 /home/atbuedu/atbu/app/Portal/Site.php(97): App\Portal\Site->__get('auth')
#21 /home/atbuedu/atbu/app/Portal/Site.php(66): App\Portal\Site->GetCurrentUser()
#22 /home/atbuedu/atbu/bootstrap/services.php(65): App\Portal\Site->__get('user')
#23 /home/atbuedu/atbu/vendor/pimple/pimple/src/Pimple/Container.php(118): {closure}(Object(Slim\Container))
#24 /home/atbuedu/atbu/vendor/slim/slim/Slim/Container.php(123): Pimple\Container->offsetGet('view')
#25 /home/atbuedu/atbu/vendor/slim/slim/Slim/Container.php(172): Slim\Container->get('view')
#26 /home/atbuedu/atbu/app/Middleware/CsrfViewMiddleware.php(21): Slim\Container->__get('view')
#27 [internal function]: App\Middleware\CsrfViewMiddleware->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#28 /home/atbuedu/atbu/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(App\Middleware\CsrfViewMiddleware), Array)
#29 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#30 /home/atbuedu/atbu/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#31 /home/atbuedu/atbu/vendor/slim/csrf/src/Guard.php(170): Slim\Route->Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#32 [internal function]: Slim\Csrf\Guard->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#33 /home/atbuedu/atbu/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(App\Guard\CsrfGuard), Array)
#34 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#35 /home/atbuedu/atbu/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#36 /home/atbuedu/atbu/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#37 /home/atbuedu/atbu/vendor/slim/slim/Slim/Route.php(313): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#38 /home/atbuedu/atbu/vendor/slim/slim/Slim/App.php(495): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response))
#39 /home/atbuedu/atbu/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#40 /home/atbuedu/atbu/vendor/slim/slim/Slim/App.php(388): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#41 /home/atbuedu/atbu/vendor/slim/slim/Slim/App.php(296): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response))
#42 /home/atbuedu/public_html/public/index.php(5): Slim\App->run()
#43 {main}

Deprecated: preg_replace_callback(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/atbuedu/atbu/vendor/slim/slim/Slim/Http/Uri.php on line 718

Deprecated: Return type of Slim\Views\Twig::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/atbuedu/atbu/vendor/slim/twig-view/src/Twig.php on line 193

Deprecated: Return type of Slim\Views\Twig::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/atbuedu/atbu/vendor/slim/twig-view/src/Twig.php on line 205

Deprecated: Return type of Slim\Views\Twig::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/atbuedu/atbu/vendor/slim/twig-view/src/Twig.php on line 216

Deprecated: Return type of Slim\Views\Twig::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/atbuedu/atbu/vendor/slim/twig-view/src/Twig.php on line 226

Deprecated: realpath(): Passing null to parameter #1 ($path) of type string is deprecated in /home/atbuedu/atbu/vendor/twig/twig/src/Loader/FilesystemLoader.php on line 40

Deprecated: Return type of Twig\Node\Node::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/atbuedu/atbu/vendor/twig/twig/src/Node/Node.php on line 161

Deprecated: Return type of Twig\Node\Node::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/atbuedu/atbu/vendor/twig/twig/src/Node/Node.php on line 166

Deprecated: Return type of Illuminate\Support\Collection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/atbuedu/atbu/vendor/illuminate/support/Collection.php on line 1664

Deprecated: Return type of Illuminate\Support\Collection::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/atbuedu/atbu/vendor/illuminate/support/Collection.php on line 1675

Deprecated: Return type of Illuminate\Support\Collection::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/atbuedu/atbu/vendor/illuminate/support/Collection.php on line 1687

Deprecated: Return type of Illuminate\Support\Collection::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/atbuedu/atbu/vendor/illuminate/support/Collection.php on line 1702

Deprecated: Return type of Illuminate\Support\Collection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/atbuedu/atbu/vendor/illuminate/support/Collection.php on line 1643

Deprecated: Return type of Illuminate\Support\Collection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/atbuedu/atbu/vendor/illuminate/support/Collection.php on line 1622

Deprecated: Return type of Illuminate\Support\Collection::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/atbuedu/atbu/vendor/illuminate/support/Collection.php on line 1591