Error 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/albion2/public_html/templates/sparky_framework/error.php') in /home/albion2/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.     /**
HtmlDocument->_fetchTemplate() in /home/albion2/public_html/libraries/src/Document/HtmlDocument.php (line 612)
  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.             ob_end_clean();
  2.         }
  3.         $this->getDocument()->setTitle(Text::_('Error') . ': ' $error->getCode());
  4.         return $this->getDocument()->render(
  5.             false,
  6.             [
  7.                 'template'         => $template->template,
  8.                 'directory'        => JPATH_THEMES,
  9.                 'debug'            => JDEBUG,
  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/albion2/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/albion2/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/albion2/public_html/includes/app.php') in /home/albion2/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';

Error

Attempt to modify property "datamodel" on null

  1.                 }
  2.                 $ns = &$ns->{$nodes[$i]};
  3.             }
  4.             // Get the old value if exists so we can return it
  5.             $ns->{$nodes[$i]} = &$value;
  6.             return $ns->{$nodes[$i]};
  7.         }
  1.         if (!$this->datamodel)
  2.         {
  3.             // attach data model
  4.             $this->datamodel = new JEventsDataModel();
  5.             $this->datamodel->setupComponentCatids();
  6.             $reg->setReference("jevents.datamodel"$this->datamodel);
  7.         }
  8.     }
  1.         $jevlayout null;
  2.     function __construct($config null)
  3.     {
  4.         parent::__construct($config);
  5.         $this->jevlayout "flat";
  6.         $this->addHelperPath(dirname(__FILE__) . "/../helpers/");
  1.             if (!class_exists($viewClass)) {
  2.                 throw new \Exception(Text::sprintf('JLIB_APPLICATION_ERROR_VIEW_CLASS_NOT_FOUND'$viewClass$path), 500);
  3.             }
  4.         }
  5.         return new $viewClass($config);
  6.     }
  7.     /**
  8.      * Method to load and return a table object.
  9.      *
  1.      */
  2.     protected function createView($name$prefix ''$type ''$config = [])
  3.     {
  4.         $config['paths'] = $this->paths['view'];
  5.         $view $this->factory->createView($name$prefix$type$config);
  6.         if ($view instanceof CurrentUserInterface && $this->app->getIdentity()) {
  7.             $view->setCurrentUser($this->app->getIdentity());
  8.         }
  1.                 $prefix $this->app->getName();
  2.             }
  3.         }
  4.         if (empty(self::$views[$name][$type][$prefix])) {
  5.             if ($view $this->createView($name$prefix$type$config)) {
  6.                 self::$views[$name][$type][$prefix] = &$view;
  7.             } else {
  8.                 throw new \Exception(Text::sprintf('JLIB_APPLICATION_ERROR_VIEW_NOT_FOUND'$name$type$prefix), 404);
  9.             }
  10.         }
  1.         $cfg   JEVConfig::getInstance();
  2.         $theme JEV_CommonFunctions::getJEventsViewName();
  3.         $view "week";
  4.         $this->addViewPath($this->_basePath '/' "views" '/' $theme);
  5.         $this->view $this->getView($view$viewType$theme "View",
  6.             array('base_path'     => $this->_basePath,
  7.                   "template_path" => $this->_basePath '/' "views" '/' $theme '/' $view '/' 'tmpl',
  8.                   "name"          => $theme '/' $view));
  9.         // Set the layout
  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. //HTMLHelper::_('bootstrap.popover', '.hasjevtip');
  2. JevModal::popover('.hasjevtip' , array("trigger"=>"hover focus""placement"=>"top""container"=>"#jevents_body""delay"=> array( "show"=> 150"hide"=> 150 )));
  3. // Perform the Request task
  4. $controller->execute($task);
  5. //list ($usec, $sec) = explode(" ", microtime());
  6. //$time_end = (float) $usec + (float) $sec;
  7. //echo  "JEvents component post task   = ".round($time_end - $starttime, 4)."<br/>";
require_once('/home/albion2/public_html/components/com_jevents/jevents.php') in /home/albion2/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/albion2/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/albion2/public_html/libraries/src/Component/ComponentHelper.php (line 361)
  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;
