Warning: Undefined array key 0 in /homepages/18/d204194855/htdocs/libraries/src/Application/SiteApplication.php on line 469

Warning: Attempt to read property "template" on null in /homepages/18/d204194855/htdocs/libraries/src/Application/SiteApplication.php on line 488
Attempt to assign property "template" on null (500 Whoops, looks like something went wrong.)

ParseError Error

HTTP 500 Whoops, looks like something went wrong.

Attempt to assign property "template" on null

Exceptions 2

Error

  1.                 }
  2.             }
  3.         }
  4.         // Need to filter the default value as well
  5.         $template->template InputFilter::getInstance()->clean($template->template'cmd');
  6.         // Fallback template
  7.         if (!empty($template->parent)) {
  8.             if (!is_file(JPATH_THEMES '/' $template->template '/index.php')) {
  9.                 if (!is_file(JPATH_THEMES '/' $template->parent '/index.php')) {
  1.     public function render(\Throwable $error): string
  2.     {
  3.         $app Factory::getApplication();
  4.         // Get the current template from the application
  5.         $template $app->getTemplate(true);
  6.         // Push the error object into the document
  7.         $this->getDocument()->setError($error);
  8.         // Add registry file for the template asset
HtmlRenderer->render(object(ParseError)) in /homepages/18/d204194855/htdocs/libraries/src/Exception/ExceptionHandler.php (line 121)
  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.             }
ExceptionHandler::render(object(ParseError)) in /homepages/18/d204194855/htdocs/libraries/src/Exception/ExceptionHandler.php (line 72)
  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(ParseError)) in /homepages/18/d204194855/htdocs/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 /homepages/18/d204194855/htdocs/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('/homepages/18/d204194855/htdocs/includes/app.php') in /homepages/18/d204194855/htdocs/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';

ParseError

syntax error, unexpected token "protected", expecting "," or ";"

  1.      * A cached switch for if this user has root access rights.
  2.      *
  3.      * @var    boolean
  4.      * @since  1.7.0
  5.      */
  6.     protected $isRoot null;
  7.     /**
  8.      * Unique id
  9.      *
  10.      * @var    integer
  1.      * @return true|null True if loaded, null otherwise
  2.      */
  3.     public function loadClass($class)
  4.     {
  5.         if ($file $this->findFile($class)) {
  6.             includeFile($file);
  7.             return true;
  8.         }
  9.         return null;
ClassLoader->loadClass('Joomla\\CMS\\User\\User') in /homepages/18/d204194855/htdocs/libraries/src/Autoload/ClassLoader.php (line 59)
  1.      *
  2.      * @since   3.4
  3.      */
  4.     public function loadClass($class)
  5.     {
  6.         if ($result $this->loader->loadClass($class)) {
  7.             \JLoader::applyAliasFor($class);
  8.         }
  9.         return $result;
  10.     }
ClassLoader->loadClass('Joomla\\CMS\\User\\User') in /homepages/18/d204194855/htdocs/libraries/src/Application/WebApplication.php (line 318)
  1.     {
  2.         $session $event->getSession();
  3.         if ($session->isNew()) {
  4.             $session->set('registry', new Registry());
  5.             $session->set('user', new User());
  6.         }
  7.         // Ensure the identity is loaded
  8.         if (!$this->getIdentity()) {
  9.             $this->loadIdentity($session->get('user'));
  1.                 if ($event->isStopped())
  2.                 {
  3.                     return $event;
  4.                 }
  5.                 $listener($event);
  6.             }
  7.         }
  8.         return $event;
  9.     }
  1.                 // Dispatch deprecated event
  2.                 $this->dispatcher->dispatch('onAfterSessionStart', new SessionEvent('onAfterSessionStart'$this));
  3.             }
  4.             // Dispatch new event
  5.             $this->dispatcher->dispatch(SessionEvents::START, new SessionEvent(SessionEvents::START$this));
  6.         }
  7.     }
  8.     /**
  9.      * Frees all session variables and destroys all data registered to a session
  1.      */
  2.     public function has($name)
  3.     {
  4.         if (!$this->isActive())
  5.         {
  6.             $this->start();
  7.         }
  8.         return $this->store->has($name);
  9.     }
  1.                 $name $args[2] . '.' $name;
  2.             }
  3.         }
  4.         if (parent::has($name)) {
  5.             // Parent is used because of b/c, can be changed in Joomla 5
  6.             return parent::get($name$default);
  7.         }
  8.         /*
  1.                 __CLASS__
  2.             ),
  3.             E_USER_DEPRECATED
  4.         );
  5.         $instance self::getApplication()->getSession()->get('user');
  6.         if (\is_null($id)) {
  7.             if (!($instance instanceof User)) {
  8.                 $instance User::getInstance();
  9.             }
  1.      *
  2.      * @since   3.2
  3.      */
  4.     protected function initialiseApp($options = array())
  5.     {
  6.         $user Factory::getUser();
  7.         // If the user is a guest we populate it with the guest user group.
  8.         if ($user->guest) {
  9.             $guestUsergroup ComponentHelper::getParams('com_users')->get('guest_usergroup'1);
  10.             $user->groups = array($guestUsergroup);
  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 /homepages/18/d204194855/htdocs/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('/homepages/18/d204194855/htdocs/includes/app.php') in /homepages/18/d204194855/htdocs/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] Error
Error:
Attempt to assign property "template" on null

  at /homepages/18/d204194855/htdocs/libraries/src/Application/SiteApplication.php:488
  at Joomla\CMS\Application\SiteApplication->getTemplate(true)
     (/homepages/18/d204194855/htdocs/libraries/src/Error/Renderer/HtmlRenderer.php:50)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(ParseError))
     (/homepages/18/d204194855/htdocs/libraries/src/Exception/ExceptionHandler.php:121)
  at Joomla\CMS\Exception\ExceptionHandler::render(object(ParseError))
     (/homepages/18/d204194855/htdocs/libraries/src/Exception/ExceptionHandler.php:72)
  at Joomla\CMS\Exception\ExceptionHandler::handleException(object(ParseError))
     (/homepages/18/d204194855/htdocs/libraries/src/Application/CMSApplication.php:323)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/homepages/18/d204194855/htdocs/includes/app.php:61)
  at require_once('/homepages/18/d204194855/htdocs/includes/app.php')
     (/homepages/18/d204194855/htdocs/index.php:32)                
