Exception UnknownAssetException

HTTP 500 Whoops, looks like something went wrong.

There is no "template.cassiopeia.ltr" asset of a "preset" type in the registry.

Exceptions 2

Joomla\CMS\WebAsset\Exception\ UnknownAssetException

  1.     {
  2.         // Check if any new file was added
  3.         $this->parseRegistryFiles();
  4.         if (empty($this->assets[$type][$name])) {
  5.             throw new UnknownAssetException(sprintf('There is no "%s" asset of a "%s" type in the registry.'$name$type));
  6.         }
  7.         return $this->assets[$type][$name];
  8.     }
  1.         if ($this->locked) {
  2.             throw new InvalidActionException('WebAssetManager is locked, you came late');
  3.         }
  4.         // Check whether asset exists
  5.         $asset $this->registry->get($type$name);
  6.         if (empty($this->activeAssets[$type])) {
  7.             $this->activeAssets[$type] = [];
  8.         }
  1.             if (empty($arguments[0])) {
  2.                 throw new \BadMethodCallException('An asset name is required');
  3.             }
  4.             return $this->useAsset($type$arguments[0]);
  5.         }
  6.         if (=== strpos($method'addinline')) {
  7.             $type substr($method9);
  1.     $wa->registerAndUseStyle($assetFontScheme$templatePath '/css/global/' $paramsFontScheme '.css');
  2.     $this->getPreloadManager()->prefetch($wa->getAsset('style'$assetFontScheme)->getUri(), ['as' => 'style']);
  3. }
  4. // Enable assets
  5. $wa->usePreset('template.cassiopeia.' . ($this->direction === 'rtl' 'rtl' 'ltr'))
  6.     ->useStyle('template.active.language')
  7.     ->useStyle('template.user')
  8.     ->useScript('template.user')
  9.     ->addInlineStyle(':root {
  10.         --hue: 214;
require('/home/sriflzwf/public_html/templates/sparky_framework/error.php') in /home/sriflzwf/public_html/libraries/src/Document/HtmlDocument.php (line 721)
  1.             // Store the file path
  2.             $this->_file $directory '/' $filename;
  3.             // Get the file content
  4.             ob_start();
  5.             require $directory '/' $filename;
  6.             $contents ob_get_contents();
  7.             ob_end_clean();
  8.         }
  9.         return $contents;
  1.         $this->baseurl  Uri::base(true);
  2.         $this->params   $params['params'] ?? new Registry();
  3.         $this->template $template;
  4.         // Load
  5.         $this->_template $this->_loadTemplate($baseDir$file);
  6.         return $this;
  7.     }
  8.     /**
  1.      *
  2.      * @since   1.7.0
  3.      */
  4.     public function parse($params = [])
  5.     {
  6.         return $this->_fetchTemplate($params)->_parseTemplate();
  7.     }
  8.     /**
  9.      * Outputs the template to the browser.
  10.      *
  1.     public function render($caching false$params = [])
  2.     {
  3.         $this->_caching $caching;
  4.         if (empty($this->_template)) {
  5.             $this->parse($params);
  6.         }
  7.         if (\array_key_exists('csp_nonce'$params) && $params['csp_nonce'] !== null) {
  8.             $this->cspNonce $params['csp_nonce'];
  9.         }
  1.         $this->debug $params['debug'] ?? false;
  2.         $this->error $this->_error;
  3.         $params['file'] = 'error.php';
  4.         return parent::render($cache$params);
  5.     }
  6.     /**
  7.      * Render the backtrace
  8.      *
  1.                 'template'         => $template->template,
  2.                 'directory'        => JPATH_THEMES,
  3.                 'debug'            => JDEBUG,
  4.                 'csp_nonce'        => $app->get('csp_nonce'),
  5.                 'templateInherits' => $template->parent,
  6.                 'params'           => $template->params,
  7.             ]
  8.         );
  9.     }
  10. }
  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.             }
  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 /home/sriflzwf/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/sriflzwf/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/sriflzwf/public_html/includes/app.php') in /home/sriflzwf/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';

Exception

We detected that your latest request may have been part of suspicious activity and has been blocked. If you believe you are getting this message in error please let us know through our site's contact form.

  1.         {
  2.             // Using Joomla!'s error page
  3.             $app->input->set('template'null);
  4.             $app->input->set('layout'null);
  5.             throw new Exception($message403);
  6.         }
  7.         // Using a view
  8.         $session $app->getSession();
  1.         if (!$block)
  2.         {
  3.             return;
  4.         }
  5.         $this->exceptionsHandler->blockRequest('template');
  6.     }
  7. }
  1.             if (!method_exists($o$name))
  2.             {
  3.                 continue;
  4.             }
  5.             $result[] = $o->{$name}(...$arguments);
  6.         }
  7.         return $result;
  8.     }
  1.         // We check for a Rescue URL before processing any other security rules.
  2.         $this->blockedRequestHandler->checkRescueURL();
  3.         $event->setArgument('result'array_merge(
  4.                 $event->getArgument('result', []),
  5.                 $this->runFeature('onAfterInitialise'))
  6.         );
  7.     }
  8.     public function onAfterRender(Event $event): void
  9.     {
  1.                 if ($event->isStopped())
  2.                 {
  3.                     return $event;
  4.                 }
  5.                 $listener($event);
  6.             }
  7.         }
  8.         return $event;
  9.     }
  1.             $event     = new $className($eventName$args);
  2.         } else {
  3.             throw new \InvalidArgumentException('The arguments must either be an event or an array');
  4.         }
  5.         $result $dispatcher->dispatch($eventName$event);
  6.         // @todo - There are still test cases where the result isn't defined, temporarily leave the isset check in place
  7.         return !isset($result['result']) || \is_null($result['result']) ? [] : $result['result'];
  8.     }
  9. }
  1.         // Load the behaviour plugins
  2.         PluginHelper::importPlugin('behaviour');
  3.         // Trigger the onAfterInitialise event.
  4.         PluginHelper::importPlugin('system');
  5.         $this->triggerEvent('onAfterInitialise');
  6.     }
  7.     /**
  8.      * Checks if HTTPS is forced in the client configuration.
  9.      *
  1.                 $options['language'] = 'en-GB';
  2.             }
  3.         }
  4.         // Finish initialisation
  5.         parent::initialiseApp($options);
  6.     }
  7.     /**
  8.      * Load the library language files for the application
  9.      *
  1.      * @since   3.2
  2.      */
  3.     protected function doExecute()
  4.     {
  5.         // Initialise the application
  6.         $this->initialiseApp();
  7.         // Mark afterInitialise in the profiler.
  8.         JDEBUG $this->profiler->mark('afterInitialise') : null;
  9.         // Route the application
  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 /home/sriflzwf/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/sriflzwf/public_html/includes/app.php') in /home/sriflzwf/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] UnknownAssetException
Joomla\CMS\WebAsset\Exception\UnknownAssetException:
There is no "template.cassiopeia.ltr" asset of a "preset" type in the registry.

  at /home/sriflzwf/public_html/libraries/src/WebAsset/WebAssetRegistry.php:134
  at Joomla\CMS\WebAsset\WebAssetRegistry->get()
     (/home/sriflzwf/public_html/libraries/src/WebAsset/WebAssetManager.php:263)
  at Joomla\CMS\WebAsset\WebAssetManager->useAsset()
     (/home/sriflzwf/public_html/libraries/src/WebAsset/WebAssetManager.php:197)
  at Joomla\CMS\WebAsset\WebAssetManager->__call()
     (/home/sriflzwf/public_html/templates/sparky_framework/error.php:58)
  at require('/home/sriflzwf/public_html/templates/sparky_framework/error.php')
     (/home/sriflzwf/public_html/libraries/src/Document/HtmlDocument.php:721)
  at Joomla\CMS\Document\HtmlDocument->_loadTemplate()
     (/home/sriflzwf/public_html/libraries/src/Document/HtmlDocument.php:776)
  at Joomla\CMS\Document\HtmlDocument->_fetchTemplate()
     (/home/sriflzwf/public_html/libraries/src/Document/HtmlDocument.php:612)
  at Joomla\CMS\Document\HtmlDocument->parse()
     (/home/sriflzwf/public_html/libraries/src/Document/HtmlDocument.php:630)
  at Joomla\CMS\Document\HtmlDocument->render()
     (/home/sriflzwf/public_html/libraries/src/Document/ErrorDocument.php:139)
  at Joomla\CMS\Document\ErrorDocument->render()
     (/home/sriflzwf/public_html/libraries/src/Error/Renderer/HtmlRenderer.php:78)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render()
     (/home/sriflzwf/public_html/libraries/src/Exception/ExceptionHandler.php:126)
  at Joomla\CMS\Exception\ExceptionHandler::render()
     (/home/sriflzwf/public_html/libraries/src/Exception/ExceptionHandler.php:72)
  at Joomla\CMS\Exception\ExceptionHandler::handleException()
     (/home/sriflzwf/public_html/libraries/src/Application/CMSApplication.php:322)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home/sriflzwf/public_html/includes/app.php:61)
  at require_once('/home/sriflzwf/public_html/includes/app.php')
     (/home/sriflzwf/public_html/index.php:32)                
