* @since 4.0.0 */ public function useAsset(string $type, string $name): WebAssetManagerInterface { if ($this->locked) { throw new InvalidActionException('WebAssetManager is locked, you came late'); } // Check whether asset exists $asset = $this->registry->get($type, $name); if (empty($arguments[0])) { throw new \BadMethodCallException('An asset name is required'); } return $this->useAsset($type, $arguments[0]); } if (str_starts_with($method, 'addinline')) { $type = substr($method, 9); if (count($bootstrap_js)) { foreach ($bootstrap_js as $bootstrap) { $wa->useScript('bootstrap.'.$bootstrap['value']); } } $wa->useScript('astroid.script'); } if (Helper::getPluginParams()->get('astroid_debug', 0)) { $wa->useScript('bootstrap.tab'); $wa->useScript('astroid.debug'); }$document = Astroid\Framework::getDocument(); // Astroid Document$params = Astroid\Framework::getTemplate()->getParams(); // Astroid ParamsAstroid\Helper\Head::meta(); // site metaAstroid\Component\Utility::custom(); // custom codeAstroid\Helper\Head::scripts(); // site scriptsAstroid\Helper\Head::favicon(); // site faviconAstroid\Component\Utility::error(); // error page styling/** @var JDocumentError $this */ } catch (\Exception $e) { die('Please install and activate <a href="https://www.astroidframe.work/" target="_blank">Astroid Framework</a> in order to use this template.'); }}require Astroid\Helper\Overrides::getHTMLSystem(); // 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'; break; default: $message = 'Unknown PCRE error calling PCRE function'; } throw new \RuntimeException($message); } }} // Replace all unknown protocols in CSS background image. if (str_contains($buffer, 'style=')) { $regex_url = '\s*url\s*\(([\'\"]|\&\#0?3[49];)?(?!/|\&\#0?3[49];|' . $protocols . '|\#)([^\)\'\"]+)([\'\"]|\&\#0?3[49];)?\)'; $regex = '#style=\s*([\'\"])(.*):' . $regex_url . '#m'; $buffer = preg_replace($regex, 'style=$1$2: url($3' . $base . '$4$5)', $buffer); $this->checkBuffer($buffer); } // Replace all unknown protocols in OBJECT param tag. if (str_contains($buffer, '<param')) { // OBJECT <param name="xx", value="yy"> -- fix it only inside the <param> tag. $app = $event->getApplication(); if (!$app->isClient('site')) { return; } $this->rewriteUrls($app); } /** * Handle URL rewriting for error pages since they skip the normal render flow * 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. * // Set the application output data. $this->setBody($data); // Trigger the onAfterRender event. $this->dispatchEvent( 'onAfterRender', new AfterRenderEvent('onAfterRender', ['subject' => $this]) ); // Mark afterRender in the profiler. $this->set('themeInherits', $template->parent); break; } parent::render(); } /** * Route the application. * $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(); } // If gzip compression is enabled in configuration and the server is compliant, compress the output. if ($this->get('gzip') && !\ini_get('zlib.output_compression') && \ini_get('output_handler') !== 'ob_gzhandler') { $this->compress();// 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]
InvalidActionException
|
|---|
Joomla\CMS\WebAsset\Exception\InvalidActionException:
WebAssetManager is locked, you came late
at /var/www/vhosts/esv-knittelfeld.at/httpdocs/libraries/src/WebAsset/WebAssetManager.php:270
at Joomla\CMS\WebAsset\WebAssetManager->useAsset()
(/var/www/vhosts/esv-knittelfeld.at/httpdocs/libraries/src/WebAsset/WebAssetManager.php:208)
at Joomla\CMS\WebAsset\WebAssetManager->__call()
(/var/www/vhosts/esv-knittelfeld.at/httpdocs/libraries/astroid/framework/library/astroid/Helper/Head.php:70)
at Astroid\Helper\Head::scripts()
(/var/www/vhosts/esv-knittelfeld.at/httpdocs/libraries/astroid/framework/layouts/system/error.php:19)
at require('/var/www/vhosts/esv-knittelfeld.at/httpdocs/libraries/astroid/framework/layouts/system/error.php')
(/var/www/vhosts/esv-knittelfeld.at/httpdocs/templates/astroid_template_zero/error.php:18)
at require('/var/www/vhosts/esv-knittelfeld.at/httpdocs/templates/astroid_template_zero/error.php')
(/var/www/vhosts/esv-knittelfeld.at/httpdocs/libraries/src/Document/HtmlDocument.php:734)
at Joomla\CMS\Document\HtmlDocument->_loadTemplate()
(/var/www/vhosts/esv-knittelfeld.at/httpdocs/libraries/src/Document/HtmlDocument.php:788)
at Joomla\CMS\Document\HtmlDocument->_fetchTemplate()
(/var/www/vhosts/esv-knittelfeld.at/httpdocs/libraries/src/Document/HtmlDocument.php:625)
at Joomla\CMS\Document\HtmlDocument->parse()
(/var/www/vhosts/esv-knittelfeld.at/httpdocs/libraries/src/Document/HtmlDocument.php:643)
at Joomla\CMS\Document\HtmlDocument->render()
(/var/www/vhosts/esv-knittelfeld.at/httpdocs/libraries/src/Document/ErrorDocument.php:139)
at Joomla\CMS\Document\ErrorDocument->render()
(/var/www/vhosts/esv-knittelfeld.at/httpdocs/libraries/src/Error/Renderer/HtmlRenderer.php:70)
at Joomla\CMS\Error\Renderer\HtmlRenderer->render()
(/var/www/vhosts/esv-knittelfeld.at/httpdocs/libraries/src/Exception/ExceptionHandler.php:142)
at Joomla\CMS\Exception\ExceptionHandler::render()
(/var/www/vhosts/esv-knittelfeld.at/httpdocs/libraries/src/Exception/ExceptionHandler.php:76)
at Joomla\CMS\Exception\ExceptionHandler::handleException()
(/var/www/vhosts/esv-knittelfeld.at/httpdocs/libraries/src/Application/CMSApplication.php:334)
at Joomla\CMS\Application\CMSApplication->execute()
(/var/www/vhosts/esv-knittelfeld.at/httpdocs/includes/app.php:58)
at require_once('/var/www/vhosts/esv-knittelfeld.at/httpdocs/includes/app.php')
(/var/www/vhosts/esv-knittelfeld.at/httpdocs/index.php:51)
|
|
[1/2]
RuntimeException
|
|---|
RuntimeException:
PHP regular expression limit reached (pcre.backtrack_limit)
at /var/www/vhosts/esv-knittelfeld.at/httpdocs/plugins/system/sef/src/Extension/Sef.php:565
at Joomla\Plugin\System\Sef\Extension\Sef->checkBuffer()
(/var/www/vhosts/esv-knittelfeld.at/httpdocs/plugins/system/sef/src/Extension/Sef.php:354)
at Joomla\Plugin\System\Sef\Extension\Sef->rewriteUrls()
(/var/www/vhosts/esv-knittelfeld.at/httpdocs/plugins/system/sef/src/Extension/Sef.php:233)
at Joomla\Plugin\System\Sef\Extension\Sef->onAfterRender()
(/var/www/vhosts/esv-knittelfeld.at/httpdocs/libraries/vendor/joomla/event/src/Dispatcher.php:454)
at Joomla\Event\Dispatcher->dispatch()
(/var/www/vhosts/esv-knittelfeld.at/httpdocs/libraries/vendor/joomla/application/src/AbstractApplication.php:99)
at Joomla\Application\AbstractApplication->dispatchEvent()
(/var/www/vhosts/esv-knittelfeld.at/httpdocs/libraries/src/Application/CMSApplication.php:1126)
at Joomla\CMS\Application\CMSApplication->render()
(/var/www/vhosts/esv-knittelfeld.at/httpdocs/libraries/src/Application/SiteApplication.php:745)
at Joomla\CMS\Application\SiteApplication->render()
(/var/www/vhosts/esv-knittelfeld.at/httpdocs/libraries/src/Application/CMSApplication.php:309)
at Joomla\CMS\Application\CMSApplication->execute()
(/var/www/vhosts/esv-knittelfeld.at/httpdocs/includes/app.php:58)
at require_once('/var/www/vhosts/esv-knittelfeld.at/httpdocs/includes/app.php')
(/var/www/vhosts/esv-knittelfeld.at/httpdocs/index.php:51)
|