Error UndefinedMethodError

HTTP 500 Whoops, looks like something went wrong.

Attempted to call an undefined method named "isSite" of class "Joomla\CMS\Application\SiteApplication".

Exceptions 2

Symfony\Component\ErrorHandler\Error\ UndefinedMethodError

  1.         // set translations
  2.         $this->language->load('tpl_warp'$this['path']->path('warp:systems/joomla'), nulltrue);
  3.         // init site/admin
  4.         if ($this->application->isSite())
  5.             $this->initSite();
  6.         if ($this->application->isAdmin())
  7.             $this->initAdmin();
  8.     }
  1.     $config->load(__DIR__.'/warp/systems/joomla/config.php');
  2.     $config->load(__DIR__.'/config.php');
  3.     // set warp
  4.     $warp = new Warp(compact('loader''config'));
  5.     $warp['system']->init();
  6. }
  7. return $warp;
require('/home1/drillz/public_html/templates/yoo_everest/warp.php') in /home1/drillz/public_html/templates/yoo_everest/error.php (line 13)
  1. // no direct access
  2. defined('_JEXEC') or die('Restricted access');
  3. // get warp
  4. $warp = require(__DIR__.'/warp.php');
  5. // set messages
  6. $title   $this->title;
  7. $error   $this->error->getCode();
  8. $message $this->error->getMessage();
require('/home1/drillz/public_html/templates/yoo_everest/error.php') in /home1/drillz/public_html/libraries/src/Document/HtmlDocument.php (line 771)
  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;
HtmlDocument->_loadTemplate('/home1/drillz/public_html/templates/yoo_everest', 'error.php') in /home1/drillz/public_html/libraries/src/Document/HtmlDocument.php (line 830)
  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' => 'yoo_everest', 'directory' => '/home1/drillz/public_html/templates', 'debug' => '1', 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /home1/drillz/public_html/libraries/src/Document/HtmlDocument.php (line 633)
  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.      *