ComponentHelper::renderComponent() in /home/albion2/public_html/libraries/src/Application/SiteApplication.php (line 208)
  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/albion2/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/albion2/public_html/includes/app.php') in /home/albion2/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/albion2/public_html/libraries/src/WebAsset/WebAssetRegistry.php:134
  at Joomla\CMS\WebAsset\WebAssetRegistry->get()
     (/home/albion2/public_html/libraries/src/WebAsset/WebAssetManager.php:263)
  at Joomla\CMS\WebAsset\WebAssetManager->useAsset()
     (/home/albion2/public_html/libraries/src/WebAsset/WebAssetManager.php:197)
  at Joomla\CMS\WebAsset\WebAssetManager->__call()
     (/home/albion2/public_html/templates/sparky_framework/error.php:58)
  at require('/home/albion2/public_html/templates/sparky_framework/error.php')
     (/home/albion2/public_html/libraries/src/Document/HtmlDocument.php:721)
  at Joomla\CMS\Document\HtmlDocument->_loadTemplate()
     (/home/albion2/public_html/libraries/src/Document/HtmlDocument.php:776)
  at Joomla\CMS\Document\HtmlDocument->_fetchTemplate()
     (/home/albion2/public_html/libraries/src/Document/HtmlDocument.php:612)
  at Joomla\CMS\Document\HtmlDocument->parse()
     (/home/albion2/public_html/libraries/src/Document/HtmlDocument.php:630)
  at Joomla\CMS\Document\HtmlDocument->render()
     (/home/albion2/public_html/libraries/src/Document/ErrorDocument.php:139)
  at Joomla\CMS\Document\ErrorDocument->render()
     (/home/albion2/public_html/libraries/src/Error/Renderer/HtmlRenderer.php:70)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render()
     (/home/albion2/public_html/libraries/src/Exception/ExceptionHandler.php:126)
  at Joomla\CMS\Exception\ExceptionHandler::render()
     (/home/albion2/public_html/libraries/src/Exception/ExceptionHandler.php:72)
  at Joomla\CMS\Exception\ExceptionHandler::handleException()
     (/home/albion2/public_html/libraries/src/Application/CMSApplication.php:322)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home/albion2/public_html/includes/app.php:61)
  at require_once('/home/albion2/public_html/includes/app.php')
     (/home/albion2/public_html/index.php:32)                
[1/2] Error
Error:
Attempt to modify property "datamodel" on null

  at /home/albion2/public_html/components/com_jevents/libraries/registry.php:120
  at JevRegistry->setReference()
     (/home/albion2/public_html/components/com_jevents/views/default/abstract/abstract.php:67)
  at JEventsDefaultView->__construct()
     (/home/albion2/public_html/components/com_jevents/views/flat/abstract/abstract.php:36)
  at JEventsFlatView->__construct()
     (/home/albion2/public_html/libraries/src/MVC/Factory/LegacyFactory.php:111)
  at Joomla\CMS\MVC\Factory\LegacyFactory->createView()
     (/home/albion2/public_html/libraries/src/MVC/Controller/BaseController.php:581)
  at Joomla\CMS\MVC\Controller\BaseController->createView()
     (/home/albion2/public_html/libraries/src/MVC/Controller/BaseController.php:834)
  at Joomla\CMS\MVC\Controller\BaseController->getView()
     (/home/albion2/public_html/components/com_jevents/controllers/week.php:56)
  at WeekController->listevents()
     (/home/albion2/public_html/libraries/src/MVC/Controller/BaseController.php:693)
  at Joomla\CMS\MVC\Controller\BaseController->execute()
     (/home/albion2/public_html/components/com_jevents/jevents.php:337)
  at require_once('/home/albion2/public_html/components/com_jevents/jevents.php')
     (/home/albion2/public_html/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71)
  at Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}()
     (/home/albion2/public_html/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73)
  at Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch()
     (/home/albion2/public_html/libraries/src/Component/ComponentHelper.php:361)
  at Joomla\CMS\Component\ComponentHelper::renderComponent()
     (/home/albion2/public_html/libraries/src/Application/SiteApplication.php:208)
  at Joomla\CMS\Application\SiteApplication->dispatch()
     (/home/albion2/public_html/libraries/src/Application/SiteApplication.php:249)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/home/albion2/public_html/libraries/src/Application/CMSApplication.php:293)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home/albion2/public_html/includes/app.php:61)
  at require_once('/home/albion2/public_html/includes/app.php')
     (/home/albion2/public_html/index.php:32)