}
}
// Validate the cache storage is supported on this platform
if (!$class::isSupported()) {
throw new UnsupportedCacheException(sprintf('The %s Cache Storage is not supported on this platform.', $handler));
}
return new $class($options);
}
if (isset(self::$_handler[$hash])) {
return self::$_handler[$hash];
}
self::$_handler[$hash] = CacheStorage::getInstance($this->_options['storage'], $this->_options);
return self::$_handler[$hash];
}
/**
}
// Get the default group
$group = $group ?: $this->_options['defaultgroup'];
return $this->_getStorage()->contains($id, $group);
}
/**
* Get cached data by ID and group
*
*
* @since 1.7.0
*/
public function __call($name, $arguments)
{
return \call_user_func_array([$this->cache, $name], $arguments);
}
/**
* Returns a reference to a cache adapter object, always creating it
*
$tag = '';
}
$cacheId = 'templates0' . $tag;
if ($cache->contains($cacheId)) {
$templates = $cache->get($cacheId);
} else {
$templates = $this->bootComponent('templates')->getMVCFactory()
->createModel('Style', 'Administrator')->getSiteTemplates();
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
// Reset the document object in the factory, this gives us a clean slate and lets everything render properly
Factory::$document = $renderer->getDocument();
Factory::getApplication()->loadDocument(Factory::$document);
$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->triggerEvent('onError', $event);
ExceptionHandler::handleException($event->getError());
}
// Trigger the onBeforeRespond event.
$this->getDispatcher()->dispatch('onBeforeRespond');
// Set the application as global app
\Joomla\CMS\Factory::$application = $app;
// Execute the application.
$app->execute();
* define() is used rather than "const" to not error for PHP 5.2 and lower
*/
define('_JEXEC', 1);
// Run the application - All executable code should be triggered through this file
require_once dirname(__FILE__) . '/includes/app.php';
}
}
// Validate the cache storage is supported on this platform
if (!$class::isSupported()) {
throw new UnsupportedCacheException(sprintf('The %s Cache Storage is not supported on this platform.', $handler));
}
return new $class($options);
}
if (isset(self::$_handler[$hash])) {
return self::$_handler[$hash];
}
self::$_handler[$hash] = CacheStorage::getInstance($this->_options['storage'], $this->_options);
return self::$_handler[$hash];
}
/**
}
// Get the default group
$group = $group ?: $this->_options['defaultgroup'];
return $this->_getStorage()->contains($id, $group);
}
/**
* Get cached data by ID and group
*
*
* @since 1.7.0
*/
public function __call($name, $arguments)
{
return \call_user_func_array([$this->cache, $name], $arguments);
}
/**
* Returns a reference to a cache adapter object, always creating it
*
} else {
/** @var OutputController $cache */
$cache = Factory::getContainer()->get(CacheControllerFactoryInterface::class)
->createCacheController('output', ['defaultgroup' => 'com_languages']);
if ($cache->contains('languages')) {
$languages = $cache->get('languages');
} else {
$db = Factory::getDbo();
$query = $db->getQuery(true)
->select('*')
$menus = $this->getMenu();
$menu = $menus->getActive();
// Get language
$lang_code = $this->getLanguage()->getTag();
$languages = LanguageHelper::getLanguages('lang_code');
$title = $this->get('sitename');
if (isset($languages[$lang_code]) && $languages[$lang_code]->metadesc) {
$description = $languages[$lang_code]->metadesc;
// Load the document to the API
$this->loadDocument();
// Set up the params
$document = $this->getDocument();
$params = $this->getParams();
// Register the document object with Factory
Factory::$document = $document;
switch ($document->getType()) {
*/
$this->checkUserRequireReset('com_users', 'profile', 'edit', 'com_users/profile.save,com_users/profile.apply,com_users/user.logout');
}
// Dispatch the application
$this->dispatch();
// Mark afterDispatch in the profiler.
JDEBUG ? $this->profiler->mark('afterDispatch') : null;
}
$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();
* define() is used rather than "const" to not error for PHP 5.2 and lower
*/
define('_JEXEC', 1);
// Run the application - All executable code should be triggered through this file
require_once dirname(__FILE__) . '/includes/app.php';
[2/2]
UnsupportedCacheException
|
---|
Joomla\CMS\Cache\Exception\UnsupportedCacheException: The memcached Cache Storage is not supported on this platform. at /var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/libraries/src/Cache/CacheStorage.php:178 at Joomla\CMS\Cache\CacheStorage::getInstance() (/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/libraries/src/Cache/Cache.php:481) at Joomla\CMS\Cache\Cache->_getStorage() (/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/libraries/src/Cache/Cache.php:209) at Joomla\CMS\Cache\Cache->contains() (/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/libraries/src/Cache/CacheController.php:75) at Joomla\CMS\Cache\CacheController->__call() (/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/libraries/src/Application/SiteApplication.php:449) at Joomla\CMS\Application\SiteApplication->getTemplate() (/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/libraries/src/Error/Renderer/HtmlRenderer.php:50) at Joomla\CMS\Error\Renderer\HtmlRenderer->render() (/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/libraries/src/Exception/ExceptionHandler.php:126) at Joomla\CMS\Exception\ExceptionHandler::render() (/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/libraries/src/Exception/ExceptionHandler.php:72) at Joomla\CMS\Exception\ExceptionHandler::handleException() (/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/libraries/src/Application/CMSApplication.php:322) at Joomla\CMS\Application\CMSApplication->execute() (/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/includes/app.php:61) at require_once('/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/includes/app.php') (/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/index.php:32) |
[1/2]
UnsupportedCacheException
|
---|
Joomla\CMS\Cache\Exception\UnsupportedCacheException: The memcached Cache Storage is not supported on this platform. at /var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/libraries/src/Cache/CacheStorage.php:178 at Joomla\CMS\Cache\CacheStorage::getInstance() (/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/libraries/src/Cache/Cache.php:481) at Joomla\CMS\Cache\Cache->_getStorage() (/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/libraries/src/Cache/Cache.php:209) at Joomla\CMS\Cache\Cache->contains() (/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/libraries/src/Cache/CacheController.php:75) at Joomla\CMS\Cache\CacheController->__call() (/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/libraries/src/Language/LanguageHelper.php:131) at Joomla\CMS\Language\LanguageHelper::getLanguages() (/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/libraries/src/Application/SiteApplication.php:313) at Joomla\CMS\Application\SiteApplication->getParams() (/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/libraries/src/Application/SiteApplication.php:158) at Joomla\CMS\Application\SiteApplication->dispatch() (/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/libraries/src/Application/SiteApplication.php:249) at Joomla\CMS\Application\SiteApplication->doExecute() (/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/libraries/src/Application/CMSApplication.php:293) at Joomla\CMS\Application\CMSApplication->execute() (/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/includes/app.php:61) at require_once('/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/includes/app.php') (/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/index.php:32) |