Warning: file_put_contents(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/administrator/logs/everything.php): Failed to open stream: Permission denied in /mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/vendor/joomla/filesystem/src/File.php on line 292 Warning: file_put_contents(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/administrator/logs/everything.php): Failed to open stream: Permission denied in /mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/vendor/joomla/filesystem/src/File.php on line 290
// File::delete($cacheFile); // } throw new FilesystemException('Unable to write cache file'); } } catch (FilesystemException) { try { Log::add( Text::sprintf('JLIB_LANGUAGE_ERROR_CANNOT_WRITE_CACHE', str_replace(JPATH_ROOT, '', $cacheFile)), Log::WARNING, 'language' */ public function loadClass($class) { if ($file = $this->findFile($class)) { $includeFile = self::$includeFile; $includeFile($file); return true; } return null; * * @since 3.4 */ public function loadClass($class) { if ($result = $this->loader->loadClass($class)) { \JLoader::applyAliasFor($class); } return $result; } if ($lang == null) { $lang = $this->default; } $this->lang = $lang; $this->metadata = LanguageHelper::getMetadata($this->lang); $this->setDebug($debug); /* * Let's load the default override once, so we can profit from that, too * But make sure, that we don't enforce it on each language file load. * * @since 4.0.0 */ public function createLanguage($lang, $debug = false): Language { return new Language($lang, $debug); }} * @since 4.0.0 */ public function createLanguage($lang, $debug = false): Language { if (!isset(self::$languages[$lang . $debug])) { self::$languages[$lang . $debug] = parent::createLanguage($lang, $debug); } return self::$languages[$lang . $debug]; }} ); $conf = self::getConfig(); $locale = $conf->get('language'); $debug = $conf->get('debug_lang'); $lang = self::getContainer()->get(LanguageFactoryInterface::class)->createLanguage($locale, $debug); return $lang; } /** ), E_USER_DEPRECATED ); if (!self::$language) { self::$language = self::createLanguage(); } return self::$language; } public static function getDate($time = 'now', $tzOffset = null) { static $classname; static $mainLocale; $language = self::getLanguage(); $locale = $language->getTag(); if (!isset($classname) || $locale != $mainLocale) { // Store the locale for future reference $mainLocale = $locale; * @since 1.5 */ public function load() { $loader = function () { $currentDate = Factory::getDate()->toSql(); $query = $this->db->createQuery() ->select( $this->db->quoteName( [ $referenceArgs = &$args; } // Just execute the callback if caching is disabled. if (empty($this->options['caching'])) { return \call_user_func_array($callback, $referenceArgs); } if (!$id) { // Generate an ID $id = $this->_makeId($callback, $args); try { /** @var CallbackController $cache */ $cache = $this->getCacheControllerFactory()->createCacheController('callback', ['defaultgroup' => 'com_menus']); $this->items = $cache->get($loader, [], md5(\get_class($this)), false); } catch (CacheExceptionInterface) { try { $this->items = $loader(); } catch (ExecutionFailureException $databaseException) { $this->app->enqueueMessage(Text::sprintf('JERROR_LOADING_MENUS', $databaseException->getMessage()), 'warning'); * @since 1.5 */ public function getMenu() { if (!$this->itemsLoaded) { $this->load(); foreach ($this->items as $item) { if ($item->home) { $this->default[trim($item->language)] = $item->id; } */ public function getItem($id) { $result = null; if (isset($this->getMenu()[$id])) { $result = &$this->getMenu()[$id]; } return $result; } { $menu = $this->getMenu(); $item = $menu->getActive(); if (!$item) { $item = $menu->getItem($this->input->getInt('Itemid', 0)); } $id = 0; if ($item) { * * @throws \InvalidArgumentException */ protected function initialiseTemplate(): void { $id = $this->getTemplateStyleId(); $templates = $this->getTemplates(); $template = $templates[$id] ?? $templates[0]; * @since 3.2 */ public function getTemplate($params = false) { if (!\is_object($this->template)) { $this->initialiseTemplate(); } if (!$this->isValidTemplate($this->template)) { throw new \InvalidArgumentException( Text::sprintf('JERROR_COULD_NOT_FIND_TEMPLATE', $this->template->template) public function render(\Throwable $error): string { $app = Factory::getApplication(); // Get the current template from the application $template = $app->getTemplate(true); // Push the error object into the document $this->getDocument()->setError($error); // Add registry file for the template asset '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'; // File::delete($cacheFile); // } throw new FilesystemException('Unable to write cache file'); } } catch (FilesystemException) { try { Log::add( Text::sprintf('JLIB_LANGUAGE_ERROR_CANNOT_WRITE_CACHE', str_replace(JPATH_ROOT, '', $cacheFile)), Log::WARNING, 'language' */ public function loadClass($class) { if ($file = $this->findFile($class)) { $includeFile = self::$includeFile; $includeFile($file); return true; } return null; * * @since 3.4 */ public function loadClass($class) { if ($result = $this->loader->loadClass($class)) { \JLoader::applyAliasFor($class); } return $result; } if (empty($options['language'])) { $options['language'] = $this->detectLanguage($user); } // One last check to make sure we have something if (!LanguageHelper::exists($options['language'])) { $lang = $this->config->get('language', 'en-GB'); if (LanguageHelper::exists($lang)) { $options['language'] = $lang; } else { * @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 // Mark beforeExecute in the profiler. JDEBUG ? $this->profiler->mark('beforeExecute event dispatched') : null; // 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]
ParseError
|
|---|
ParseError:
syntax error, unexpected token "catch", expecting "function"
at /mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/src/Language/LanguageHelper.php:519
at {closure:Composer\Autoload\ClassLoader::initializeIncludeClosure():575}()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/vendor/composer/ClassLoader.php:427)
at Composer\Autoload\ClassLoader->loadClass()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/src/Autoload/ClassLoader.php:59)
at Joomla\CMS\Autoload\ClassLoader->loadClass()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/src/Language/Language.php:116)
at Joomla\CMS\Language\Language->__construct()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/src/Language/LanguageFactory.php:35)
at Joomla\CMS\Language\LanguageFactory->createLanguage()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/src/Language/CachingLanguageFactory.php:45)
at Joomla\CMS\Language\CachingLanguageFactory->createLanguage()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/src/Factory.php:745)
at Joomla\CMS\Factory::createLanguage()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/src/Factory.php:305)
at Joomla\CMS\Factory::getLanguage()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/src/Factory.php:514)
at Joomla\CMS\Factory::getDate()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/src/Menu/SiteMenu.php:94)
at Joomla\CMS\Menu\SiteMenu->{closure:Joomla\CMS\Menu\SiteMenu::load():93}()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/src/Cache/Controller/CallbackController.php:51)
at Joomla\CMS\Cache\Controller\CallbackController->get()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/src/Menu/SiteMenu.php:179)
at Joomla\CMS\Menu\SiteMenu->load()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/src/Menu/AbstractMenu.php:333)
at Joomla\CMS\Menu\AbstractMenu->getMenu()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/src/Menu/AbstractMenu.php:164)
at Joomla\CMS\Menu\AbstractMenu->getItem()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/src/Application/SiteApplication.php:808)
at Joomla\CMS\Application\SiteApplication->getTemplateStyleId()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/src/Application/SiteApplication.php:756)
at Joomla\CMS\Application\SiteApplication->initialiseTemplate()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/src/Application/CMSApplication.php:721)
at Joomla\CMS\Application\CMSApplication->getTemplate()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/src/Error/Renderer/HtmlRenderer.php:50)
at Joomla\CMS\Error\Renderer\HtmlRenderer->render()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/src/Exception/ExceptionHandler.php:142)
at Joomla\CMS\Exception\ExceptionHandler::render()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/src/Exception/ExceptionHandler.php:76)
at Joomla\CMS\Exception\ExceptionHandler::handleException()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/src/Application/CMSApplication.php:350)
at Joomla\CMS\Application\CMSApplication->execute()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/includes/app.php:58)
at require_once('/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/includes/app.php')
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/index.php:51)
|
|
[1/2]
ParseError
|
|---|
ParseError:
syntax error, unexpected token "catch", expecting "function"
at /mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/src/Language/LanguageHelper.php:519
at {closure:Composer\Autoload\ClassLoader::initializeIncludeClosure():575}()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/vendor/composer/ClassLoader.php:427)
at Composer\Autoload\ClassLoader->loadClass()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/src/Autoload/ClassLoader.php:59)
at Joomla\CMS\Autoload\ClassLoader->loadClass()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/src/Application/SiteApplication.php:419)
at Joomla\CMS\Application\SiteApplication->initialiseApp()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/src/Application/SiteApplication.php:238)
at Joomla\CMS\Application\SiteApplication->doExecute()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/libraries/src/Application/CMSApplication.php:320)
at Joomla\CMS\Application\CMSApplication->execute()
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/includes/app.php:58)
at require_once('/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/includes/app.php')
(/mnt/web121/e3/03/52249903/htdocs/SSJ-J5/index.php:51)
|