Warning: Attempt to read property "params" on null in /home/crisnail/public_html/etna/libraries/astroid/framework/library/astroid/Template.php on line 330

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/crisnail/public_html/etna/libraries/vendor/joomla/registry/src/Format/Json.php on line 55

Warning: Attempt to read property "params" on null in /home/crisnail/public_html/etna/libraries/astroid/framework/library/astroid/Template.php on line 330

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/crisnail/public_html/etna/libraries/vendor/joomla/registry/src/Format/Json.php on line 55
Attempt to assign property "params" on null (500 Whoops, looks like something went wrong.)

Error Error

HTTP 500 Whoops, looks like something went wrong.

Attempt to assign property "params" on null

Exceptions 2

Error

  1.         $result $db->loadObject();
  2.         $params = new Registry();
  3.         $params->loadString($result->params);
  4.         $result->params $params;
  5.         return $result;
  6.     }
  7.     public function getDefault()
  8.     {
  1.         } else {
  2.             $template_id = isset($menu->template_style_id) ? $menu->template_style_id $id;
  3.         }
  4.         if (!empty($template_id)) {
  5.             $jtemplate $this->_getById($template_id);
  6.         } else {
  7.             $jtemplate $app->getTemplate(true);
  8.         }
  9.         $this->template $jtemplate->template;
  1.     public static function getTemplate($id null): Template
  2.     {
  3.         if ($id !== null) {
  4.             self::$template = new Template($id);
  5.         } elseif (self::$template === null) {
  6.             self::$template = new Template();
  7.         }
  8.         return self::$template;
  9.     }
  10.     public static function getClient(): Helper\Client
  1.     protected $scriptOptions = [];
  2.     public function __construct()
  3.     {
  4.         $template Framework::getTemplate();
  5.         $params $template->getParams();
  6.         $this->minify_css $params->get('minify_css'false);
  7.         $this->minify_js $params->get('minify_js'false);
  8.         $this->minify_html $params->get('minify_html'false);
  1.     }
  2.     public static function getDocument(): Document
  3.     {
  4.         if (self::$document === null) {
  5.             self::$document = new Document();
  6.         }
  7.         return self::$document;
  8.     }
  9.     public static function getTemplate($id null): Template
  1.     }
  2. }
  3. require_once "helper.php"// Template's Helper
  4. $document Astroid\Framework::getDocument(); // Astroid Document
  5. $params Astroid\Framework::getTemplate()->getParams(); // Astroid Params
  6. Astroid\Helper\Head::meta(); // site meta
  7. Astroid\Component\Utility::custom(); // custom code
  8. Astroid\Helper\Head::scripts(); // site scripts
require('/home/crisnail/public_html/etna/templates/tz_interiart/error.php') in /home/crisnail/public_html/etna/libraries/src/Document/HtmlDocument.php (line 734)
  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_clean();
  7.         }
  8.         return $contents;
  9.     }