HtmlDocument->parse(array('template' => 'yoo_everest', 'directory' => '/home1/drillz/public_html/templates', 'debug' => '1', 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /home1/drillz/public_html/libraries/src/Document/HtmlDocument.php (line 652)
  1.     {
  2.         $this->_caching $caching;
  3.         if (empty($this->_template))
  4.         {
  5.             $this->parse($params);
  6.         }
  7.         if (\array_key_exists('csp_nonce'$params) && $params['csp_nonce'] !== null)
  8.         {
  9.             $this->cspNonce $params['csp_nonce'];
HtmlDocument->render(false, array('template' => 'yoo_everest', 'directory' => '/home1/drillz/public_html/templates', 'debug' => '1', 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /home1/drillz/public_html/libraries/src/Document/ErrorDocument.php (line 140)
  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' => 'yoo_everest', 'directory' => '/home1/drillz/public_html/templates', 'debug' => '1', 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /home1/drillz/public_html/libraries/src/Error/Renderer/HtmlRenderer.php (line 77)
  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. }
HtmlRenderer->render(object(Error)) in /home1/drillz/public_html/libraries/src/Exception/ExceptionHandler.php (line 128)
  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.             {
  8.                 $data $error->getMessage();
ExceptionHandler::render(object(Error)) in /home1/drillz/public_html/libraries/src/Exception/ExceptionHandler.php (line 71)
  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 /home1/drillz/public_html/libraries/src/Application/CMSApplication.php (line 311)
  1.             );
  2.             // Trigger the onError event.
  3.             $this->triggerEvent('onError'$event);
  4.             ExceptionHandler::handleException($event->getError());
  5.         }
  6.         // Send the application response.
  7.         $this->respond();
CMSApplication->execute() in /home1/drillz/public_html/includes/app.php (line 63)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/home1/drillz/public_html/includes/app.php') in /home1/drillz/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

Call to undefined method Joomla\CMS\Application\SiteApplication::isSite()

  1.         // Load the K2 classes
  2.         JLoader::register('K2Table'JPATH_ADMINISTRATOR.'/components/com_k2/tables/table.php');
  3.         JLoader::register('K2Controller'JPATH_BASE.'/components/com_k2/controllers/controller.php');
  4.         JLoader::register('K2Model'JPATH_ADMINISTRATOR.'/components/com_k2/models/model.php');
  5.         if ($app->isSite()) {
  6.             K2Model::addIncludePath(JPATH_SITE.'/components/com_k2/models');
  7.         } else {
  8.             // Fix warning under Joomla 1.5 caused by conflict in model names
  9.             if (K2_JVERSION != '15' || (K2_JVERSION == '15' && JRequest::getCmd('option') != 'com_users')) {
  10.                 K2Model::addIncludePath(JPATH_ADMINISTRATOR.'/components/com_k2/models');
plgSystemK2->onAfterInitialise() in /home1/drillz/public_html/libraries/src/Plugin/CMSPlugin.php (line 285)
  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.                 {
  8.                     return;
  1.                 if ($event->isStopped())
  2.                 {
  3.                     return $event;
  4.                 }
  5.                 $listener($event);
  6.             }
  7.         }
  8.         return $event;
  9.     }
Dispatcher->dispatch('onAfterInitialise', object(Event)) in /home1/drillz/public_html/libraries/src/Application/EventAware.php (line 111)
  1.         else
  2.         {
  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. }
WebApplication->triggerEvent('onAfterInitialise') in /home1/drillz/public_html/libraries/src/Application/CMSApplication.php (line 740)
  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.      *
CMSApplication->initialiseApp(array('language' => 'en-GB')) in /home1/drillz/public_html/libraries/src/Application/SiteApplication.php (line 709)
  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.             {
  9.                 // Render the application output.
CMSApplication->execute() in /home1/drillz/public_html/includes/app.php (line 63)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/home1/drillz/public_html/includes/app.php') in /home1/drillz/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] UndefinedMethodError
Symfony\Component\ErrorHandler\Error\UndefinedMethodError:
Attempted to call an undefined method named "isSite" of class "Joomla\CMS\Application\SiteApplication".

  at /home1/drillz/public_html/templates/yoo_everest/warp/systems/joomla/src/Warp/Joomla/Helper/SystemHelper.php:122
  at Warp\Joomla\Helper\SystemHelper->init()
     (/home1/drillz/public_html/templates/yoo_everest/warp.php:33)
  at require('/home1/drillz/public_html/templates/yoo_everest/warp.php')
     (/home1/drillz/public_html/templates/yoo_everest/error.php:13)
  at require('/home1/drillz/public_html/templates/yoo_everest/error.php')
     (/home1/drillz/public_html/libraries/src/Document/HtmlDocument.php:771)
  at Joomla\CMS\Document\HtmlDocument->_loadTemplate('/home1/drillz/public_html/templates/yoo_everest', 'error.php')
     (/home1/drillz/public_html/libraries/src/Document/HtmlDocument.php:830)
  at Joomla\CMS\Document\HtmlDocument->_fetchTemplate(array('template' => 'yoo_everest', 'directory' => '/home1/drillz/public_html/templates', 'debug' => '1', 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
     (/home1/drillz/public_html/libraries/src/Document/HtmlDocument.php:633)
  at Joomla\CMS\Document\HtmlDocument->parse(array('template' => 'yoo_everest', 'directory' => '/home1/drillz/public_html/templates', 'debug' => '1', 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
     (/home1/drillz/public_html/libraries/src/Document/HtmlDocument.php:652)
  at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'yoo_everest', 'directory' => '/home1/drillz/public_html/templates', 'debug' => '1', 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
     (/home1/drillz/public_html/libraries/src/Document/ErrorDocument.php:140)
  at Joomla\CMS\Document\ErrorDocument->render(false, array('template' => 'yoo_everest', 'directory' => '/home1/drillz/public_html/templates', 'debug' => '1', 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
     (/home1/drillz/public_html/libraries/src/Error/Renderer/HtmlRenderer.php:77)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(Error))
     (/home1/drillz/public_html/libraries/src/Exception/ExceptionHandler.php:128)
  at Joomla\CMS\Exception\ExceptionHandler::render(object(Error))
     (/home1/drillz/public_html/libraries/src/Exception/ExceptionHandler.php:71)
  at Joomla\CMS\Exception\ExceptionHandler::handleException(object(Error))
     (/home1/drillz/public_html/libraries/src/Application/CMSApplication.php:311)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home1/drillz/public_html/includes/app.php:63)
  at require_once('/home1/drillz/public_html/includes/app.php')
     (/home1/drillz/public_html/index.php:32)                
[1/2] Error
Error:
Call to undefined method Joomla\CMS\Application\SiteApplication::isSite()

  at /home1/drillz/public_html/plugins/system/k2/k2.php:56
  at plgSystemK2->onAfterInitialise()
     (/home1/drillz/public_html/libraries/src/Plugin/CMSPlugin.php:285)
  at Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}(object(Event))
     (/home1/drillz/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:486)
  at Joomla\Event\Dispatcher->dispatch('onAfterInitialise', object(Event))
     (/home1/drillz/public_html/libraries/src/Application/EventAware.php:111)
  at Joomla\CMS\Application\WebApplication->triggerEvent('onAfterInitialise')
     (/home1/drillz/public_html/libraries/src/Application/CMSApplication.php:740)
  at Joomla\CMS\Application\CMSApplication->initialiseApp(array('language' => 'en-GB'))
     (/home1/drillz/public_html/libraries/src/Application/SiteApplication.php:709)
  at Joomla\CMS\Application\SiteApplication->initialiseApp()
     (/home1/drillz/public_html/libraries/src/Application/SiteApplication.php:224)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/home1/drillz/public_html/libraries/src/Application/CMSApplication.php:278)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home1/drillz/public_html/includes/app.php:63)
  at require_once('/home1/drillz/public_html/includes/app.php')
     (/home1/drillz/public_html/index.php:32)