Exception UnknownAssetException

HTTP 500 Whoops, looks like something went wrong.

There is no "template.cassiopeia.rtl" 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);
WebAssetManager->__call() in /home/aluminco/public_html/templates/alumin/error.php (line 65)
  1.         $this->getPreloadManager()->preload($wa->getAsset('style''fontscheme.current')->getUri() . '?' $this->getMediaVersion(), ['as' => 'style']);
  2.     }
  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/aluminco/public_html/templates/alumin/error.php') in /home/aluminco/public_html/libraries/src/Document/HtmlDocument.php (line 736)
  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 = array())
  5.     {
  6.         return $this->_fetchTemplate($params)->_parseTemplate();
  7.     }
  8.     /**
  9.      * Outputs the template to the browser.
  10.      *
  1.     public function render($caching false$params = array())
  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/aluminco/public_html/libraries/src/Application/CMSApplication.php (line 323)
  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/aluminco/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/aluminco/public_html/includes/app.php') in /home/aluminco/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

Incorrect product page

  1.         $item $this->get('Item');
  2.         $this->contactform    $this->get('Form');
  3.         $this->showcontactform = ($app->getUserState('com_djcatalog2.contact.data')) ? 'false' 'true';
  4.         if (empty($item) || $item->published <= 0) {
  5.             throw new Exception(JText::_('COM_DJCATALOG2_PRODUCT_NOT_FOUND'), 404);
  6.         }
  7.         $catid = (int)$app->input->getInt('cid');
  8.         $category $categories->get($item->cat_id);
  9.         $current_category = ($catid == $item->cat_id) ? $category $categories->get($catid);
  1.                 $cache->get($view'display');
  2.             } catch (CacheExceptionInterface $exception) {
  3.                 $view->display();
  4.             }
  5.         } else {
  6.             $view->display();
  7.         }
  8.         return $this;
  9.     }
  1.             }
  2.         }
  3.         
  4.         Djcatalog2HelperPrice::triggerCurrencyExAPI();
  5.         parent::display($cachable$urlparams);
  6.     }
  7.     
  8.     function getFrontpageXMLData() {
  9.         $model $this->getModel('modfrontpage');
  10.         $xml $model->getXml();
  1.         }
  2.         // Record the actual task being fired
  3.         $this->doTask $doTask;
  4.         return $this->$doTask();
  5.     }
  6.     /**
  7.      * Method to get a model object, loading it if required.
  8.      *
  1. DJCatalog2Helper::loadComponentLanguage();
  2. JPluginHelper::importPlugin('djcatalog2');
  3. $controller JControllerLegacy::getInstance('Djcatalog2');
  4. $controller->execute(JFactory::getApplication()->input->get('task'));
  5. $controller->redirect();
  6. ?>
require_once('/home/aluminco/public_html/components/com_djcatalog2/djcatalog2.php') in /home/aluminco/public_html/libraries/src/Dispatcher/LegacyComponentDispatcher.php (line 71)
  1.         // Load common and local language files.
  2.         $lang->load($this->app->scopeJPATH_BASE) || $lang->load($this->app->scopeJPATH_COMPONENT);
  3.         // Execute the component
  4.         $loader = static function ($path) {
  5.             require_once $path;
  6.         };
  7.         $loader($path);
  8.     }
  9. }
LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() in /home/aluminco/public_html/libraries/src/Dispatcher/LegacyComponentDispatcher.php (line 73)
  1.         // Execute the component
  2.         $loader = static function ($path) {
  3.             require_once $path;
  4.         };
  5.         $loader($path);
  6.     }
  7. }
LegacyComponentDispatcher->dispatch() in /home/aluminco/public_html/libraries/src/Component/ComponentHelper.php (line 355)
  1.         if (!static::isEnabled($option)) {
  2.             throw new MissingComponentException(Text::_('JLIB_APPLICATION_ERROR_COMPONENT_NOT_FOUND'), 404);
  3.         }
  4.         ob_start();
  5.         $app->bootComponent($option)->getDispatcher($app)->dispatch();
  6.         $contents ob_get_clean();
  7.         // Revert the scope
  8.         $app->scope $scope;
  1.             $document->setGenerator('Joomla! - Open Source Content Management - Version ' JVERSION);
  2.         } else {
  3.             $document->setGenerator('Joomla! - Open Source Content Management');
  4.         }
  5.         $contents ComponentHelper::renderComponent($component);
  6.         $document->setBuffer($contents'component');
  7.         // Trigger the onAfterDispatch event.
  8.         PluginHelper::importPlugin('system');
  9.         $this->triggerEvent('onAfterDispatch');
  1.              */
  2.             $this->checkUserRequireReset('com_users''profile''edit''com_users/profile.save,com_users/profile.apply,com_users/user.logout');
  3.         }
  4.         // Dispatch the application
  5.         $this->dispatch();
  6.         // Mark afterDispatch in the profiler.
  7.         JDEBUG $this->profiler->mark('afterDispatch') : null;
  8.     }
  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/aluminco/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/aluminco/public_html/includes/app.php') in /home/aluminco/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.rtl" asset of a "preset" type in the registry.

  at /home/aluminco/public_html/libraries/src/WebAsset/WebAssetRegistry.php:134
  at Joomla\CMS\WebAsset\WebAssetRegistry->get()
     (/home/aluminco/public_html/libraries/src/WebAsset/WebAssetManager.php:263)
  at Joomla\CMS\WebAsset\WebAssetManager->useAsset()
     (/home/aluminco/public_html/libraries/src/WebAsset/WebAssetManager.php:197)
  at Joomla\CMS\WebAsset\WebAssetManager->__call()
     (/home/aluminco/public_html/templates/alumin/error.php:65)
  at require('/home/aluminco/public_html/templates/alumin/error.php')
     (/home/aluminco/public_html/libraries/src/Document/HtmlDocument.php:736)
  at Joomla\CMS\Document\HtmlDocument->_loadTemplate()
     (/home/aluminco/public_html/libraries/src/Document/HtmlDocument.php:791)
  at Joomla\CMS\Document\HtmlDocument->_fetchTemplate()
     (/home/aluminco/public_html/libraries/src/Document/HtmlDocument.php:608)
  at Joomla\CMS\Document\HtmlDocument->parse()
     (/home/aluminco/public_html/libraries/src/Document/HtmlDocument.php:626)
  at Joomla\CMS\Document\HtmlDocument->render()
     (/home/aluminco/public_html/libraries/src/Document/ErrorDocument.php:139)
  at Joomla\CMS\Document\ErrorDocument->render()
     (/home/aluminco/public_html/libraries/src/Error/Renderer/HtmlRenderer.php:78)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render()
     (/home/aluminco/public_html/libraries/src/Exception/ExceptionHandler.php:121)
  at Joomla\CMS\Exception\ExceptionHandler::render()
     (/home/aluminco/public_html/libraries/src/Exception/ExceptionHandler.php:72)
  at Joomla\CMS\Exception\ExceptionHandler::handleException()
     (/home/aluminco/public_html/libraries/src/Application/CMSApplication.php:323)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home/aluminco/public_html/includes/app.php:61)
  at require_once('/home/aluminco/public_html/includes/app.php')
     (/home/aluminco/public_html/index.php:32)                