HtmlDocument->_loadTemplate('/home/crisnail/public_html/etna/templates/tz_interiart', 'error.php') in /home/crisnail/public_html/etna/libraries/src/Document/HtmlDocument.php (line 788)
  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(array('template' => 'tz_interiart', 'directory' => '/home/crisnail/public_html/etna/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /home/crisnail/public_html/etna/libraries/src/Document/HtmlDocument.php (line 625)
  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.      *
HtmlDocument->parse(array('template' => 'tz_interiart', 'directory' => '/home/crisnail/public_html/etna/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /home/crisnail/public_html/etna/libraries/src/Document/HtmlDocument.php (line 643)
  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.         }
HtmlDocument->render(false, array('template' => 'tz_interiart', 'directory' => '/home/crisnail/public_html/etna/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /home/crisnail/public_html/etna/libraries/src/Document/ErrorDocument.php (line 139)
  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.      *
ErrorDocument->render(false, array('template' => 'tz_interiart', 'directory' => '/home/crisnail/public_html/etna/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /home/crisnail/public_html/etna/libraries/src/Error/Renderer/HtmlRenderer.php (line 70)
  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.                     'subject'  => $app,
  2.                     'document' => $renderer->getDocument(),
  3.                 ])
  4.             );
  5.             $data $renderer->render($error);
  6.             // If nothing was rendered, just use the message from the Exception
  7.             if (empty($data)) {
  8.                 $data $error->getMessage();
  9.             }
ExceptionHandler::render(object(Error)) in /home/crisnail/public_html/etna/libraries/src/Exception/ExceptionHandler.php (line 76)
  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(object(Error)) in /home/crisnail/public_html/etna/libraries/src/Application/CMSApplication.php (line 334)
  1.             );
  2.             // Trigger the onError event.
  3.             $this->dispatchEvent('onError'$event);
  4.             ExceptionHandler::handleException($event->getError());
  5.         }
  6.         // Trigger the onBeforeRespond event.
  7.         $this->dispatchEvent(
  8.             'onBeforeRespond',
CMSApplication->execute() in /home/crisnail/public_html/etna/includes/app.php (line 58)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/home/crisnail/public_html/etna/includes/app.php') in /home/crisnail/public_html/etna/index.php (line 51)
  1.     // ... die
  2.     die();
  3. }
  4. // Run the application - All executable code should be triggered through this file
  5. require_once __DIR__ '/includes/app.php';

Error

Attempt to assign property "params" on null

  1.         $result $db->loadObject();
  2.         $params = new Registry();
  3.         $params->loadString($result->params);
  4.         $result->params $params;
  5.         return $result;
  6.     }
  7.     public function getDefault()
  8.     {
  1.         } else {
  2.             $template_id = isset($menu->template_style_id) ? $menu->template_style_id $id;
  3.         }
  4.         if (!empty($template_id)) {
  5.             $jtemplate $this->_getById($template_id);
  6.         } else {
  7.             $jtemplate $app->getTemplate(true);
  8.         }
  9.         $this->template $jtemplate->template;
  1.     public static function init(): void
  2.     {
  3.         define('_ASTROID'1); // define astroid
  4.         self::check(); // check for astroid redirection
  5.         self::$debugger = new Debugger(); // Debuuger
  6.         self::$template = new Template(); // Template
  7.         self::$document = new Document(); // Document
  8.         self::constants();
  9.         PluginHelper::importPlugin('astroid');
  10.         Helper::triggerEvent('onAstroidAfterInitialise', [&self::$template]);
  11.     }
  1.     public function onAfterRoute()
  2.     {
  3.         if (!file_exists(JPATH_LIBRARIES '/astroid/framework/library/astroid')) {
  4.             return false;
  5.         }
  6.         Framework::init();
  7.         $option $this->getApplication()->input->get('option''');
  8.         $astroid $this->getApplication()->input->get('astroid''');
  9.         if ($option == 'com_ajax' && !empty($astroid)) {
  10.             Framework::getClient()->execute($astroid);
  11.         }
AstroidPlugin->onAfterRoute(object(SiteApplication)) in /home/crisnail/public_html/etna/libraries/src/Plugin/CMSPlugin.php (line 320)
  1.                 }
  2.                 // Convert to indexed array for unpacking.
  3.                 $arguments array_values($arguments);
  4.                 $result $this->{$methodName}(...$arguments);
  5.                 // Ignore null results
  6.                 if ($result === null) {
  7.                     return;
  8.                 }
  1.             foreach ($this->listeners[$event->getName()] as $listener) {
  2.                 if ($event->isStopped()) {
  3.                     return $event;
  4.                 }
  5.                 $listener($event);
  6.             }
  7.         }
  8.         return $event;
  9.     }
  1.             $dispatcher $this->getDispatcher();
  2.         } catch (\UnexpectedValueException $exception) {
  3.             return null;
  4.         }
  5.         return $dispatcher->dispatch($eventName$event ?: new ApplicationEvent($eventName$this));
  6.     }
  7.     /**
  8.      * Method to run the application routines.
  9.      *
AbstractApplication->dispatchEvent('onAfterRoute', object(AfterRouteEvent)) in /home/crisnail/public_html/etna/libraries/src/Application/SiteApplication.php (line 811)
  1.             $this->input->def($key$value);
  2.         }
  3.         // Trigger the onAfterRoute event.
  4.         PluginHelper::importPlugin('system'nulltrue$this->getDispatcher());
  5.         $this->dispatchEvent(
  6.             'onAfterRoute',
  7.             new AfterRouteEvent('onAfterRoute', ['subject' => $this])
  8.         );
  9.         $Itemid $this->input->getInt('Itemid'0);
  1.         // Mark afterInitialise in the profiler.
  2.         JDEBUG $this->profiler->mark('afterInitialise') : null;
  3.         // Route the application
  4.         $this->route();
  5.         // Mark afterRoute in the profiler.
  6.         JDEBUG $this->profiler->mark('afterRoute') : null;
  7.         if (!$this->isHandlingMultiFactorAuthentication()) {
  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/crisnail/public_html/etna/includes/app.php (line 58)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/home/crisnail/public_html/etna/includes/app.php') in /home/crisnail/public_html/etna/index.php (line 51)
  1.     // ... die
  2.     die();
  3. }
  4. // Run the application - All executable code should be triggered through this file
  5. require_once __DIR__ '/includes/app.php';

Stack Traces 2

[2/2] Error
Error:
Attempt to assign property "params" on null

  at /home/crisnail/public_html/etna/libraries/astroid/framework/library/astroid/Template.php:332
  at Astroid\Template->_getById(14)
     (/home/crisnail/public_html/etna/libraries/astroid/framework/library/astroid/Template.php:49)
  at Astroid\Template->__construct()
     (/home/crisnail/public_html/etna/libraries/astroid/framework/library/astroid/Framework.php:95)
  at Astroid\Framework::getTemplate()
     (/home/crisnail/public_html/etna/libraries/astroid/framework/library/astroid/Document.php:54)
  at Astroid\Document->__construct()
     (/home/crisnail/public_html/etna/libraries/astroid/framework/library/astroid/Framework.php:85)
  at Astroid\Framework::getDocument()
     (/home/crisnail/public_html/etna/templates/tz_interiart/error.php:20)
  at require('/home/crisnail/public_html/etna/templates/tz_interiart/error.php')
     (/home/crisnail/public_html/etna/libraries/src/Document/HtmlDocument.php:734)
  at Joomla\CMS\Document\HtmlDocument->_loadTemplate('/home/crisnail/public_html/etna/templates/tz_interiart', 'error.php')
     (/home/crisnail/public_html/etna/libraries/src/Document/HtmlDocument.php:788)
  at Joomla\CMS\Document\HtmlDocument->_fetchTemplate(array('template' => 'tz_interiart', 'directory' => '/home/crisnail/public_html/etna/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
     (/home/crisnail/public_html/etna/libraries/src/Document/HtmlDocument.php:625)
  at Joomla\CMS\Document\HtmlDocument->parse(array('template' => 'tz_interiart', 'directory' => '/home/crisnail/public_html/etna/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
     (/home/crisnail/public_html/etna/libraries/src/Document/HtmlDocument.php:643)
  at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'tz_interiart', 'directory' => '/home/crisnail/public_html/etna/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
     (/home/crisnail/public_html/etna/libraries/src/Document/ErrorDocument.php:139)
  at Joomla\CMS\Document\ErrorDocument->render(false, array('template' => 'tz_interiart', 'directory' => '/home/crisnail/public_html/etna/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
     (/home/crisnail/public_html/etna/libraries/src/Error/Renderer/HtmlRenderer.php:70)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(Error))
     (/home/crisnail/public_html/etna/libraries/src/Exception/ExceptionHandler.php:142)
  at Joomla\CMS\Exception\ExceptionHandler::render(object(Error))
     (/home/crisnail/public_html/etna/libraries/src/Exception/ExceptionHandler.php:76)
  at Joomla\CMS\Exception\ExceptionHandler::handleException(object(Error))
     (/home/crisnail/public_html/etna/libraries/src/Application/CMSApplication.php:334)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home/crisnail/public_html/etna/includes/app.php:58)
  at require_once('/home/crisnail/public_html/etna/includes/app.php')
     (/home/crisnail/public_html/etna/index.php:51)                
[1/2] Error
Error:
Attempt to assign property "params" on null

  at /home/crisnail/public_html/etna/libraries/astroid/framework/library/astroid/Template.php:332
  at Astroid\Template->_getById(14)
     (/home/crisnail/public_html/etna/libraries/astroid/framework/library/astroid/Template.php:49)
  at Astroid\Template->__construct()
     (/home/crisnail/public_html/etna/libraries/astroid/framework/library/astroid/Framework.php:35)
  at Astroid\Framework::init()
     (/home/crisnail/public_html/etna/plugins/system/astroid/src/Extension/AstroidPlugin.php:35)
  at Joomla\Plugin\System\Astroid\Extension\AstroidPlugin->onAfterRoute(object(SiteApplication))
     (/home/crisnail/public_html/etna/libraries/src/Plugin/CMSPlugin.php:320)
  at Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}(object(AfterRouteEvent))
     (/home/crisnail/public_html/etna/libraries/vendor/joomla/event/src/Dispatcher.php:454)
  at Joomla\Event\Dispatcher->dispatch('onAfterRoute', object(AfterRouteEvent))
     (/home/crisnail/public_html/etna/libraries/vendor/joomla/application/src/AbstractApplication.php:99)
  at Joomla\Application\AbstractApplication->dispatchEvent('onAfterRoute', object(AfterRouteEvent))
     (/home/crisnail/public_html/etna/libraries/src/Application/SiteApplication.php:811)
  at Joomla\CMS\Application\SiteApplication->route()
     (/home/crisnail/public_html/etna/libraries/src/Application/SiteApplication.php:243)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/home/crisnail/public_html/etna/libraries/src/Application/CMSApplication.php:304)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home/crisnail/public_html/etna/includes/app.php:58)
  at require_once('/home/crisnail/public_html/etna/includes/app.php')
     (/home/crisnail/public_html/etna/index.php:51)