'Invalid header value type; must be a string or numeric; received %s', (is_object($value) ? get_class($value) : gettype($value)) )); } if (! self::isValid($value)) { throw new Exception\InvalidArgumentException(sprintf( '"%s" is not valid header value', $value )); } } . 'cannot be an empty array' ); } return array_map(function ($value) { HeaderSecurity::assertValid($value); return (string) $value; }, array_values($values)); } 'Invalid header value: must be a string or array of strings; ' . 'cannot be an empty array' ); } return array_map(function ($value) { HeaderSecurity::assertValid($value); return (string) $value; }, array_values($values)); } $new = clone $this; if ($new->hasHeader($header)) { unset($new->headers[$new->headerNames[$normalized]]); } $value = $this->filterHeaderValue($value); $new->headerNames[$normalized] = $header; $new->headers[$header] = $value; return $new; public function withAddedHeader($header, $value) : MessageInterface { $this->assertHeader($header); if (! $this->hasHeader($header)) { return $this->withHeader($header, $value); } $header = $this->headerNames[strtolower($header)]; $new = clone $this; if ($replace && $response->hasHeader($name)) { $response = $response->withoutHeader($name); } // Add the header to the internal array. $this->setResponse($response->withAddedHeader($name, $value)); return $this; } /** if ($errorReporting === "development" || $errorReporting === "maximum") { $status .= ' ' . str_replace("\n", ' ', $this->_error->getMessage()); } CmsFactory::getApplication()->setHeader('status', $status); // Set variables $this->debug = $params['debug'] ?? false; $this->error = $this->_error; ob_end_clean(); } $this->getDocument()->setTitle(Text::_('Error') . ': ' . $error->getCode()); return $this->getDocument()->render( false, [ 'template' => $template->template, 'directory' => JPATH_THEMES, 'debug' => JDEBUG, // Reset the document object in the factory, this gives us a clean slate and lets everything render properly Factory::$document = $renderer->getDocument(); Factory::getApplication()->loadDocument(Factory::$document); $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->triggerEvent('onError', $event); ExceptionHandler::handleException($event->getError()); } // Trigger the onBeforeRespond event. $this->getDispatcher()->dispatch('onBeforeRespond');// Set the application as global app\Joomla\CMS\Factory::$application = $app;// Execute the application.$app->execute(); * define() is used rather than "const" to not error for PHP 5.2 and lower */define('_JEXEC', 1);// Run the application - All executable code should be triggered through this filerequire_once dirname(__FILE__) . '/includes/app.php'; return new MultiSpanSassFormatException($this->originalMessage, $this->span, '', [$label => $span], $previous); } public function withTrace(Trace $trace, ?\Throwable $previous = null): SassRuntimeException { return new SimpleSassRuntimeException($this->originalMessage, $this->span, $trace, $previous); }} try { return $callback(); } catch (SassRuntimeException $e) { throw $e; } catch (SassException $e) { throw $e->withTrace($this->stackTrace($e->getSpan()), $e); } } /** * Runs $callback, and converts any {@see SassRuntimeException}s containing an // TODO check how to handle stdin $this->loadedUrls[$urlString] = true; } /** @var ExtensionStore $extensionStore */ [$css, $extensionStore] = $this->addExceptionTrace(fn() => $this->execute($importer, $node, $initialVariables)); $selectors = $extensionStore->getSimpleSelectors(); $unsatisfiedExtension = IterableUtil::firstOrNull($extensionStore->extensionsWhereTarget(fn (SimpleSelector $target) => !EquatableUtil::iterableContains($selectors, $target))); if ($unsatisfiedExtension !== null) { $this->throwForUnsatisfiedExtension($unsatisfiedExtension); } { $oldContext = self::$evaluationContext; self::$evaluationContext = $context; try { return $callback(); } finally { self::$evaluationContext = $oldContext; } } /** * @param array<string, Value> $initialVariables */ public function run(?Importer $importer, Stylesheet $node, array $initialVariables = []): EvaluateResult { return EvaluationContext::withEvaluationContext(new VisitorEvaluationContext($this, $node), function () use ($importer, $node, $initialVariables) { $url = $node->getSpan()->getSourceUrl(); if ($url !== null) { $urlString = (string) $url; $this->activeModules[$urlString] = null; } $variableName = str_replace('_', '-', $variableName); $initialVariables[$variableName] = $variable; } $evaluateResult = (new EvaluateVisitor($importCache, $functions, $logger, $this->quietDeps, sourceMap: $wantsSourceMap))->run($importer, $stylesheet, $initialVariables); $serializeResult = Serializer::serialize($evaluateResult->getStylesheet(), style: $this->outputStyle, sourceMap: $wantsSourceMap, charset: $this->charset, logger: $logger); $css = $serializeResult->css; $sourceMap = null; $importCache = $this->createImportCache($logger); $stylesheet = Stylesheet::parse($source, $syntax, $logger, $url); $importer ??= $url === null ? new NoOpImporter() : new FilesystemImporter(null); $result = $this->compileStylesheet($stylesheet, $importCache, $logger, $importer); $logger->summarize(); return $result; } // Button Overrides Function $content .= Utility::buttons_in_scss(); $scss->setOutputStyle(\ScssPhp\ScssPhp\OutputStyle::COMPRESSED); $css = $scss->compileString($content); Framework::getDebugger()->log('Rendering Scss'); Helper::putContents($path, $css->getCss()); } public function renderCss(): string // rendering scss Framework::getReporter('Logs')->add('Rendering Scss'); // clearing previous versions Helper::clearCache($template->template, ['compiled-' . $scssVersion, 'template']); // adding compiled scss in css file $this->renderScss($cssFile); if ($template->isDefault()) { Helper::clearCache($template->template, ['template']); File::copy($cssFile, JPATH_SITE . '/media/templates/site/' . $template->template . '/css/template.css'); } } else { public static function styles() { $document = Framework::getDocument(); $document->loadFontAwesome(); $document->astroidCSS(); return ''; }} Helper::triggerEvent('onBeforeAstroidRender'); // at last process all astroid:include $document = Framework::getDocument(); Component\Utility::meta(); // site meta Component\Utility::typography(); // site typography Component\Utility::cookieConsent(); // site cookie consent Helper\Head::styles(); // site Styles Component\LazyLoad::run(); // to execute lazy load Component\Utility::smoothScroll(); // smooth scroll utility Helper\Head::scripts(); // site scripts Component\Utility::layout(); // site layout } public function onBeforeRender() { if (defined('_ASTROID')) { Framework::getClient()->onBeforeRender(); } } public function onAfterRender() { } // Convert to indexed array for unpacking. $arguments = \array_values($arguments); $result = $this->{$methodName}(...$arguments); // Ignore null results if ($result === null) { return; } if ($event->isStopped()) { return $event; } $listener($event); } } return $event; } $event = new $className($eventName, $args); } else { throw new \InvalidArgumentException('The arguments must either be an event or an array'); } $result = $dispatcher->dispatch($eventName, $event); // @todo - There are still test cases where the result isn't defined, temporarily leave the isset check in place return !isset($result['result']) || \is_null($result['result']) ? [] : $result['result']; }} // Parse the document. $this->document->parse($this->docOptions); // Trigger the onBeforeRender event. PluginHelper::importPlugin('system'); $this->triggerEvent('onBeforeRender'); $caching = false; if ($this->isClient('site') && $this->get('caching') && $this->get('caching', 2) == 2 && !Factory::getUser()->get('id')) { $caching = true; $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(); * define() is used rather than "const" to not error for PHP 5.2 and lower */define('_JEXEC', 1);// Run the application - All executable code should be triggered through this filerequire_once dirname(__FILE__) . '/includes/app.php'; if (0 === stripos($error->getMessage(), 'expected')) { $span = $this->adjustExceptionSpan($span); } throw new SimpleSassFormatException($error->getMessage(), $span, $error); } } /** * Moves span to {@see firstNewlineBefore} if necessary. /** * @throws SassFormatException */ public function parse(): SelectorList { return $this->wrapSpanFormatException(function () { $selector = $this->selectorList(); if (!$this->scanner->isDone()) { $this->scanner->error('expected selector.'); } * * @throws SassFormatException if parsing fails. */ public static function parse(string $contents, ?LoggerInterface $logger = null, ?InterpolationMap $interpolationMap = null, ?UriInterface $url = null, bool $allowParent = true, bool $plainCss = false): SelectorList { return (new SelectorParser($contents, $logger, $url, $allowParent, $interpolationMap, $plainCss))->parse(); } /** * @param list<ComplexSelector> $components */ ); return null; } $parsedSelector = SelectorList::parse($selectorText, $this->logger, $selectorMap, plainCss: $this->getStylesheet()->isPlainCss()); $nest = !($this->getStyleRule()?->isFromPlainCss() ?? false); if ($nest) { if ($this->getStylesheet()->isPlainCss()) { foreach ($parsedSelector->getComponents() as $complex) { if (\count($complex->getLeadingCombinators()) > 0) { return $this->span; } public function accept(StatementVisitor $visitor) { return $visitor->visitStyleRule($this); } public function __toString(): string { return $this->selector . ' {' . implode(' ', $this->getChildren()) . '}'; * @phpstan-impure */ public function visitStylesheet(Stylesheet $node): ?Value { foreach ($node->getChildren() as $child) { $child->accept($this); } return null; } $oldStylesheet = $this->stylesheet; $oldInDependency = $this->inDependency; $this->importer = $result->getImporter(); $this->stylesheet = $stylesheet; $this->inDependency = $result->isDependency(); $this->visitStylesheet($stylesheet); $this->importer = $oldImporter; $this->stylesheet = $oldStylesheet; $this->inDependency = $oldInDependency; if ($url !== null) { private function withStackFrame(string $member, AstNode $nodeWithSpan, callable $callback) { $this->stack[] = [$this->member, $nodeWithSpan]; $oldMember = $this->member; $this->member = $member; $result = $callback(); $this->member = $oldMember; array_pop($this->stack); return $result; } /** * Adds the stylesheet imported by $import to the current document. */ private function visitDynamicImport(DynamicImport $import): void { $this->withStackFrame('@import', $import, function () use ($import) { $result = $this->loadStylesheet($import->getUrlString(), $import->getSpan(), true); $stylesheet = $result->getStylesheet(); $url = $stylesheet->getSpan()->getSourceUrl(); public function visitImportRule(ImportRule $node): ?Value { foreach ($node->getImports() as $import) { if ($import instanceof DynamicImport) { $this->visitDynamicImport($import); } else { assert($import instanceof StaticImport); $this->visitStaticImport($import); } } return $this->span; } public function accept(StatementVisitor $visitor) { return $visitor->visitImportRule($this); } public function __toString(): string { return '@import ' . implode(', ', $this->imports) . ';'; * @phpstan-impure */ public function visitStylesheet(Stylesheet $node): ?Value { foreach ($node->getChildren() as $child) { $child->accept($this); } return null; } $this->declarationName = null; $this->inUnknownAtRule = false; $this->atRootExcludingStyleRule = false; $this->inKeyFrames = false; $this->visitStylesheet($stylesheet); $css = $this->outOfOrderImports === null ? $root : new ModifiableCssStylesheet($stylesheet->getSpan(), $this->addOutOfOrderImports()); $this->importer = $oldImporter; $this->stylesheet = $oldStylesheet; $this->root = $oldRoot; */ private function withEnvironment(Environment $environment, callable $callback) { $oldEnvironment = $this->environment; $this->environment = $environment; $result = $callback(); $this->environment = $oldEnvironment; return $result; } $css = null; $extensionStore = ConcreteExtensionStore::create(); $this->withEnvironment($environment, function () use ($importer, $stylesheet, $extensionStore, &$css) { $oldImporter = $this->importer; $oldStylesheet = $this->stylesheet; $oldRoot = $this->root; $oldParent = $this->parent; $oldEndOfImports = $this->endOfImports; // TODO check how to handle stdin $this->loadedUrls[$urlString] = true; } /** @var ExtensionStore $extensionStore */ [$css, $extensionStore] = $this->addExceptionTrace(fn() => $this->execute($importer, $node, $initialVariables)); $selectors = $extensionStore->getSimpleSelectors(); $unsatisfiedExtension = IterableUtil::firstOrNull($extensionStore->extensionsWhereTarget(fn (SimpleSelector $target) => !EquatableUtil::iterableContains($selectors, $target))); if ($unsatisfiedExtension !== null) { $this->throwForUnsatisfiedExtension($unsatisfiedExtension); } * @param-immediately-invoked-callable $callback */ private function addExceptionTrace(callable $callback) { try { return $callback(); } catch (SassRuntimeException $e) { throw $e; } catch (SassException $e) { throw $e->withTrace($this->stackTrace($e->getSpan()), $e); } // TODO check how to handle stdin $this->loadedUrls[$urlString] = true; } /** @var ExtensionStore $extensionStore */ [$css, $extensionStore] = $this->addExceptionTrace(fn() => $this->execute($importer, $node, $initialVariables)); $selectors = $extensionStore->getSimpleSelectors(); $unsatisfiedExtension = IterableUtil::firstOrNull($extensionStore->extensionsWhereTarget(fn (SimpleSelector $target) => !EquatableUtil::iterableContains($selectors, $target))); if ($unsatisfiedExtension !== null) { $this->throwForUnsatisfiedExtension($unsatisfiedExtension); } { $oldContext = self::$evaluationContext; self::$evaluationContext = $context; try { return $callback(); } finally { self::$evaluationContext = $oldContext; } } /** * @param array<string, Value> $initialVariables */ public function run(?Importer $importer, Stylesheet $node, array $initialVariables = []): EvaluateResult { return EvaluationContext::withEvaluationContext(new VisitorEvaluationContext($this, $node), function () use ($importer, $node, $initialVariables) { $url = $node->getSpan()->getSourceUrl(); if ($url !== null) { $urlString = (string) $url; $this->activeModules[$urlString] = null; } $variableName = str_replace('_', '-', $variableName); $initialVariables[$variableName] = $variable; } $evaluateResult = (new EvaluateVisitor($importCache, $functions, $logger, $this->quietDeps, sourceMap: $wantsSourceMap))->run($importer, $stylesheet, $initialVariables); $serializeResult = Serializer::serialize($evaluateResult->getStylesheet(), style: $this->outputStyle, sourceMap: $wantsSourceMap, charset: $this->charset, logger: $logger); $css = $serializeResult->css; $sourceMap = null; $importCache = $this->createImportCache($logger); $stylesheet = Stylesheet::parse($source, $syntax, $logger, $url); $importer ??= $url === null ? new NoOpImporter() : new FilesystemImporter(null); $result = $this->compileStylesheet($stylesheet, $importCache, $logger, $importer); $logger->summarize(); return $result; } // Button Overrides Function $content .= Utility::buttons_in_scss(); $scss->setOutputStyle(\ScssPhp\ScssPhp\OutputStyle::COMPRESSED); $css = $scss->compileString($content); Framework::getDebugger()->log('Rendering Scss'); Helper::putContents($path, $css->getCss()); } public function renderCss(): string // rendering scss Framework::getReporter('Logs')->add('Rendering Scss'); // clearing previous versions Helper::clearCache($template->template, ['compiled-' . $scssVersion, 'template']); // adding compiled scss in css file $this->renderScss($cssFile); if ($template->isDefault()) { Helper::clearCache($template->template, ['template']); File::copy($cssFile, JPATH_SITE . '/media/templates/site/' . $template->template . '/css/template.css'); } } else { public static function styles() { $document = Framework::getDocument(); $document->loadFontAwesome(); $document->astroidCSS(); return ''; }} Helper::triggerEvent('onBeforeAstroidRender'); // at last process all astroid:include $document = Framework::getDocument(); Component\Utility::meta(); // site meta Component\Utility::typography(); // site typography Component\Utility::cookieConsent(); // site cookie consent Helper\Head::styles(); // site Styles Component\LazyLoad::run(); // to execute lazy load Component\Utility::smoothScroll(); // smooth scroll utility Helper\Head::scripts(); // site scripts Component\Utility::layout(); // site layout } public function onBeforeRender() { if (defined('_ASTROID')) { Framework::getClient()->onBeforeRender(); } } public function onAfterRender() { } // Convert to indexed array for unpacking. $arguments = \array_values($arguments); $result = $this->{$methodName}(...$arguments); // Ignore null results if ($result === null) { return; } if ($event->isStopped()) { return $event; } $listener($event); } } return $event; } $event = new $className($eventName, $args); } else { throw new \InvalidArgumentException('The arguments must either be an event or an array'); } $result = $dispatcher->dispatch($eventName, $event); // @todo - There are still test cases where the result isn't defined, temporarily leave the isset check in place return !isset($result['result']) || \is_null($result['result']) ? [] : $result['result']; }} // Parse the document. $this->document->parse($this->docOptions); // Trigger the onBeforeRender event. PluginHelper::importPlugin('system'); $this->triggerEvent('onBeforeRender'); $caching = false; if ($this->isClient('site') && $this->get('caching') && $this->get('caching', 2) == 2 && !Factory::getUser()->get('id')) { $caching = true; $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(); * define() is used rather than "const" to not error for PHP 5.2 and lower */define('_JEXEC', 1);// Run the application - All executable code should be triggered through this filerequire_once dirname(__FILE__) . '/includes/app.php'; $source = $this->mapSpan($target); $startIndex = $this->indexInContents($target->getStart()); $endIndex = $this->indexInContents($target->getEnd()); if (!IterableUtil::any(array_slice($this->interpolation->getContents(), $startIndex, $endIndex - $startIndex + 1), fn ($content) => $content instanceof Expression)) { return new FormatException($error->getMessage(), $source, $error); } return new MultiSourceFormatException($error->getMessage(), $source, '', ['error in interpolated output' => $target], $error); } } catch (FormatException $e) { if ($this->interpolationMap === null) { throw $e; } throw $this->interpolationMap->mapException($e); } } catch (MultiSourceFormatException $error) { $span = $error->getSpan(); $secondarySpans = $error->secondarySpans; /** * @throws SassFormatException */ public function parse(): SelectorList { return $this->wrapSpanFormatException(function () { $selector = $this->selectorList(); if (!$this->scanner->isDone()) { $this->scanner->error('expected selector.'); } * * @throws SassFormatException if parsing fails. */ public static function parse(string $contents, ?LoggerInterface $logger = null, ?InterpolationMap $interpolationMap = null, ?UriInterface $url = null, bool $allowParent = true, bool $plainCss = false): SelectorList { return (new SelectorParser($contents, $logger, $url, $allowParent, $interpolationMap, $plainCss))->parse(); } /** * @param list<ComplexSelector> $components */ ); return null; } $parsedSelector = SelectorList::parse($selectorText, $this->logger, $selectorMap, plainCss: $this->getStylesheet()->isPlainCss()); $nest = !($this->getStyleRule()?->isFromPlainCss() ?? false); if ($nest) { if ($this->getStylesheet()->isPlainCss()) { foreach ($parsedSelector->getComponents() as $complex) { if (\count($complex->getLeadingCombinators()) > 0) { return $this->span; } public function accept(StatementVisitor $visitor) { return $visitor->visitStyleRule($this); } public function __toString(): string { return $this->selector . ' {' . implode(' ', $this->getChildren()) . '}'; * @phpstan-impure */ public function visitStylesheet(Stylesheet $node): ?Value { foreach ($node->getChildren() as $child) { $child->accept($this); } return null; } $oldStylesheet = $this->stylesheet; $oldInDependency = $this->inDependency; $this->importer = $result->getImporter(); $this->stylesheet = $stylesheet; $this->inDependency = $result->isDependency(); $this->visitStylesheet($stylesheet); $this->importer = $oldImporter; $this->stylesheet = $oldStylesheet; $this->inDependency = $oldInDependency; if ($url !== null) { private function withStackFrame(string $member, AstNode $nodeWithSpan, callable $callback) { $this->stack[] = [$this->member, $nodeWithSpan]; $oldMember = $this->member; $this->member = $member; $result = $callback(); $this->member = $oldMember; array_pop($this->stack); return $result; } /** * Adds the stylesheet imported by $import to the current document. */ private function visitDynamicImport(DynamicImport $import): void { $this->withStackFrame('@import', $import, function () use ($import) { $result = $this->loadStylesheet($import->getUrlString(), $import->getSpan(), true); $stylesheet = $result->getStylesheet(); $url = $stylesheet->getSpan()->getSourceUrl(); public function visitImportRule(ImportRule $node): ?Value { foreach ($node->getImports() as $import) { if ($import instanceof DynamicImport) { $this->visitDynamicImport($import); } else { assert($import instanceof StaticImport); $this->visitStaticImport($import); } } return $this->span; } public function accept(StatementVisitor $visitor) { return $visitor->visitImportRule($this); } public function __toString(): string { return '@import ' . implode(', ', $this->imports) . ';'; * @phpstan-impure */ public function visitStylesheet(Stylesheet $node): ?Value { foreach ($node->getChildren() as $child) { $child->accept($this); } return null; } $this->declarationName = null; $this->inUnknownAtRule = false; $this->atRootExcludingStyleRule = false; $this->inKeyFrames = false; $this->visitStylesheet($stylesheet); $css = $this->outOfOrderImports === null ? $root : new ModifiableCssStylesheet($stylesheet->getSpan(), $this->addOutOfOrderImports()); $this->importer = $oldImporter; $this->stylesheet = $oldStylesheet; $this->root = $oldRoot; */ private function withEnvironment(Environment $environment, callable $callback) { $oldEnvironment = $this->environment; $this->environment = $environment; $result = $callback(); $this->environment = $oldEnvironment; return $result; } $css = null; $extensionStore = ConcreteExtensionStore::create(); $this->withEnvironment($environment, function () use ($importer, $stylesheet, $extensionStore, &$css) { $oldImporter = $this->importer; $oldStylesheet = $this->stylesheet; $oldRoot = $this->root; $oldParent = $this->parent; $oldEndOfImports = $this->endOfImports; // TODO check how to handle stdin $this->loadedUrls[$urlString] = true; } /** @var ExtensionStore $extensionStore */ [$css, $extensionStore] = $this->addExceptionTrace(fn() => $this->execute($importer, $node, $initialVariables)); $selectors = $extensionStore->getSimpleSelectors(); $unsatisfiedExtension = IterableUtil::firstOrNull($extensionStore->extensionsWhereTarget(fn (SimpleSelector $target) => !EquatableUtil::iterableContains($selectors, $target))); if ($unsatisfiedExtension !== null) { $this->throwForUnsatisfiedExtension($unsatisfiedExtension); } * @param-immediately-invoked-callable $callback */ private function addExceptionTrace(callable $callback) { try { return $callback(); } catch (SassRuntimeException $e) { throw $e; } catch (SassException $e) { throw $e->withTrace($this->stackTrace($e->getSpan()), $e); } // TODO check how to handle stdin $this->loadedUrls[$urlString] = true; } /** @var ExtensionStore $extensionStore */ [$css, $extensionStore] = $this->addExceptionTrace(fn() => $this->execute($importer, $node, $initialVariables)); $selectors = $extensionStore->getSimpleSelectors(); $unsatisfiedExtension = IterableUtil::firstOrNull($extensionStore->extensionsWhereTarget(fn (SimpleSelector $target) => !EquatableUtil::iterableContains($selectors, $target))); if ($unsatisfiedExtension !== null) { $this->throwForUnsatisfiedExtension($unsatisfiedExtension); } { $oldContext = self::$evaluationContext; self::$evaluationContext = $context; try { return $callback(); } finally { self::$evaluationContext = $oldContext; } } /** * @param array<string, Value> $initialVariables */ public function run(?Importer $importer, Stylesheet $node, array $initialVariables = []): EvaluateResult { return EvaluationContext::withEvaluationContext(new VisitorEvaluationContext($this, $node), function () use ($importer, $node, $initialVariables) { $url = $node->getSpan()->getSourceUrl(); if ($url !== null) { $urlString = (string) $url; $this->activeModules[$urlString] = null; } $variableName = str_replace('_', '-', $variableName); $initialVariables[$variableName] = $variable; } $evaluateResult = (new EvaluateVisitor($importCache, $functions, $logger, $this->quietDeps, sourceMap: $wantsSourceMap))->run($importer, $stylesheet, $initialVariables); $serializeResult = Serializer::serialize($evaluateResult->getStylesheet(), style: $this->outputStyle, sourceMap: $wantsSourceMap, charset: $this->charset, logger: $logger); $css = $serializeResult->css; $sourceMap = null; $importCache = $this->createImportCache($logger); $stylesheet = Stylesheet::parse($source, $syntax, $logger, $url); $importer ??= $url === null ? new NoOpImporter() : new FilesystemImporter(null); $result = $this->compileStylesheet($stylesheet, $importCache, $logger, $importer); $logger->summarize(); return $result; } // Button Overrides Function $content .= Utility::buttons_in_scss(); $scss->setOutputStyle(\ScssPhp\ScssPhp\OutputStyle::COMPRESSED); $css = $scss->compileString($content); Framework::getDebugger()->log('Rendering Scss'); Helper::putContents($path, $css->getCss()); } public function renderCss(): string // rendering scss Framework::getReporter('Logs')->add('Rendering Scss'); // clearing previous versions Helper::clearCache($template->template, ['compiled-' . $scssVersion, 'template']); // adding compiled scss in css file $this->renderScss($cssFile); if ($template->isDefault()) { Helper::clearCache($template->template, ['template']); File::copy($cssFile, JPATH_SITE . '/media/templates/site/' . $template->template . '/css/template.css'); } } else { public static function styles() { $document = Framework::getDocument(); $document->loadFontAwesome(); $document->astroidCSS(); return ''; }} Helper::triggerEvent('onBeforeAstroidRender'); // at last process all astroid:include $document = Framework::getDocument(); Component\Utility::meta(); // site meta Component\Utility::typography(); // site typography Component\Utility::cookieConsent(); // site cookie consent Helper\Head::styles(); // site Styles Component\LazyLoad::run(); // to execute lazy load Component\Utility::smoothScroll(); // smooth scroll utility Helper\Head::scripts(); // site scripts Component\Utility::layout(); // site layout } public function onBeforeRender() { if (defined('_ASTROID')) { Framework::getClient()->onBeforeRender(); } } public function onAfterRender() { } // Convert to indexed array for unpacking. $arguments = \array_values($arguments); $result = $this->{$methodName}(...$arguments); // Ignore null results if ($result === null) { return; } if ($event->isStopped()) { return $event; } $listener($event); } } return $event; } $event = new $className($eventName, $args); } else { throw new \InvalidArgumentException('The arguments must either be an event or an array'); } $result = $dispatcher->dispatch($eventName, $event); // @todo - There are still test cases where the result isn't defined, temporarily leave the isset check in place return !isset($result['result']) || \is_null($result['result']) ? [] : $result['result']; }} // Parse the document. $this->document->parse($this->docOptions); // Trigger the onBeforeRender event. PluginHelper::importPlugin('system'); $this->triggerEvent('onBeforeRender'); $caching = false; if ($this->isClient('site') && $this->get('caching') && $this->get('caching', 2) == 2 && !Factory::getUser()->get('id')) { $caching = true; $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(); * define() is used rather than "const" to not error for PHP 5.2 and lower */define('_JEXEC', 1);// Run the application - All executable code should be triggered through this filerequire_once dirname(__FILE__) . '/includes/app.php'; $position ??= $this->position; $length ??= 0; $span = $this->sourceFile->span($position, $position + $length); throw new FormatException($message, $span); } private function getLastMatchStart(): ?int { // Lazily unset $this->lastMatchStart so that we avoid extra assignments in { return $this->wrapSpanFormatException(function () { $selector = $this->selectorList(); if (!$this->scanner->isDone()) { $this->scanner->error('expected selector.'); } return $selector; }); } */ protected function wrapSpanFormatException(callable $callback) { try { try { return $callback(); } catch (FormatException $e) { if ($this->interpolationMap === null) { throw $e; } /** * @throws SassFormatException */ public function parse(): SelectorList { return $this->wrapSpanFormatException(function () { $selector = $this->selectorList(); if (!$this->scanner->isDone()) { $this->scanner->error('expected selector.'); } * * @throws SassFormatException if parsing fails. */ public static function parse(string $contents, ?LoggerInterface $logger = null, ?InterpolationMap $interpolationMap = null, ?UriInterface $url = null, bool $allowParent = true, bool $plainCss = false): SelectorList { return (new SelectorParser($contents, $logger, $url, $allowParent, $interpolationMap, $plainCss))->parse(); } /** * @param list<ComplexSelector> $components */ ); return null; } $parsedSelector = SelectorList::parse($selectorText, $this->logger, $selectorMap, plainCss: $this->getStylesheet()->isPlainCss()); $nest = !($this->getStyleRule()?->isFromPlainCss() ?? false); if ($nest) { if ($this->getStylesheet()->isPlainCss()) { foreach ($parsedSelector->getComponents() as $complex) { if (\count($complex->getLeadingCombinators()) > 0) { return $this->span; } public function accept(StatementVisitor $visitor) { return $visitor->visitStyleRule($this); } public function __toString(): string { return $this->selector . ' {' . implode(' ', $this->getChildren()) . '}'; * @phpstan-impure */ public function visitStylesheet(Stylesheet $node): ?Value { foreach ($node->getChildren() as $child) { $child->accept($this); } return null; } $oldStylesheet = $this->stylesheet; $oldInDependency = $this->inDependency; $this->importer = $result->getImporter(); $this->stylesheet = $stylesheet; $this->inDependency = $result->isDependency(); $this->visitStylesheet($stylesheet); $this->importer = $oldImporter; $this->stylesheet = $oldStylesheet; $this->inDependency = $oldInDependency; if ($url !== null) { private function withStackFrame(string $member, AstNode $nodeWithSpan, callable $callback) { $this->stack[] = [$this->member, $nodeWithSpan]; $oldMember = $this->member; $this->member = $member; $result = $callback(); $this->member = $oldMember; array_pop($this->stack); return $result; } /** * Adds the stylesheet imported by $import to the current document. */ private function visitDynamicImport(DynamicImport $import): void { $this->withStackFrame('@import', $import, function () use ($import) { $result = $this->loadStylesheet($import->getUrlString(), $import->getSpan(), true); $stylesheet = $result->getStylesheet(); $url = $stylesheet->getSpan()->getSourceUrl(); public function visitImportRule(ImportRule $node): ?Value { foreach ($node->getImports() as $import) { if ($import instanceof DynamicImport) { $this->visitDynamicImport($import); } else { assert($import instanceof StaticImport); $this->visitStaticImport($import); } } return $this->span; } public function accept(StatementVisitor $visitor) { return $visitor->visitImportRule($this); } public function __toString(): string { return '@import ' . implode(', ', $this->imports) . ';'; * @phpstan-impure */ public function visitStylesheet(Stylesheet $node): ?Value { foreach ($node->getChildren() as $child) { $child->accept($this); } return null; } $this->declarationName = null; $this->inUnknownAtRule = false; $this->atRootExcludingStyleRule = false; $this->inKeyFrames = false; $this->visitStylesheet($stylesheet); $css = $this->outOfOrderImports === null ? $root : new ModifiableCssStylesheet($stylesheet->getSpan(), $this->addOutOfOrderImports()); $this->importer = $oldImporter; $this->stylesheet = $oldStylesheet; $this->root = $oldRoot; */ private function withEnvironment(Environment $environment, callable $callback) { $oldEnvironment = $this->environment; $this->environment = $environment; $result = $callback(); $this->environment = $oldEnvironment; return $result; } $css = null; $extensionStore = ConcreteExtensionStore::create(); $this->withEnvironment($environment, function () use ($importer, $stylesheet, $extensionStore, &$css) { $oldImporter = $this->importer; $oldStylesheet = $this->stylesheet; $oldRoot = $this->root; $oldParent = $this->parent; $oldEndOfImports = $this->endOfImports; // TODO check how to handle stdin $this->loadedUrls[$urlString] = true; } /** @var ExtensionStore $extensionStore */ [$css, $extensionStore] = $this->addExceptionTrace(fn() => $this->execute($importer, $node, $initialVariables)); $selectors = $extensionStore->getSimpleSelectors(); $unsatisfiedExtension = IterableUtil::firstOrNull($extensionStore->extensionsWhereTarget(fn (SimpleSelector $target) => !EquatableUtil::iterableContains($selectors, $target))); if ($unsatisfiedExtension !== null) { $this->throwForUnsatisfiedExtension($unsatisfiedExtension); } * @param-immediately-invoked-callable $callback */ private function addExceptionTrace(callable $callback) { try { return $callback(); } catch (SassRuntimeException $e) { throw $e; } catch (SassException $e) { throw $e->withTrace($this->stackTrace($e->getSpan()), $e); } // TODO check how to handle stdin $this->loadedUrls[$urlString] = true; } /** @var ExtensionStore $extensionStore */ [$css, $extensionStore] = $this->addExceptionTrace(fn() => $this->execute($importer, $node, $initialVariables)); $selectors = $extensionStore->getSimpleSelectors(); $unsatisfiedExtension = IterableUtil::firstOrNull($extensionStore->extensionsWhereTarget(fn (SimpleSelector $target) => !EquatableUtil::iterableContains($selectors, $target))); if ($unsatisfiedExtension !== null) { $this->throwForUnsatisfiedExtension($unsatisfiedExtension); } { $oldContext = self::$evaluationContext; self::$evaluationContext = $context; try { return $callback(); } finally { self::$evaluationContext = $oldContext; } } /** * @param array<string, Value> $initialVariables */ public function run(?Importer $importer, Stylesheet $node, array $initialVariables = []): EvaluateResult { return EvaluationContext::withEvaluationContext(new VisitorEvaluationContext($this, $node), function () use ($importer, $node, $initialVariables) { $url = $node->getSpan()->getSourceUrl(); if ($url !== null) { $urlString = (string) $url; $this->activeModules[$urlString] = null; } $variableName = str_replace('_', '-', $variableName); $initialVariables[$variableName] = $variable; } $evaluateResult = (new EvaluateVisitor($importCache, $functions, $logger, $this->quietDeps, sourceMap: $wantsSourceMap))->run($importer, $stylesheet, $initialVariables); $serializeResult = Serializer::serialize($evaluateResult->getStylesheet(), style: $this->outputStyle, sourceMap: $wantsSourceMap, charset: $this->charset, logger: $logger); $css = $serializeResult->css; $sourceMap = null; $importCache = $this->createImportCache($logger); $stylesheet = Stylesheet::parse($source, $syntax, $logger, $url); $importer ??= $url === null ? new NoOpImporter() : new FilesystemImporter(null); $result = $this->compileStylesheet($stylesheet, $importCache, $logger, $importer); $logger->summarize(); return $result; } // Button Overrides Function $content .= Utility::buttons_in_scss(); $scss->setOutputStyle(\ScssPhp\ScssPhp\OutputStyle::COMPRESSED); $css = $scss->compileString($content); Framework::getDebugger()->log('Rendering Scss'); Helper::putContents($path, $css->getCss()); } public function renderCss(): string // rendering scss Framework::getReporter('Logs')->add('Rendering Scss'); // clearing previous versions Helper::clearCache($template->template, ['compiled-' . $scssVersion, 'template']); // adding compiled scss in css file $this->renderScss($cssFile); if ($template->isDefault()) { Helper::clearCache($template->template, ['template']); File::copy($cssFile, JPATH_SITE . '/media/templates/site/' . $template->template . '/css/template.css'); } } else { public static function styles() { $document = Framework::getDocument(); $document->loadFontAwesome(); $document->astroidCSS(); return ''; }} Helper::triggerEvent('onBeforeAstroidRender'); // at last process all astroid:include $document = Framework::getDocument(); Component\Utility::meta(); // site meta Component\Utility::typography(); // site typography Component\Utility::cookieConsent(); // site cookie consent Helper\Head::styles(); // site Styles Component\LazyLoad::run(); // to execute lazy load Component\Utility::smoothScroll(); // smooth scroll utility Helper\Head::scripts(); // site scripts Component\Utility::layout(); // site layout } public function onBeforeRender() { if (defined('_ASTROID')) { Framework::getClient()->onBeforeRender(); } } public function onAfterRender() { } // Convert to indexed array for unpacking. $arguments = \array_values($arguments); $result = $this->{$methodName}(...$arguments); // Ignore null results if ($result === null) { return; } if ($event->isStopped()) { return $event; } $listener($event); } } return $event; } $event = new $className($eventName, $args); } else { throw new \InvalidArgumentException('The arguments must either be an event or an array'); } $result = $dispatcher->dispatch($eventName, $event); // @todo - There are still test cases where the result isn't defined, temporarily leave the isset check in place return !isset($result['result']) || \is_null($result['result']) ? [] : $result['result']; }} // Parse the document. $this->document->parse($this->docOptions); // Trigger the onBeforeRender event. PluginHelper::importPlugin('system'); $this->triggerEvent('onBeforeRender'); $caching = false; if ($this->isClient('site') && $this->get('caching') && $this->get('caching', 2) == 2 && !Factory::getUser()->get('id')) { $caching = true; $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(); * define() is used rather than "const" to not error for PHP 5.2 and lower */define('_JEXEC', 1);// Run the application - All executable code should be triggered through this filerequire_once dirname(__FILE__) . '/includes/app.php';|
[5/5]
InvalidArgumentException
|
|---|
Laminas\Diactoros\Exception\InvalidArgumentException:
"500 expected selector. , 187 | .headline-warning 3.module-title{
| ^ ' custom/custom.scss 187:19 @import - 1:266 root stylesheet" is not valid header value
at /homepages/29/d593192340/htdocs/metabolic-engineering/libraries/vendor/laminas/laminas-diactoros/src/HeaderSecurity.php:146
at Laminas\Diactoros\HeaderSecurity::assertValid()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/vendor/laminas/laminas-diactoros/src/MessageTrait.php:399)
at Laminas\Diactoros\Response->Laminas\Diactoros\{closure}()
at array_map()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/vendor/laminas/laminas-diactoros/src/MessageTrait.php:398)
at Laminas\Diactoros\Response->filterHeaderValue()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/vendor/laminas/laminas-diactoros/src/MessageTrait.php:213)
at Laminas\Diactoros\Response->withHeader()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/vendor/laminas/laminas-diactoros/src/MessageTrait.php:243)
at Laminas\Diactoros\Response->withAddedHeader()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/vendor/joomla/application/src/AbstractWebApplication.php:563)
at Joomla\Application\AbstractWebApplication->setHeader()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/src/Document/ErrorDocument.php:131)
at Joomla\CMS\Document\ErrorDocument->render()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/src/Error/Renderer/HtmlRenderer.php:70)
at Joomla\CMS\Error\Renderer\HtmlRenderer->render()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/src/Exception/ExceptionHandler.php:121)
at Joomla\CMS\Exception\ExceptionHandler::render()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/src/Exception/ExceptionHandler.php:72)
at Joomla\CMS\Exception\ExceptionHandler::handleException()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/src/Application/CMSApplication.php:322)
at Joomla\CMS\Application\CMSApplication->execute()
(/homepages/29/d593192340/htdocs/metabolic-engineering/includes/app.php:61)
at require_once('/homepages/29/d593192340/htdocs/metabolic-engineering/includes/app.php')
(/homepages/29/d593192340/htdocs/metabolic-engineering/index.php:32)
|
|
[4/5]
SimpleSassRuntimeException
|
|---|
ScssPhp\ScssPhp\Exception\SimpleSassRuntimeException:
expected selector.
,
187 | .headline-warning 3.module-title{
| ^
'
custom/custom.scss 187:19 @import
- 1:266 root stylesheet
at /homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Exception/SimpleSassFormatException.php:62
at ScssPhp\ScssPhp\Exception\SimpleSassFormatException->withTrace()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:3499)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->addExceptionTrace()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:621)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->ScssPhp\ScssPhp\Evaluation\{closure}()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluationContext.php:57)
at ScssPhp\ScssPhp\Evaluation\EvaluationContext::withEvaluationContext()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:610)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->run()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Compiler.php:488)
at ScssPhp\ScssPhp\Compiler->compileStylesheet()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Compiler.php:421)
at ScssPhp\ScssPhp\Compiler->compileString()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/astroid/Document.php:1142)
at Astroid\Document->renderScss()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/astroid/Document.php:1331)
at Astroid\Document->astroidCSS()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/astroid/Helper/Head.php:103)
at Astroid\Helper\Head::styles()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/astroid/Site.php:38)
at Astroid\Site->onBeforeRender()
(/homepages/29/d593192340/htdocs/metabolic-engineering/plugins/system/astroid/src/Extension/AstroidPlugin.php:61)
at Joomla\Plugin\System\Astroid\Extension\AstroidPlugin->onBeforeRender()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/src/Plugin/CMSPlugin.php:284)
at Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/vendor/joomla/event/src/Dispatcher.php:486)
at Joomla\Event\Dispatcher->dispatch()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/src/Application/EventAware.php:111)
at Joomla\CMS\Application\WebApplication->triggerEvent()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/src/Application/CMSApplication.php:1016)
at Joomla\CMS\Application\CMSApplication->render()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/src/Application/SiteApplication.php:724)
at Joomla\CMS\Application\SiteApplication->render()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/src/Application/CMSApplication.php:298)
at Joomla\CMS\Application\CMSApplication->execute()
(/homepages/29/d593192340/htdocs/metabolic-engineering/includes/app.php:61)
at require_once('/homepages/29/d593192340/htdocs/metabolic-engineering/includes/app.php')
(/homepages/29/d593192340/htdocs/metabolic-engineering/index.php:32)
|
|
[3/5]
SimpleSassFormatException
|
|---|
ScssPhp\ScssPhp\Exception\SimpleSassFormatException:
expected selector.
,
187 | .headline-warning 3.module-title{
| ^
'
templates/tp_business/scss/custom/custom.scss 187:19 root stylesheet
at /homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Parser/Parser.php:965
at ScssPhp\ScssPhp\Parser\Parser->wrapSpanFormatException()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Parser/SelectorParser.php:83)
at ScssPhp\ScssPhp\Parser\SelectorParser->parse()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Ast/Selector/SelectorList.php:68)
at ScssPhp\ScssPhp\Ast\Selector\SelectorList::parse()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:1674)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->visitStyleRule()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Ast/Sass/Statement/StyleRule.php:62)
at ScssPhp\ScssPhp\Ast\Sass\Statement\StyleRule->accept()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:736)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->visitStylesheet()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:1339)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->ScssPhp\ScssPhp\Evaluation\{closure}()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:3334)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->withStackFrame()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:1313)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->visitDynamicImport()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:1298)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->visitImportRule()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Ast/Sass/Statement/ImportRule.php:58)
at ScssPhp\ScssPhp\Ast\Sass\Statement\ImportRule->accept()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:736)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->visitStylesheet()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:677)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->ScssPhp\ScssPhp\Evaluation\{closure}()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:3043)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->withEnvironment()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:648)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->execute()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:621)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->ScssPhp\ScssPhp\Evaluation\{closure}()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:3495)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->addExceptionTrace()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:621)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->ScssPhp\ScssPhp\Evaluation\{closure}()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluationContext.php:57)
at ScssPhp\ScssPhp\Evaluation\EvaluationContext::withEvaluationContext()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:610)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->run()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Compiler.php:488)
at ScssPhp\ScssPhp\Compiler->compileStylesheet()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Compiler.php:421)
at ScssPhp\ScssPhp\Compiler->compileString()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/astroid/Document.php:1142)
at Astroid\Document->renderScss()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/astroid/Document.php:1331)
at Astroid\Document->astroidCSS()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/astroid/Helper/Head.php:103)
at Astroid\Helper\Head::styles()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/astroid/Site.php:38)
at Astroid\Site->onBeforeRender()
(/homepages/29/d593192340/htdocs/metabolic-engineering/plugins/system/astroid/src/Extension/AstroidPlugin.php:61)
at Joomla\Plugin\System\Astroid\Extension\AstroidPlugin->onBeforeRender()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/src/Plugin/CMSPlugin.php:284)
at Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/vendor/joomla/event/src/Dispatcher.php:486)
at Joomla\Event\Dispatcher->dispatch()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/src/Application/EventAware.php:111)
at Joomla\CMS\Application\WebApplication->triggerEvent()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/src/Application/CMSApplication.php:1016)
at Joomla\CMS\Application\CMSApplication->render()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/src/Application/SiteApplication.php:724)
at Joomla\CMS\Application\SiteApplication->render()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/src/Application/CMSApplication.php:298)
at Joomla\CMS\Application\CMSApplication->execute()
(/homepages/29/d593192340/htdocs/metabolic-engineering/includes/app.php:61)
at require_once('/homepages/29/d593192340/htdocs/metabolic-engineering/includes/app.php')
(/homepages/29/d593192340/htdocs/metabolic-engineering/index.php:32)
|
|
[2/5]
FormatException
|
|---|
ScssPhp\ScssPhp\Parser\FormatException:
expected selector.
at /homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Parser/InterpolationMap.php:72
at ScssPhp\ScssPhp\Parser\InterpolationMap->mapException()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Parser/Parser.php:946)
at ScssPhp\ScssPhp\Parser\Parser->wrapSpanFormatException()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Parser/SelectorParser.php:83)
at ScssPhp\ScssPhp\Parser\SelectorParser->parse()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Ast/Selector/SelectorList.php:68)
at ScssPhp\ScssPhp\Ast\Selector\SelectorList::parse()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:1674)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->visitStyleRule()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Ast/Sass/Statement/StyleRule.php:62)
at ScssPhp\ScssPhp\Ast\Sass\Statement\StyleRule->accept()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:736)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->visitStylesheet()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:1339)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->ScssPhp\ScssPhp\Evaluation\{closure}()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:3334)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->withStackFrame()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:1313)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->visitDynamicImport()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:1298)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->visitImportRule()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Ast/Sass/Statement/ImportRule.php:58)
at ScssPhp\ScssPhp\Ast\Sass\Statement\ImportRule->accept()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:736)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->visitStylesheet()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:677)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->ScssPhp\ScssPhp\Evaluation\{closure}()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:3043)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->withEnvironment()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:648)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->execute()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:621)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->ScssPhp\ScssPhp\Evaluation\{closure}()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:3495)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->addExceptionTrace()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:621)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->ScssPhp\ScssPhp\Evaluation\{closure}()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluationContext.php:57)
at ScssPhp\ScssPhp\Evaluation\EvaluationContext::withEvaluationContext()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:610)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->run()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Compiler.php:488)
at ScssPhp\ScssPhp\Compiler->compileStylesheet()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Compiler.php:421)
at ScssPhp\ScssPhp\Compiler->compileString()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/astroid/Document.php:1142)
at Astroid\Document->renderScss()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/astroid/Document.php:1331)
at Astroid\Document->astroidCSS()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/astroid/Helper/Head.php:103)
at Astroid\Helper\Head::styles()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/astroid/Site.php:38)
at Astroid\Site->onBeforeRender()
(/homepages/29/d593192340/htdocs/metabolic-engineering/plugins/system/astroid/src/Extension/AstroidPlugin.php:61)
at Joomla\Plugin\System\Astroid\Extension\AstroidPlugin->onBeforeRender()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/src/Plugin/CMSPlugin.php:284)
at Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/vendor/joomla/event/src/Dispatcher.php:486)
at Joomla\Event\Dispatcher->dispatch()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/src/Application/EventAware.php:111)
at Joomla\CMS\Application\WebApplication->triggerEvent()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/src/Application/CMSApplication.php:1016)
at Joomla\CMS\Application\CMSApplication->render()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/src/Application/SiteApplication.php:724)
at Joomla\CMS\Application\SiteApplication->render()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/src/Application/CMSApplication.php:298)
at Joomla\CMS\Application\CMSApplication->execute()
(/homepages/29/d593192340/htdocs/metabolic-engineering/includes/app.php:61)
at require_once('/homepages/29/d593192340/htdocs/metabolic-engineering/includes/app.php')
(/homepages/29/d593192340/htdocs/metabolic-engineering/index.php:32)
|
|
[1/5]
FormatException
|
|---|
ScssPhp\ScssPhp\Parser\FormatException:
expected selector.
at /homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Parser/StringScanner.php:318
at ScssPhp\ScssPhp\Parser\StringScanner->error()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Parser/SelectorParser.php:87)
at ScssPhp\ScssPhp\Parser\SelectorParser->ScssPhp\ScssPhp\Parser\{closure}()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Parser/Parser.php:940)
at ScssPhp\ScssPhp\Parser\Parser->wrapSpanFormatException()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Parser/SelectorParser.php:83)
at ScssPhp\ScssPhp\Parser\SelectorParser->parse()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Ast/Selector/SelectorList.php:68)
at ScssPhp\ScssPhp\Ast\Selector\SelectorList::parse()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:1674)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->visitStyleRule()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Ast/Sass/Statement/StyleRule.php:62)
at ScssPhp\ScssPhp\Ast\Sass\Statement\StyleRule->accept()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:736)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->visitStylesheet()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:1339)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->ScssPhp\ScssPhp\Evaluation\{closure}()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:3334)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->withStackFrame()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:1313)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->visitDynamicImport()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:1298)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->visitImportRule()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Ast/Sass/Statement/ImportRule.php:58)
at ScssPhp\ScssPhp\Ast\Sass\Statement\ImportRule->accept()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:736)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->visitStylesheet()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:677)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->ScssPhp\ScssPhp\Evaluation\{closure}()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:3043)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->withEnvironment()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:648)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->execute()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:621)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->ScssPhp\ScssPhp\Evaluation\{closure}()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:3495)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->addExceptionTrace()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:621)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->ScssPhp\ScssPhp\Evaluation\{closure}()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluationContext.php:57)
at ScssPhp\ScssPhp\Evaluation\EvaluationContext::withEvaluationContext()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Evaluation/EvaluateVisitor.php:610)
at ScssPhp\ScssPhp\Evaluation\EvaluateVisitor->run()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Compiler.php:488)
at ScssPhp\ScssPhp\Compiler->compileStylesheet()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/vendor/scssphp/scssphp/src/Compiler.php:421)
at ScssPhp\ScssPhp\Compiler->compileString()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/astroid/Document.php:1142)
at Astroid\Document->renderScss()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/astroid/Document.php:1331)
at Astroid\Document->astroidCSS()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/astroid/Helper/Head.php:103)
at Astroid\Helper\Head::styles()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/astroid/framework/library/astroid/Site.php:38)
at Astroid\Site->onBeforeRender()
(/homepages/29/d593192340/htdocs/metabolic-engineering/plugins/system/astroid/src/Extension/AstroidPlugin.php:61)
at Joomla\Plugin\System\Astroid\Extension\AstroidPlugin->onBeforeRender()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/src/Plugin/CMSPlugin.php:284)
at Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/vendor/joomla/event/src/Dispatcher.php:486)
at Joomla\Event\Dispatcher->dispatch()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/src/Application/EventAware.php:111)
at Joomla\CMS\Application\WebApplication->triggerEvent()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/src/Application/CMSApplication.php:1016)
at Joomla\CMS\Application\CMSApplication->render()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/src/Application/SiteApplication.php:724)
at Joomla\CMS\Application\SiteApplication->render()
(/homepages/29/d593192340/htdocs/metabolic-engineering/libraries/src/Application/CMSApplication.php:298)
at Joomla\CMS\Application\CMSApplication->execute()
(/homepages/29/d593192340/htdocs/metabolic-engineering/includes/app.php:61)
at require_once('/homepages/29/d593192340/htdocs/metabolic-engineering/includes/app.php')
(/homepages/29/d593192340/htdocs/metabolic-engineering/index.php:32)
|