[1/2] Exception
Exception:
Incorrect product page

  at /home/aluminco/public_html/components/com_djcatalog2/views/item/view.html.php:51
  at DJCatalog2ViewItem->display()
     (/home/aluminco/public_html/libraries/src/MVC/Controller/BaseController.php:639)
  at Joomla\CMS\MVC\Controller\BaseController->display()
     (/home/aluminco/public_html/components/com_djcatalog2/controller.php:145)
  at DJCatalog2Controller->display()
     (/home/aluminco/public_html/libraries/src/MVC/Controller/BaseController.php:672)
  at Joomla\CMS\MVC\Controller\BaseController->execute()
     (/home/aluminco/public_html/components/com_djcatalog2/djcatalog2.php:58)
  at require_once('/home/aluminco/public_html/components/com_djcatalog2/djcatalog2.php')
     (/home/aluminco/public_html/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71)
  at Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}()
     (/home/aluminco/public_html/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73)
  at Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch()
     (/home/aluminco/public_html/libraries/src/Component/ComponentHelper.php:355)
  at Joomla\CMS\Component\ComponentHelper::renderComponent()
     (/home/aluminco/public_html/libraries/src/Application/SiteApplication.php:200)
  at Joomla\CMS\Application\SiteApplication->dispatch()
     (/home/aluminco/public_html/libraries/src/Application/SiteApplication.php:241)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/home/aluminco/public_html/libraries/src/Application/CMSApplication.php:294)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home/aluminco/public_html/includes/app.php:61)
  at require_once('/home/aluminco/public_html/includes/app.php')
     (/home/aluminco/public_html/index.php:32)