[1/2] Exception
Exception:
We detected that your latest request may have been part of suspicious activity and has been blocked. If you believe you are getting this message in error please let us know through our site's contact form.

  at /home/sriflzwf/public_html/plugins/system/admintools/src/Utility/BlockedRequestHandler.php:174
  at Joomla\Plugin\System\AdminTools\Utility\BlockedRequestHandler->blockRequest()
     (/home/sriflzwf/public_html/plugins/system/admintools/src/Feature/TemplateSwitch.php:83)
  at Joomla\Plugin\System\AdminTools\Feature\TemplateSwitch->onAfterInitialise()
     (/home/sriflzwf/public_html/plugins/system/admintools/src/Extension/AdminTools.php:765)
  at Joomla\Plugin\System\AdminTools\Extension\AdminTools->runFeature()
     (/home/sriflzwf/public_html/plugins/system/admintools/src/Extension/AdminTools.php:252)
  at Joomla\Plugin\System\AdminTools\Extension\AdminTools->onAfterInitialise()
     (/home/sriflzwf/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:486)
  at Joomla\Event\Dispatcher->dispatch()
     (/home/sriflzwf/public_html/libraries/src/Application/EventAware.php:111)
  at Joomla\CMS\Application\WebApplication->triggerEvent()
     (/home/sriflzwf/public_html/libraries/src/Application/CMSApplication.php:745)
  at Joomla\CMS\Application\CMSApplication->initialiseApp()
     (/home/sriflzwf/public_html/libraries/src/Application/SiteApplication.php:635)
  at Joomla\CMS\Application\SiteApplication->initialiseApp()
     (/home/sriflzwf/public_html/libraries/src/Application/SiteApplication.php:226)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/home/sriflzwf/public_html/libraries/src/Application/CMSApplication.php:293)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home/sriflzwf/public_html/includes/app.php:61)
  at require_once('/home/sriflzwf/public_html/includes/app.php')
     (/home/sriflzwf/public_html/index.php:32)