return str_replace(',', '.', (string) $text); } $this->connect(); $result = $this->connection->real_escape_string((string) $text); if ($extra) { $result = addcslashes($result, '%_'); } return str_replace(',', '.', (string) $text); } $this->connect(); $result = $this->connection->real_escape_string((string) $text); if ($extra) { $result = addcslashes($result, '%_'); } } return $text; } return '\'' . ($escape ? $this->escape($text) : $text) . '\''; } /** * Quotes a binary string to database requirements for use in database queries. * ) ->join( 'LEFT', $db->quoteName('#__extensions', 'e'), $db->quoteName('e.element') . ' = ' . $db->quoteName('s.template') . ' AND ' . $db->quoteName('e.type') . ' = ' . $db->quote('template') . ' AND ' . $db->quoteName('e.client_id') . ' = ' . $db->quoteName('s.client_id') ); $db->setQuery($query); if ($cache->contains($cacheId)) { $templates = $cache->get($cacheId); } else { $templates = $this->bootComponent('templates')->getMVCFactory() ->createModel('Style', 'Administrator')->getSiteTemplates(); foreach ($templates as &$template) { // Create home element if ($template->home == 1 && !isset($template_home) || $this->getLanguageFilter() && $template->home == $tag) { $template_home = clone $template; public function render(\Throwable $error): string { $app = Factory::getApplication(); // Get the current template from the application $template = $app->getTemplate(true); // Push the error object into the document $this->getDocument()->setError($error); // Add registry file for the template asset 'subject' => $app, 'document' => $renderer->getDocument(), ]) ); $data = $renderer->render($error); // If nothing was rendered, just use the message from the Exception if (empty($data)) { $data = $error->getMessage(); } * @since 3.10.0 */ public static function handleException(\Throwable $error) { static::logException($error); static::render($error); } /** * Render the error page based on an exception. * ); // Trigger the onError event. $this->dispatchEvent('onError', $event); ExceptionHandler::handleException($event->getError()); } // Trigger the onBeforeRespond event. $this->dispatchEvent( 'onBeforeRespond',// Set the application as global app\Joomla\CMS\Factory::$application = $app;// Execute the application.$app->execute(); // ... die die();}// Run the application - All executable code should be triggered through this filerequire_once __DIR__ . '/includes/app.php'; return str_replace(',', '.', (string) $text); } $this->connect(); $result = $this->connection->real_escape_string((string) $text); if ($extra) { $result = addcslashes($result, '%_'); } return str_replace(',', '.', (string) $text); } $this->connect(); $result = $this->connection->real_escape_string((string) $text); if ($extra) { $result = addcslashes($result, '%_'); } } return $text; } return '\'' . ($escape ? $this->escape($text) : $text) . '\''; } /** * Quotes a binary string to database requirements for use in database queries. * if (is_bool($value)) { return (int) $value; } return $this->db->quote($value); } /** * Serialize the values. * $operator = Operators::BETWEEN; return $this->quoteNameWithPrefix($column) . " {$operator} " . $this->serialize($value[0]) . ' AND ' . $this->serialize($value[1]); } // Handle where('name', 'like', '%value%') return $this->quoteNameWithPrefix($column) . ' ' . $operator . ' ' . $this->serialize($value); } /** * Prepare the query for getting data from database. * * @return self * @since 5.5.0 */ public function where($column, $operator = Operators::EQUAL, $value = null) { $this->query->where($this->buildWhere($column, $operator, $value)); return $this; } /** * Performing the NOT where conditions. * @return QueryBuilder * @since 5.5.0 */ public static function __callStatic($name, $arguments) { return (new static)->newQuery()->$name(...$arguments); } /** * Create a new query builder instance * if (preg_match('/^article-(\d+)$/', $slug, $matches)) { return (int) $matches[1]; } $aliasFields = CollectionField::where('type', FieldTypes::ALIAS)->get(['id']); $aliasFieldIds = Arr::make($aliasFields)->pluck('id')->toArray(); if (!empty($aliasFieldIds)) { $aliasField = CollectionItemValue::whereIn('field_id', $aliasFieldIds) ->where('value', $slug) if (empty($slugs)) { return []; } return Arr::make($slugs)->map(function ($slug) { return static::getCollectionItemIdFromSlug($slug); })->toArray(); } private static function getCollectionItemIdFromSlug($slug) { public function map(callable $callable): self { $newArray = []; foreach ($this->items as $index => $value) { $newArray[] = $callable($value, $index); } return new static($newArray); } { if (empty($slugs)) { return []; } return Arr::make($slugs)->map(function ($slug) { return static::getCollectionItemIdFromSlug($slug); })->toArray(); } private static function getCollectionItemIdFromSlug($slug) } // determine collection type based on alias $collectionType = static::getCollectionTypeFromAlias($segments[0]); $collectionItemIds = static::getCollectionItemIdsFromSlugs($segments); $isValidCollectionPage = false; if (isset($collectionItemIds)) { $collectionArray = Arr::make($collectionItemIds); return $segments; } public function parse(&$segments) { $vars = SppagebuilderRouterBase::parseRoute($segments); if (count($vars)) { $segments = array(); } if (\count($segments)) { // Handle component route $component = preg_replace('/[^A-Z0-9_\.-]/i', '', $uri->getVar('option')); $crouter = $this->getComponentRouter($component); $uri->setQuery(array_merge($uri->getQuery(true), $crouter->parse($segments))); } $route = implode('/', $segments); } if (!\array_key_exists('parse' . $stage, $this->rules)) { throw new \InvalidArgumentException(\sprintf('The %s stage is not registered. (%s)', $stage, __METHOD__)); } foreach ($this->rules['parse' . $stage] as $rule) { $rule($this, $uri); } } /** * Process the build uri query data based on custom defined rules // Do the preprocess stage of the URL parse process $this->processParseRules($uri, self::PROCESS_BEFORE); // Do the main stage of the URL parse process $this->processParseRules($uri); // Do the postprocess stage of the URL parse process $this->processParseRules($uri, self::PROCESS_AFTER); // Check if all parts of the URL have been parsed. // Get the full request URI. $uri = clone Uri::getInstance(); // It is not possible to inject the SiteRouter as it requires a SiteApplication // and we would end in an infinite loop $result = $this->getContainer()->get(SiteRouter::class)->parse($uri, true); $active = $this->getMenu()->getActive(); if ( $active !== null // Mark afterInitialise in the profiler. JDEBUG ? $this->profiler->mark('afterInitialise') : null; // Route the application $this->route(); // Mark afterRoute in the profiler. JDEBUG ? $this->profiler->mark('afterRoute') : null; if (!$this->isHandlingMultiFactorAuthentication()) { $this->sanityCheckSystemVariables(); $this->setupLogging(); $this->createExtensionNamespaceMap(); // Perform application routines. $this->doExecute(); // If we have an application document object, render it. if ($this->document instanceof \Joomla\CMS\Document\Document) { // Render the application output. $this->render();// Set the application as global app\Joomla\CMS\Factory::$application = $app;// Execute the application.$app->execute(); // ... die die();}// Run the application - All executable code should be triggered through this filerequire_once __DIR__ . '/includes/app.php';|
[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)
|