Warning: require(/home/enpeiraiei/public_html/administrator/cache/autoload_psr4.php): Failed to open stream: No such file or directory in /home/enpeiraiei/public_html/libraries/namespacemap.php on line 104
Access denied for user 'enpeiraiei_user'@'localhost' to database 'enpeiraiei_db1' (500 Whoops, looks like something went wrong.)

Error mysqli_sql_exception

HTTP 500 Whoops, looks like something went wrong.

Access denied for user 'enpeiraiei_user'@'localhost' to database 'enpeiraiei_db1'

Exceptions 2

mysqli_sql_exception

  1.         if (!$database)
  2.         {
  3.             return false;
  4.         }
  5.         if (!$this->connection->select_db($database))
  6.         {
  7.             throw new ConnectionFailureException('Could not connect to database.');
  8.         }
  9.         return true;
  1.         if (!$database)
  2.         {
  3.             return false;
  4.         }
  5.         if (!$this->connection->select_db($database))
  6.         {
  7.             throw new ConnectionFailureException('Could not connect to database.');
  8.         }
  9.         return true;
  1.         $this->options['sqlModes'] = explode(','$this->setQuery('SELECT @@SESSION.sql_mode;')->loadResult());
  2.         // If auto-select is enabled select the given database.
  3.         if ($this->options['select'] && !empty($this->options['database']))
  4.         {
  5.             $this->select($this->options['database']);
  6.         }
  7.         $this->mariadb stripos($this->connection->server_info'mariadb') !== false;
  8.         $this->utf8mb4 $this->serverClaimsUtf8mb4Support();
  1.      * @since   1.0
  2.      * @throws  \InvalidArgumentException
  3.      */
  4.     public function setQuery($query$offset 0$limit 0)
  5.     {
  6.         $this->connect();
  7.         $this->freeResult();
  8.         if (\is_string($query))
  9.         {
DatabaseDriver->setQuery(object(MysqliQuery)) in /home/enpeiraiei/public_html/libraries/src/Menu/SiteMenu.php (line 166)
  1.                 )
  2.                 ->bind(':currentDate2'$currentDate)
  3.                 ->order($this->db->quoteName('m.lft'));
  4.             $items    = [];
  5.             $iterator $this->db->setQuery($query)->getIterator();
  6.             foreach ($iterator as $item) {
  7.                 $items[$item->id] = new MenuItem((array) $item);
  8.             }
  1.             $referenceArgs = &$args;
  2.         }
  3.         // Just execute the callback if caching is disabled.
  4.         if (empty($this->options['caching'])) {
  5.             return \call_user_func_array($callback$referenceArgs);
  6.         }
  7.         if (!$id) {
  8.             // Generate an ID
  9.             $id $this->_makeId($callback$args);
CallbackController->get(object(Closure), array(), 'd17e8e13b99b4d9bf23a7d0b83a466c3', false) in /home/enpeiraiei/public_html/libraries/src/Menu/SiteMenu.php (line 179)
  1.         try {
  2.             /** @var CallbackController $cache */
  3.             $cache $this->getCacheControllerFactory()->createCacheController('callback', ['defaultgroup' => 'com_menus']);
  4.             $this->items $cache->get($loader, [], md5(\get_class($this)), false);
  5.         } catch (CacheExceptionInterface $e) {
  6.             try {
  7.                 $this->items $loader();
  8.             } catch (ExecutionFailureException $databaseException) {
  9.                 $this->app->enqueueMessage(Text::sprintf('JERROR_LOADING_MENUS'$databaseException->getMessage()), 'warning');
  1.      * @since   1.5
  2.      */
  3.     public function getMenu()
  4.     {
  5.         if (!$this->itemsLoaded) {
  6.             $this->load();
  7.             foreach ($this->items as $item) {
  8.                 if ($item->home) {
  9.                     $this->default[trim($item->language)] = $item->id;
  10.                 }
  1.      */
  2.     public function getItem($id)
  3.     {
  4.         $result null;
  5.         if (isset($this->getMenu()[$id])) {
  6.             $result = &$this->getMenu()[$id];
  7.         }
  8.         return $result;
  9.     }
  1.         // Get the id of the active menu item
  2.         $menu $this->getMenu();
  3.         $item $menu->getActive();
  4.         if (!$item) {
  5.             $item $menu->getItem($this->input->getInt('Itemid'null));
  6.         }
  7.         $id 0;
  8.         if (\is_object($item)) {
  1.     public function render(\Throwable $error): string
  2.     {
  3.         $app Factory::getApplication();
  4.         // Get the current template from the application
  5.         $template $app->getTemplate(true);
  6.         // Push the error object into the document
  7.         $this->getDocument()->setError($error);
  8.         // Add registry file for the template asset
HtmlRenderer->render(object(Error)) in /home/enpeiraiei/public_html/libraries/src/Exception/ExceptionHandler.php (line 126)
  1.             // Reset the document object in the factory, this gives us a clean slate and lets everything render properly
  2.             Factory::$document $renderer->getDocument();
  3.             Factory::getApplication()->loadDocument(Factory::$document);
  4.             $data $renderer->render($error);
  5.             // If nothing was rendered, just use the message from the Exception
  6.             if (empty($data)) {
  7.                 $data $error->getMessage();
  8.             }
ExceptionHandler::render(object(Error)) in /home/enpeiraiei/public_html/libraries/src/Exception/ExceptionHandler.php (line 72)
  1.      * @since   3.10.0
  2.      */
  3.     public static function handleException(\Throwable $error)
  4.     {
  5.         static::logException($error);
  6.         static::render($error);
  7.     }
  8.     /**
  9.      * Render the error page based on an exception.
  10.      *
ExceptionHandler::handleException(object(Error)) in /home/enpeiraiei/public_html/libraries/src/Application/CMSApplication.php (line 322)
  1.             );
  2.             // Trigger the onError event.
  3.             $this->triggerEvent('onError'$event);
  4.             ExceptionHandler::handleException($event->getError());
  5.         }
  6.         // Trigger the onBeforeRespond event.
  7.         $this->getDispatcher()->dispatch('onBeforeRespond');
CMSApplication->execute() in /home/enpeiraiei/public_html/includes/app.php (line 61)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/home/enpeiraiei/public_html/includes/app.php') in /home/enpeiraiei/public_html/index.php (line 32)
  1.  * define() is used rather than "const" to not error for PHP 5.2 and lower
  2.  */
  3. define('_JEXEC'1);
  4. // Run the application - All executable code should be triggered through this file
  5. require_once dirname(__FILE__) . '/includes/app.php';

Error

Failed opening required '/home/enpeiraiei/public_html/administrator/cache/autoload_psr4.php' (include_path='.:/opt/cpanel/ea-php82/root/usr/share/pear')

  1.     {
  2.         if (!$this->exists()) {
  3.             $this->create();
  4.         }
  5.         $map $this->cachedMap ?: require $this->file;
  6.         $loader = include JPATH_LIBRARIES '/vendor/autoload.php';
  7.         foreach ($map as $namespace => $path) {
  8.             $loader->setPsr4($namespace$path);
  1.      */
  2.     public function createExtensionNamespaceMap()
  3.     {
  4.         \JLoader::register('JNamespacePsr4Map'JPATH_LIBRARIES '/namespacemap.php');
  5.         $extensionPsr4Loader = new \JNamespacePsr4Map();
  6.         $extensionPsr4Loader->load();
  7.     }
  8. }
CMSApplication->createExtensionNamespaceMap() in /home/enpeiraiei/public_html/libraries/src/Application/CMSApplication.php (line 290)
  1.     public function execute()
  2.     {
  3.         try {
  4.             $this->sanityCheckSystemVariables();
  5.             $this->setupLogging();
  6.             $this->createExtensionNamespaceMap();
  7.             // Perform application routines.
  8.             $this->doExecute();
  9.             // If we have an application document object, render it.
CMSApplication->execute() in /home/enpeiraiei/public_html/includes/app.php (line 61)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/home/enpeiraiei/public_html/includes/app.php') in /home/enpeiraiei/public_html/index.php (line 32)
  1.  * define() is used rather than "const" to not error for PHP 5.2 and lower
  2.  */
  3. define('_JEXEC'1);
  4. // Run the application - All executable code should be triggered through this file
  5. require_once dirname(__FILE__) . '/includes/app.php';

Stack Traces 2

[2/2] mysqli_sql_exception
mysqli_sql_exception:
Access denied for user 'enpeiraiei_user'@'localhost' to database 'enpeiraiei_db1'

  at /home/enpeiraiei/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:886
  at mysqli->select_db('enpeiraiei_db1')
     (/home/enpeiraiei/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:886)
  at Joomla\Database\Mysqli\MysqliDriver->select('enpeiraiei_db1')
     (/home/enpeiraiei/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:339)
  at Joomla\Database\Mysqli\MysqliDriver->connect()
     (/home/enpeiraiei/public_html/libraries/vendor/joomla/database/src/DatabaseDriver.php:1866)
  at Joomla\Database\DatabaseDriver->setQuery(object(MysqliQuery))
     (/home/enpeiraiei/public_html/libraries/src/Menu/SiteMenu.php:166)
  at Joomla\CMS\Menu\SiteMenu->Joomla\CMS\Menu\{closure}()
     (/home/enpeiraiei/public_html/libraries/src/Cache/Controller/CallbackController.php:51)
  at Joomla\CMS\Cache\Controller\CallbackController->get(object(Closure), array(), 'd17e8e13b99b4d9bf23a7d0b83a466c3', false)
     (/home/enpeiraiei/public_html/libraries/src/Menu/SiteMenu.php:179)
  at Joomla\CMS\Menu\SiteMenu->load()
     (/home/enpeiraiei/public_html/libraries/src/Menu/AbstractMenu.php:333)
  at Joomla\CMS\Menu\AbstractMenu->getMenu()
     (/home/enpeiraiei/public_html/libraries/src/Menu/AbstractMenu.php:164)
  at Joomla\CMS\Menu\AbstractMenu->getItem(null)
     (/home/enpeiraiei/public_html/libraries/src/Application/SiteApplication.php:422)
  at Joomla\CMS\Application\SiteApplication->getTemplate(true)
     (/home/enpeiraiei/public_html/libraries/src/Error/Renderer/HtmlRenderer.php:50)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(Error))
     (/home/enpeiraiei/public_html/libraries/src/Exception/ExceptionHandler.php:126)
  at Joomla\CMS\Exception\ExceptionHandler::render(object(Error))
     (/home/enpeiraiei/public_html/libraries/src/Exception/ExceptionHandler.php:72)
  at Joomla\CMS\Exception\ExceptionHandler::handleException(object(Error))
     (/home/enpeiraiei/public_html/libraries/src/Application/CMSApplication.php:322)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home/enpeiraiei/public_html/includes/app.php:61)
  at require_once('/home/enpeiraiei/public_html/includes/app.php')
     (/home/enpeiraiei/public_html/index.php:32)                
[1/2] Error
Error:
Failed opening required '/home/enpeiraiei/public_html/administrator/cache/autoload_psr4.php' (include_path='.:/opt/cpanel/ea-php82/root/usr/share/pear')

  at /home/enpeiraiei/public_html/libraries/namespacemap.php:104
  at JNamespacePsr4Map->load()
     (/home/enpeiraiei/public_html/libraries/src/Application/ExtensionNamespaceMapper.php:34)
  at Joomla\CMS\Application\CMSApplication->createExtensionNamespaceMap()
     (/home/enpeiraiei/public_html/libraries/src/Application/CMSApplication.php:290)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home/enpeiraiei/public_html/includes/app.php:61)
  at require_once('/home/enpeiraiei/public_html/includes/app.php')
     (/home/enpeiraiei/public_html/index.php:32)