[1/2] ParseError
ParseError:
syntax error, unexpected token "protected", expecting "," or ";"

  at /homepages/18/d204194855/htdocs/libraries/src/User/User.php:41
  at Composer\Autoload\includeFile('/homepages/18/d204194855/htdocs/libraries/vendor/composer/../../../libraries/src/User/User.php')
     (/homepages/18/d204194855/htdocs/libraries/vendor/composer/ClassLoader.php:428)
  at Composer\Autoload\ClassLoader->loadClass('Joomla\\CMS\\User\\User')
     (/homepages/18/d204194855/htdocs/libraries/src/Autoload/ClassLoader.php:59)
  at Joomla\CMS\Autoload\ClassLoader->loadClass('Joomla\\CMS\\User\\User')
     (/homepages/18/d204194855/htdocs/libraries/src/Application/WebApplication.php:318)
  at Joomla\CMS\Application\WebApplication->afterSessionStart(object(SessionEvent))
     (/homepages/18/d204194855/htdocs/libraries/vendor/joomla/event/src/Dispatcher.php:486)
  at Joomla\Event\Dispatcher->dispatch('session.start', object(SessionEvent))
     (/homepages/18/d204194855/htdocs/libraries/vendor/joomla/session/src/Session.php:444)
  at Joomla\Session\Session->start()
     (/homepages/18/d204194855/htdocs/libraries/vendor/joomla/session/src/Session.php:333)
  at Joomla\Session\Session->has('user')
     (/homepages/18/d204194855/htdocs/libraries/src/Session/Session.php:191)
  at Joomla\CMS\Session\Session->get('user')
     (/homepages/18/d204194855/htdocs/libraries/src/Factory.php:334)
  at Joomla\CMS\Factory::getUser()
     (/homepages/18/d204194855/htdocs/libraries/src/Application/SiteApplication.php:552)
  at Joomla\CMS\Application\SiteApplication->initialiseApp()
     (/homepages/18/d204194855/htdocs/libraries/src/Application/SiteApplication.php:218)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/homepages/18/d204194855/htdocs/libraries/src/Application/CMSApplication.php:294)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/homepages/18/d204194855/htdocs/includes/app.php:61)
  at require_once('/homepages/18/d204194855/htdocs/includes/app.php')
     (/homepages/18/d204194855/htdocs/index.php:32)