Deprecated: Creation of dynamic property Joomla\CMS\Document\HtmlDocument::$helix is deprecated in /mnt/web010/c2/79/51913879/htdocs/joomlahelix/plugins/system/helix/core/helix.php on line 37
use Joomla\CMS\Uri\Uri;use Joomla\CMS\Language\Text;$app = Factory::getApplication();$doc = Factory::getDocument();$template = Helper::loadTemplateData();$params = $template->params;$fontCSS = '';function addGoogleFont($fonts){ // Store the file path $this->_file = $directory . '/' . $filename; // Get the file content ob_start(); require $directory . '/' . $filename; $contents = ob_get_clean(); } return $contents; } $this->baseurl = Uri::base(true); $this->params = $params['params'] ?? new Registry(); $this->template = $template; // Load $this->_template = $this->_loadTemplate($baseDir, $file); return $this; } /** * * @since 1.7.0 */ public function parse($params = []) { return $this->_fetchTemplate($params)->_parseTemplate(); } /** * Outputs the template to the browser. * public function render($caching = false, $params = []) { $this->_caching = $caching; if (empty($this->_template)) { $this->parse($params); } if (\array_key_exists('csp_nonce', $params) && $params['csp_nonce'] !== null) { $this->cspNonce = $params['csp_nonce']; } $this->debug = $params['debug'] ?? false; $this->error = $this->_error; $params['file'] = 'error.php'; return parent::render($cache, $params); } /** * Render the backtrace * ob_end_clean(); } $this->getDocument()->setTitle(Text::_('Error') . ': ' . $error->getCode()); return $this->getDocument()->render( false, [ 'template' => $template->template, 'directory' => JPATH_THEMES, 'debug' => JDEBUG, 'subject' => $app, 'document' => $renderer->getDocument(), ]) ); $data = $renderer->render($error); // If nothing was rendered, just use the message from the Exception if (empty($data)) { $data = $error->getMessage(); } * @since 3.10.0 */ public static function handleException(\Throwable $error) { static::logException($error); static::render($error); } /** * Render the error page based on an exception. * ); // Trigger the onError event. $this->dispatchEvent('onError', $event); ExceptionHandler::handleException($event->getError()); } // Trigger the onBeforeRespond event. $this->dispatchEvent( 'onBeforeRespond',// Set the application as global app\Joomla\CMS\Factory::$application = $app;// Execute the application.$app->execute(); // ... die die();}// Run the application - All executable code should be triggered through this filerequire_once __DIR__ . '/includes/app.php'; return $strSrc; } public static function loadHelixOverwrite(){ if (!JFactory::getApplication()->isAdmin()) { if( JVERSION >= 3 ){ // override core joomla 3 class if (!class_exists('JViewLegacy', false)) self::getInstance()->Import('core/classes/joomla30/viewlegacy.php'); { $helix_path = JPATH_PLUGINS.'/system/helix/core/helix.php'; if (file_exists($helix_path)) { require_once($helix_path); Helix::getInstance() ->loadHelixOverwrite() ->importShortCodeFiles(); } } } // Convert to indexed array for unpacking. $arguments = array_values($arguments); $result = $this->{$methodName}(...$arguments); // Ignore null results if ($result === null) { return; } foreach ($this->listeners[$event->getName()] as $listener) { if ($event->isStopped()) { return $event; } $listener($event); } } return $event; } $dispatcher = $this->getDispatcher(); } catch (\UnexpectedValueException $exception) { return null; } return $dispatcher->dispatch($eventName, $event ?: new ApplicationEvent($eventName, $this)); } /** * Method to run the application routines. * // Load the behaviour plugins PluginHelper::importPlugin('behaviour', null, true, $this->getDispatcher()); // Trigger the onAfterInitialise event. PluginHelper::importPlugin('system', null, true, $this->getDispatcher()); $this->dispatchEvent( 'onAfterInitialise', new AfterInitialiseEvent('onAfterInitialise', ['subject' => $this]) ); } $options['language'] = 'en-GB'; } } // Finish initialisation parent::initialiseApp($options); } /** * Load the library language files for the application * * @since 3.2 */ protected function doExecute() { // Initialise the application $this->initialiseApp(); // Mark afterInitialise in the profiler. JDEBUG ? $this->profiler->mark('afterInitialise') : null; // Route the application $this->sanityCheckSystemVariables(); $this->setupLogging(); $this->createExtensionNamespaceMap(); // Perform application routines. $this->doExecute(); // If we have an application document object, render it. if ($this->document instanceof \Joomla\CMS\Document\Document) { // Render the application output. $this->render();// Set the application as global app\Joomla\CMS\Factory::$application = $app;// Execute the application.$app->execute(); // ... die die();}// Run the application - All executable code should be triggered through this filerequire_once __DIR__ . '/includes/app.php';|
[2/2]
ClassNotFoundError
|
|---|
Symfony\Component\ErrorHandler\Error\ClassNotFoundError:
Attempted to load class "Helper" from namespace "HelixUltimate\Framework\Platform".
Did you forget a "use" statement for another namespace?
at /mnt/web010/c2/79/51913879/htdocs/joomlahelix/templates/shaper_helixultimate/error.php:19
at require()
(/mnt/web010/c2/79/51913879/htdocs/joomlahelix/libraries/src/Document/HtmlDocument.php:734)
at Joomla\CMS\Document\HtmlDocument->_loadTemplate()
(/mnt/web010/c2/79/51913879/htdocs/joomlahelix/libraries/src/Document/HtmlDocument.php:788)
at Joomla\CMS\Document\HtmlDocument->_fetchTemplate()
(/mnt/web010/c2/79/51913879/htdocs/joomlahelix/libraries/src/Document/HtmlDocument.php:625)
at Joomla\CMS\Document\HtmlDocument->parse()
(/mnt/web010/c2/79/51913879/htdocs/joomlahelix/libraries/src/Document/HtmlDocument.php:643)
at Joomla\CMS\Document\HtmlDocument->render()
(/mnt/web010/c2/79/51913879/htdocs/joomlahelix/libraries/src/Document/ErrorDocument.php:139)
at Joomla\CMS\Document\ErrorDocument->render()
(/mnt/web010/c2/79/51913879/htdocs/joomlahelix/libraries/src/Error/Renderer/HtmlRenderer.php:70)
at Joomla\CMS\Error\Renderer\HtmlRenderer->render()
(/mnt/web010/c2/79/51913879/htdocs/joomlahelix/libraries/src/Exception/ExceptionHandler.php:142)
at Joomla\CMS\Exception\ExceptionHandler::render()
(/mnt/web010/c2/79/51913879/htdocs/joomlahelix/libraries/src/Exception/ExceptionHandler.php:76)
at Joomla\CMS\Exception\ExceptionHandler::handleException()
(/mnt/web010/c2/79/51913879/htdocs/joomlahelix/libraries/src/Application/CMSApplication.php:334)
at Joomla\CMS\Application\CMSApplication->execute()
(/mnt/web010/c2/79/51913879/htdocs/joomlahelix/includes/app.php:58)
at require_once('/mnt/web010/c2/79/51913879/htdocs/joomlahelix/includes/app.php')
(/mnt/web010/c2/79/51913879/htdocs/joomlahelix/index.php:51)
|
|
[1/2]
Error
|
|---|
Error:
Call to undefined method Joomla\CMS\Application\SiteApplication::isAdmin()
at /mnt/web010/c2/79/51913879/htdocs/joomlahelix/plugins/system/helix/core/helix.php:1587
at Helix::loadHelixOverwrite()
(/mnt/web010/c2/79/51913879/htdocs/joomlahelix/plugins/system/helix/helix.php:22)
at plgSystemHelix->onAfterInitialise()
(/mnt/web010/c2/79/51913879/htdocs/joomlahelix/libraries/src/Plugin/CMSPlugin.php:320)
at Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}()
(/mnt/web010/c2/79/51913879/htdocs/joomlahelix/libraries/vendor/joomla/event/src/Dispatcher.php:454)
at Joomla\Event\Dispatcher->dispatch()
(/mnt/web010/c2/79/51913879/htdocs/joomlahelix/libraries/vendor/joomla/application/src/AbstractApplication.php:99)
at Joomla\Application\AbstractApplication->dispatchEvent()
(/mnt/web010/c2/79/51913879/htdocs/joomlahelix/libraries/src/Application/CMSApplication.php:813)
at Joomla\CMS\Application\CMSApplication->initialiseApp()
(/mnt/web010/c2/79/51913879/htdocs/joomlahelix/libraries/src/Application/SiteApplication.php:638)
at Joomla\CMS\Application\SiteApplication->initialiseApp()
(/mnt/web010/c2/79/51913879/htdocs/joomlahelix/libraries/src/Application/SiteApplication.php:237)
at Joomla\CMS\Application\SiteApplication->doExecute()
(/mnt/web010/c2/79/51913879/htdocs/joomlahelix/libraries/src/Application/CMSApplication.php:304)
at Joomla\CMS\Application\CMSApplication->execute()
(/mnt/web010/c2/79/51913879/htdocs/joomlahelix/includes/app.php:58)
at require_once('/mnt/web010/c2/79/51913879/htdocs/joomlahelix/includes/app.php')
(/mnt/web010/c2/79/51913879/htdocs/joomlahelix/index.php:51)
|