Error Error

HTTP 500 Whoops, looks like something went wrong.

mysqli object is not fully initialized

Exceptions 2

Error

  1. return str_replace(',', '.', (string) $text);
  2. }
  3. $this->connect();
  4. $result = $this->connection->real_escape_string((string) $text);
  5. if ($extra) {
  6. $result = addcslashes($result, '%_');
  7. }
  1. return str_replace(',', '.', (string) $text);
  2. }
  3. $this->connect();
  4. $result = $this->connection->real_escape_string((string) $text);
  5. if ($extra) {
  6. $result = addcslashes($result, '%_');
  7. }
  1. }
  2. return $text;
  3. }
  4. return '\'' . ($escape ? $this->escape($text) : $text) . '\'';
  5. }
  6. /**
  7. * Quotes a binary string to database requirements for use in database queries.
  8. *
  1. )
  2. ->join(
  3. 'LEFT',
  4. $db->quoteName('#__extensions', 'e'),
  5. $db->quoteName('e.element') . ' = ' . $db->quoteName('s.template')
  6. . ' AND ' . $db->quoteName('e.type') . ' = ' . $db->quote('template')
  7. . ' AND ' . $db->quoteName('e.client_id') . ' = ' . $db->quoteName('s.client_id')
  8. );
  9. $db->setQuery($query);
  1. if ($cache->contains($cacheId)) {
  2. $templates = $cache->get($cacheId);
  3. } else {
  4. $templates = $this->bootComponent('templates')->getMVCFactory()
  5. ->createModel('Style', 'Administrator')->getSiteTemplates();
  6. foreach ($templates as &$template) {
  7. // Create home element
  8. if ($template->home == 1 && !isset($template_home) || $this->getLanguageFilter() && $template->home == $tag) {
  9. $template_home = clone $template;
  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
  1. 'subject' => $app,
  2. 'document' => $renderer->getDocument(),
  3. ])
  4. );
  5. $data = $renderer->render($error);
  6. // If nothing was rendered, just use the message from the Exception
  7. if (empty($data)) {
  8. $data = $error->getMessage();
  9. }
  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() in /var/www/html/rubicsisorg/libraries/src/Application/CMSApplication.php (line 334)
  1. );
  2. // Trigger the onError event.
  3. $this->dispatchEvent('onError', $event);
  4. ExceptionHandler::handleException($event->getError());
  5. }
  6. // Trigger the onBeforeRespond event.
  7. $this->dispatchEvent(
  8. 'onBeforeRespond',
CMSApplication->execute() in /var/www/html/rubicsisorg/includes/app.php (line 58)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application = $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/var/www/html/rubicsisorg/includes/app.php') in /var/www/html/rubicsisorg/index.php (line 54)
  1. // ... die
  2. die();
  3. }
  4. // Run the application - All executable code should be triggered through this file
  5. require_once __DIR__ . '/includes/app.php';

Error

mysqli object is not fully initialized

  1. return str_replace(',', '.', (string) $text);
  2. }
  3. $this->connect();
  4. $result = $this->connection->real_escape_string((string) $text);
  5. if ($extra) {
  6. $result = addcslashes($result, '%_');
  7. }
  1. return str_replace(',', '.', (string) $text);
  2. }
  3. $this->connect();
  4. $result = $this->connection->real_escape_string((string) $text);
  5. if ($extra) {
  6. $result = addcslashes($result, '%_');
  7. }
  1. }
  2. return $text;
  3. }
  4. return '\'' . ($escape ? $this->escape($text) : $text) . '\'';
  5. }
  6. /**
  7. * Quotes a binary string to database requirements for use in database queries.
  8. *
  1. if (is_bool($value)) {
  2. return (int) $value;
  3. }
  4. return $this->db->quote($value);
  5. }
  6. /**
  7. * Serialize the values.
  8. *
  1. $operator = Operators::BETWEEN;
  2. return $this->quoteNameWithPrefix($column) . " {$operator} " . $this->serialize($value[0]) . ' AND ' . $this->serialize($value[1]);
  3. }
  4. // Handle where('name', 'like', '%value%')
  5. return $this->quoteNameWithPrefix($column) . ' ' . $operator . ' ' . $this->serialize($value);
  6. }
  7. /**
  8. * Prepare the query for getting data from database.
  9. *
  1. * @return self
  2. * @since 5.5.0
  3. */
  4. public function where($column, $operator = Operators::EQUAL, $value = null)
  5. {
  6. $this->query->where($this->buildWhere($column, $operator, $value));
  7. return $this;
  8. }
  9. /**
  10. * Performing the NOT where conditions.
  1. * @return QueryBuilder
  2. * @since 5.5.0
  3. */
  4. public static function __callStatic($name, $arguments)
  5. {
  6. return (new static)->newQuery()->$name(...$arguments);
  7. }
  8. /**
  9. * Create a new query builder instance
  10. *
  1. if (preg_match('/^article-(\d+)$/', $slug, $matches)) {
  2. return (int) $matches[1];
  3. }
  4. $aliasFields = CollectionField::where('type', FieldTypes::ALIAS)->get(['id']);
  5. $aliasFieldIds = Arr::make($aliasFields)->pluck('id')->toArray();
  6. if (!empty($aliasFieldIds)) {
  7. $aliasField = CollectionItemValue::whereIn('field_id', $aliasFieldIds)
  8. ->where('value', $slug)
SppagebuilderRouterBase::getCollectionItemIdFromSlug() in /var/www/html/rubicsisorg/components/com_sppagebuilder/router.php (line 234)
  1. if (empty($slugs)) {
  2. return [];
  3. }
  4. return Arr::make($slugs)->map(function ($slug) {
  5. return static::getCollectionItemIdFromSlug($slug);
  6. })->toArray();
  7. }
  8. private static function getCollectionItemIdFromSlug($slug)
  9. {
  1. public function map(callable $callable): self
  2. {
  3. $newArray = [];
  4. foreach ($this->items as $index => $value) {
  5. $newArray[] = $callable($value, $index);
  6. }
  7. return new static($newArray);
  8. }
  1. {
  2. if (empty($slugs)) {
  3. return [];
  4. }
  5. return Arr::make($slugs)->map(function ($slug) {
  6. return static::getCollectionItemIdFromSlug($slug);
  7. })->toArray();
  8. }
  9. private static function getCollectionItemIdFromSlug($slug)
SppagebuilderRouterBase::getCollectionItemIdsFromSlugs() in /var/www/html/rubicsisorg/components/com_sppagebuilder/router.php (line 197)
  1. }
  2. // determine collection type based on alias
  3. $collectionType = static::getCollectionTypeFromAlias($segments[0]);
  4. $collectionItemIds = static::getCollectionItemIdsFromSlugs($segments);
  5. $isValidCollectionPage = false;
  6. if (isset($collectionItemIds)) {
  7. $collectionArray = Arr::make($collectionItemIds);
SppagebuilderRouterBase::parseRoute() in /var/www/html/rubicsisorg/components/com_sppagebuilder/router.php (line 590)
  1. return $segments;
  2. }
  3. public function parse(&$segments)
  4. {
  5. $vars = SppagebuilderRouterBase::parseRoute($segments);
  6. if (count($vars))
  7. {
  8. $segments = array();
  9. }
SppagebuilderRouter->parse() in /var/www/html/rubicsisorg/libraries/src/Router/SiteRouter.php (line 287)
  1. if (\count($segments)) {
  2. // Handle component route
  3. $component = preg_replace('/[^A-Z0-9_\.-]/i', '', $uri->getVar('option'));
  4. $crouter = $this->getComponentRouter($component);
  5. $uri->setQuery(array_merge($uri->getQuery(true), $crouter->parse($segments)));
  6. }
  7. $route = implode('/', $segments);
  8. }
SiteRouter->parseSefRoute() in /var/www/html/rubicsisorg/libraries/src/Router/Router.php (line 423)
  1. if (!\array_key_exists('parse' . $stage, $this->rules)) {
  2. throw new \InvalidArgumentException(\sprintf('The %s stage is not registered. (%s)', $stage, __METHOD__));
  3. }
  4. foreach ($this->rules['parse' . $stage] as $rule) {
  5. $rule($this, $uri);
  6. }
  7. }
  8. /**
  9. * Process the build uri query data based on custom defined rules
Router->processParseRules() in /var/www/html/rubicsisorg/libraries/src/Router/Router.php (line 158)
  1. // Do the preprocess stage of the URL parse process
  2. $this->processParseRules($uri, self::PROCESS_BEFORE);
  3. // Do the main stage of the URL parse process
  4. $this->processParseRules($uri);
  5. // Do the postprocess stage of the URL parse process
  6. $this->processParseRules($uri, self::PROCESS_AFTER);
  7. // Check if all parts of the URL have been parsed.
  1. // Get the full request URI.
  2. $uri = clone Uri::getInstance();
  3. // It is not possible to inject the SiteRouter as it requires a SiteApplication
  4. // and we would end in an infinite loop
  5. $result = $this->getContainer()->get(SiteRouter::class)->parse($uri, true);
  6. $active = $this->getMenu()->getActive();
  7. if (
  8. $active !== null
  1. // Mark afterInitialise in the profiler.
  2. JDEBUG ? $this->profiler->mark('afterInitialise') : null;
  3. // Route the application
  4. $this->route();
  5. // Mark afterRoute in the profiler.
  6. JDEBUG ? $this->profiler->mark('afterRoute') : null;
  7. if (!$this->isHandlingMultiFactorAuthentication()) {
  1. $this->sanityCheckSystemVariables();
  2. $this->setupLogging();
  3. $this->createExtensionNamespaceMap();
  4. // Perform application routines.
  5. $this->doExecute();
  6. // If we have an application document object, render it.
  7. if ($this->document instanceof \Joomla\CMS\Document\Document) {
  8. // Render the application output.
  9. $this->render();
CMSApplication->execute() in /var/www/html/rubicsisorg/includes/app.php (line 58)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application = $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/var/www/html/rubicsisorg/includes/app.php') in /var/www/html/rubicsisorg/index.php (line 54)
  1. // ... die
  2. die();
  3. }
  4. // Run the application - All executable code should be triggered through this file
  5. require_once __DIR__ . '/includes/app.php';

Stack Traces 2

[2/2] Error
Error:
mysqli object is not fully initialized

  at /var/www/html/rubicsisorg/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:347
  at mysqli->real_escape_string()
     (/var/www/html/rubicsisorg/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:347)
  at Joomla\Database\Mysqli\MysqliDriver->escape()
     (/var/www/html/rubicsisorg/libraries/vendor/joomla/database/src/DatabaseDriver.php:1467)
  at Joomla\Database\DatabaseDriver->quote()
     (/var/www/html/rubicsisorg/administrator/components/com_templates/src/Model/StyleModel.php:712)
  at Joomla\Component\Templates\Administrator\Model\StyleModel->getSiteTemplates()
     (/var/www/html/rubicsisorg/libraries/src/Application/SiteApplication.php:460)
  at Joomla\CMS\Application\SiteApplication->getTemplate()
     (/var/www/html/rubicsisorg/libraries/src/Error/Renderer/HtmlRenderer.php:50)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render()
     (/var/www/html/rubicsisorg/libraries/src/Exception/ExceptionHandler.php:139)
  at Joomla\CMS\Exception\ExceptionHandler::render()
     (/var/www/html/rubicsisorg/libraries/src/Exception/ExceptionHandler.php:73)
  at Joomla\CMS\Exception\ExceptionHandler::handleException()
     (/var/www/html/rubicsisorg/libraries/src/Application/CMSApplication.php:334)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/var/www/html/rubicsisorg/includes/app.php:58)
  at require_once('/var/www/html/rubicsisorg/includes/app.php')
     (/var/www/html/rubicsisorg/index.php:54)                
[1/2] Error
Error:
mysqli object is not fully initialized

  at /var/www/html/rubicsisorg/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:347
  at mysqli->real_escape_string()
     (/var/www/html/rubicsisorg/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:347)
  at Joomla\Database\Mysqli\MysqliDriver->escape()
     (/var/www/html/rubicsisorg/libraries/vendor/joomla/database/src/DatabaseDriver.php:1467)
  at Joomla\Database\DatabaseDriver->quote()
     (/var/www/html/rubicsisorg/administrator/components/com_sppagebuilder/dynamic-content/QueryBuilder.php:1280)
  at JoomShaper\SPPageBuilder\DynamicContent\QueryBuilder->serialize()
     (/var/www/html/rubicsisorg/administrator/components/com_sppagebuilder/dynamic-content/QueryBuilder.php:1221)
  at JoomShaper\SPPageBuilder\DynamicContent\QueryBuilder->buildWhere()
     (/var/www/html/rubicsisorg/administrator/components/com_sppagebuilder/dynamic-content/QueryBuilder.php:319)
  at JoomShaper\SPPageBuilder\DynamicContent\QueryBuilder->where()
     (/var/www/html/rubicsisorg/administrator/components/com_sppagebuilder/dynamic-content/Model.php:313)
  at JoomShaper\SPPageBuilder\DynamicContent\Model::__callStatic()
     (/var/www/html/rubicsisorg/components/com_sppagebuilder/router.php:260)
  at SppagebuilderRouterBase::getCollectionItemIdFromSlug()
     (/var/www/html/rubicsisorg/components/com_sppagebuilder/router.php:234)
  at SppagebuilderRouterBase::{closure}()
     (/var/www/html/rubicsisorg/administrator/components/com_sppagebuilder/dynamic-content/Supports/Arr.php:234)
  at JoomShaper\SPPageBuilder\DynamicContent\Supports\Arr->map()
     (/var/www/html/rubicsisorg/components/com_sppagebuilder/router.php:233)
  at SppagebuilderRouterBase::getCollectionItemIdsFromSlugs()
     (/var/www/html/rubicsisorg/components/com_sppagebuilder/router.php:197)
  at SppagebuilderRouterBase::parseRoute()
     (/var/www/html/rubicsisorg/components/com_sppagebuilder/router.php:590)
  at SppagebuilderRouter->parse()
     (/var/www/html/rubicsisorg/libraries/src/Router/SiteRouter.php:287)
  at Joomla\CMS\Router\SiteRouter->parseSefRoute()
     (/var/www/html/rubicsisorg/libraries/src/Router/Router.php:423)
  at Joomla\CMS\Router\Router->processParseRules()
     (/var/www/html/rubicsisorg/libraries/src/Router/Router.php:158)
  at Joomla\CMS\Router\Router->parse()
     (/var/www/html/rubicsisorg/libraries/src/Application/SiteApplication.php:767)
  at Joomla\CMS\Application\SiteApplication->route()
     (/var/www/html/rubicsisorg/libraries/src/Application/SiteApplication.php:243)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/var/www/html/rubicsisorg/libraries/src/Application/CMSApplication.php:304)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/var/www/html/rubicsisorg/includes/app.php:58)
  at require_once('/var/www/html/rubicsisorg/includes/app.php')
     (/var/www/html/rubicsisorg/index.php:54)                
An Error Occurred: Whoops, looks like something went wrong.

Sorry, there was a problem we could not recover from.

The server returned a "500 - Whoops, looks like something went wrong."

Help me resolve this