}
}
// 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';
}
$lang = Factory::getLanguage();
$lang->load("com_jevents", JPATH_ADMINISTRATOR);
if (strpos($task, '.') == false) {
throw new Exception(Text::_('COM_JEVENTS_UNKNOWN_TASK'), 404);
return false;
}
list($controllerName, $cmd) = explode('.', $task);
$controllerName = strtolower($controllerName);
for ($i = 0; $i < $total; $i++) {
$segments[$i] = preg_replace('/-/', ':', $segments[$i], 1);
}
return $function($segments);
}
return [];
}
}
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();
* 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]
Exception
|
---|
Exception: Unknown Task at /var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/components/com_jevents/router.php:597 at JEventsParseRoute() (/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/libraries/src/Component/Router/RouterLegacy.php:104) at Joomla\CMS\Component\Router\RouterLegacy->parse() (/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/libraries/src/Router/SiteRouter.php:287) at Joomla\CMS\Router\SiteRouter->parseSefRoute() (/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/libraries/src/Router/Router.php:384) at Joomla\CMS\Router\Router->processParseRules() (/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/libraries/src/Router/Router.php:147) at Joomla\CMS\Router\Router->parse() (/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/libraries/src/Application/SiteApplication.php:746) at Joomla\CMS\Application\SiteApplication->route() (/var/www/vhosts/kirche-kirchdorf-langreder.de/httpdocs/libraries/src/Application/SiteApplication.php:232) 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) |