"500 expected selector. , 109 | .headline-warning 3.module-title{
| ^ ' custom/custom.scss 109:19 @import - 1:266 root stylesheet" is not valid header value

Laminas\Diactoros\Exception\ InvalidArgumentException

  1.                 'Invalid header value type; must be a string or numeric; received %s',
  2.                 is_object($value) ? $value::class : gettype($value)
  3.             ));
  4.         }
  5.         if (! self::isValid($value)) {
  6.             throw new Exception\InvalidArgumentException(sprintf(
  7.                 '"%s" is not valid header value',
  8.                 $value
  9.             ));
  10.         }
  11.     }
  1.                 'cannot be an empty array'
  2.             );
  3.         }
  4.         return array_map(static function ($value): string {
  5.             HeaderSecurity::assertValid($value);
  6.             $value = (string) $value;
  7.             // Normalize line folding to a single space (RFC 7230#3.2.4).
  8.             $value str_replace(["\r\n\t""\r\n "], ' '$value);
Response::Laminas\Diactoros\{closure}('500 expected selector. , 109 | .headline-warning 3.module-title{ | ^ \' custom/custom.scss 109:19 @import - 1:266 root stylesheet')
  1.                 'Invalid header value: must be a string or array of strings; '
  2.                 'cannot be an empty array'
  3.             );
  4.         }
  5.         return array_map(static function ($value): string {
  6.             HeaderSecurity::assertValid($value);
  7.             $value = (string) $value;
  8.             // Normalize line folding to a single space (RFC 7230#3.2.4).
  1.         $new = clone $this;
  2.         if ($new->hasHeader($name)) {
  3.             unset($new->headers[$new->headerNames[$normalized]]);
  4.         }
  5.         $value $this->filterHeaderValue($value);
  6.         $new->headerNames[$normalized] = $name;
  7.         $new->headers[$name]           = $value;
  8.         return $new;
  1.     public function withAddedHeader($name$value): MessageInterface
  2.     {
  3.         $this->assertHeader($name);
  4.         if (! $this->hasHeader($name)) {
  5.             return $this->withHeader($name$value);
  6.         }
  7.         $header $this->headerNames[strtolower($name)];
  8.         $new                   = clone $this;
  1.         if ($replace && $response->hasHeader($name)) {
  2.             $response $response->withoutHeader($name);
  3.         }
  4.         // Add the header to the internal array.
  5.         $this->setResponse($response->withAddedHeader($name$value));
  6.         return $this;
  7.     }
  8.     /**
AbstractWebApplication->setHeader('status', '500 expected selector. , 109 | .headline-warning 3.module-title{ | ^ \' custom/custom.scss 109:19 @import - 1:266 root stylesheet') in /var/www/virtual/rs-karlsbad.de/htdocs/libraries/src/Document/ErrorDocument.php (line 131)
  1.         if ($errorReporting === "development" || $errorReporting === "maximum") {
  2.             $status .= ' ' str_replace("\n"' '$this->_error->getMessage());
  3.         }
  4.         CmsFactory::getApplication()->setHeader('status'$status);
  5.         // Set variables
  6.         $this->debug $params['debug'] ?? false;
  7.         $this->error $this->_error;
ErrorDocument->render(false, array('template' => 'tp_schule', 'directory' => '/var/www/virtual/rs-karlsbad.de/htdocs/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry))) in /var/www/virtual/rs-karlsbad.de/htdocs/libraries/src/Error/Renderer/HtmlRenderer.php (line 70)
  1.             ob_end_clean();
  2.         }
  3.         $this->getDocument()->setTitle(Text::_('Error') . ': ' $error->getCode());
  4.         return $this->getDocument()->render(
  5.             false,
  6.             [
  7.                 'template'         => $template->template,
  8.                 'directory'        => JPATH_THEMES,
  9.                 'debug'            => JDEBUG,
HtmlRenderer->render(object(SimpleSassRuntimeException)) in /var/www/virtual/rs-karlsbad.de/htdocs/libraries/src/Exception/ExceptionHandler.php (line 136)
  1.                     'subject'  => $app,
  2.                     'document' => $renderer->getDocument(),
  3.                 ])
  4.             );
  5.             $data $renderer->render($error);
  6.             // If nothing was rendered, just use the message from the Exception
  7.             if (empty($data)) {
  8.                 $data $error->getMessage();
  9.             }
ExceptionHandler::render(object(SimpleSassRuntimeException)) in /var/www/virtual/rs-karlsbad.de/htdocs/libraries/src/Exception/ExceptionHandler.php (line 73)
  1.      * @since   3.10.0
  2.      */
  3.     public static function handleException(\Throwable $error)
  4.     {
  5.         static::logException($error);
  6.         static::render($error);
  7.     }
  8.     /**
  9.      * Render the error page based on an exception.
  10.      *
ExceptionHandler::handleException(object(SimpleSassRuntimeException)) in /var/www/virtual/rs-karlsbad.de/htdocs/libraries/src/Application/CMSApplication.php (line 334)
  1.             );
  2.             // Trigger the onError event.
  3.             $this->dispatchEvent('onError'$event);
  4.             ExceptionHandler::handleException($event->getError());
  5.         }
  6.         // Trigger the onBeforeRespond event.
  7.         $this->dispatchEvent(
  8.             'onBeforeRespond',
CMSApplication->execute() in /var/www/virtual/rs-karlsbad.de/htdocs/includes/app.php (line 58)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/var/www/virtual/rs-karlsbad.de/htdocs/includes/app.php') in /var/www/virtual/rs-karlsbad.de/htdocs/index.php (line 32)
  1.  * define() is used rather than "const" to not error for PHP 5.2 and lower
  2.  */
  3. define('_JEXEC'1);
  4. // Run the application - All executable code should be triggered through this file
  5. require_once __DIR__ '/includes/app.php';

ScssPhp\ScssPhp\Exception\ SimpleSassRuntimeException

expected selector. , 109 | .headline-warning 3.module-title{ | ^ ' custom/custom.scss 109:19 @import - 1:266 root stylesheet

  1.         return new MultiSpanSassFormatException($this->originalMessage$this->span'', [$label => $span], $previous);
  2.     }
  3.     public function withTrace(Trace $trace, ?\Throwable $previous null): SassRuntimeException
  4.     {
  5.         return new SimpleSassRuntimeException($this->originalMessage$this->span$trace$previous);
  6.     }
  7. }
  1.         try {
  2.             return $callback();
  3.         } catch (SassRuntimeException $e) {
  4.             throw $e;
  5.         } catch (SassException $e) {
  6.             throw $e->withTrace($this->stackTrace($e->getSpan()), $e);
  7.         }
  8.     }
  9.     /**
  10.      * Runs $callback, and converts any {@see SassRuntimeException}s containing an
  1.                 // TODO check how to handle stdin
  2.                 $this->loadedUrls[$urlString] = true;
  3.             }
  4.             /** @var ExtensionStore $extensionStore */
  5.             [$css$extensionStore] = $this->addExceptionTrace(fn() => $this->execute($importer$node$initialVariables));
  6.             $selectors $extensionStore->getSimpleSelectors();
  7.             $unsatisfiedExtension IterableUtil::firstOrNull($extensionStore->extensionsWhereTarget(fn (SimpleSelector $target) => !EquatableUtil::iterableContains($selectors$target)));
  8.             if ($unsatisfiedExtension !== null) {
  9.                 $this->throwForUnsatisfiedExtension($unsatisfiedExtension);
  10.             }
  1.     {
  2.         $oldContext self::$evaluationContext;
  3.         self::$evaluationContext $context;
  4.         try {
  5.             return $callback();
  6.         } finally {
  7.             self::$evaluationContext $oldContext;
  8.         }
  9.     }
  1.     /**
  2.      * @param array<string, Value> $initialVariables
  3.      */
  4.     public function run(?Importer $importerStylesheet $node, array $initialVariables = []): EvaluateResult
  5.     {
  6.         return EvaluationContext::withEvaluationContext(new VisitorEvaluationContext($this$node), function () use ($importer$node$initialVariables) {
  7.             $url $node->getSpan()->getSourceUrl();
  8.             if ($url !== null) {
  9.                 $urlString = (string) $url;
  10.                 $this->activeModules[$urlString] = null;
  1.             }
  2.             $variableName str_replace('_''-'$variableName);
  3.             $initialVariables[$variableName] = $variable;
  4.         }
  5.         $evaluateResult = (new EvaluateVisitor($importCache$functions$logger$this->quietDepssourceMap$wantsSourceMap))->run($importer$stylesheet$initialVariables);
  6.         $serializeResult Serializer::serialize($evaluateResult->getStylesheet(), style$this->outputStylesourceMap$wantsSourceMapcharset$this->charsetlogger$logger);
  7.         $css $serializeResult->css;
  8.         $sourceMap null;
  1.         $importCache $this->createImportCache($logger);
  2.         $stylesheet Stylesheet::parse($source$syntax$logger$url);
  3.         $importer ??= $url === null ? new NoOpImporter() : new FilesystemImporter(null);
  4.         $result $this->compileStylesheet($stylesheet$importCache$logger$importer);
  5.         $logger->summarize();
  6.         return $result;
  7.     }
Compiler->compileString('@import "../../../media/astroid/assets/vendor/bootstrap/scss/functions";@import "variable_overrides";@import "../../../media/astroid/assets/vendor/bootstrap/scss/bootstrap";@import "../../../media/astroid/assets/vendor/astroid/scss/astroid";@import "style";@import "custom/custom";') in /var/www/virtual/rs-karlsbad.de/htdocs/libraries/astroid/framework/library/astroid/Document.php (line 1119)
  1.             if ($color_mode && $color_mode_dark) {
  2.                 $content    .=  '@include color-mode(dark) {'$color_mode_dark .'}';
  3.             }
  4.         }
  5.         $css $scss->compileString($content);
  6.         Framework::getDebugger()->log('Rendering Scss');
  7.         Helper::putContents($path$css->getCss());
  8.     }
  9.     public function renderCss(): string
Document->renderScss('/var/www/virtual/rs-karlsbad.de/htdocs/media/templates/site/tp_schule/css/compiled-b1c3cfddd7470ce227daf49d2f38b16d.css') in /var/www/virtual/rs-karlsbad.de/htdocs/libraries/astroid/framework/library/astroid/Document.php (line 1305)
  1.                 // rendering scss
  2.                 Framework::getReporter('Logs')->add('Rendering Scss');
  3.                 // clearing previous versions
  4.                 Helper::clearCache($template->template, ['compiled-' $scssVersion'template']);
  5.                 // adding compiled scss in css file
  6.                 $this->renderScss($cssFile);
  7.                 if ($template->isDefault()) {
  8.                     Helper::clearCache($template->template, ['template']);
  9.                     File::copy($cssFileJPATH_SITE '/media/templates/site/' $template->template '/css/template.css');
  10.                 }
  11.             } else {
  1.     public static function styles()
  2.     {
  3.         $document Framework::getDocument();
  4.         $document->loadFontAwesome();
  5.         $document->astroidCSS();
  6.         return '';
  7.     }
  8. }
  1.         }
  2.         Helper::triggerEvent('onBeforeAstroidRender'); // at last process all astroid:include
  3.         $document Framework::getDocument();
  4.         Component\Utility::meta(); // site meta
  5.         Component\Utility::typography(); // site typography
  6.         Helper\Head::styles(); // site Styles
  7.         Component\LazyLoad::run(); // to execute lazy load
  8.         Component\Utility::cursorEffect(); // smooth scroll utility
  9.         Component\Utility::smoothScroll(); // smooth scroll utility
  10.         Helper\Head::scripts(); // site scripts
  1.     }
  2.     public function onBeforeRender()
  3.     {
  4.         if (defined('_ASTROID')) {
  5.             Framework::getClient()->onBeforeRender();
  6.         }
  7.     }
  8.     public function onAfterRender()
  9.     {
AstroidPlugin->onBeforeRender(object(SiteApplication)) in /var/www/virtual/rs-karlsbad.de/htdocs/libraries/src/Plugin/CMSPlugin.php (line 311)
  1.                 }
  2.                 // Convert to indexed array for unpacking.
  3.                 $arguments array_values($arguments);
  4.                 $result $this->{$methodName}(...$arguments);
  5.                 // Ignore null results
  6.                 if ($result === null) {
  7.                     return;
  8.                 }
  1.             foreach ($this->listeners[$event->getName()] as $listener) {
  2.                 if ($event->isStopped()) {
  3.                     return $event;
  4.                 }
  5.                 $listener($event);
  6.             }
  7.         }
  8.         return $event;
  9.     }
  1.             $dispatcher $this->getDispatcher();
  2.         } catch (\UnexpectedValueException $exception) {
  3.             return null;
  4.         }
  5.         return $dispatcher->dispatch($eventName$event ?: new ApplicationEvent($eventName$this));
  6.     }
  7.     /**
  8.      * Method to run the application routines.
  9.      *
AbstractApplication->dispatchEvent('onBeforeRender', object(BeforeRenderEvent)) in /var/www/virtual/rs-karlsbad.de/htdocs/libraries/src/Application/CMSApplication.php (line 1108)
  1.         // Parse the document.
  2.         $this->document->parse($this->docOptions);
  3.         // Trigger the onBeforeRender event.
  4.         PluginHelper::importPlugin('system'nulltrue$this->getDispatcher());
  5.         $this->dispatchEvent(
  6.             'onBeforeRender',
  7.             new BeforeRenderEvent('onBeforeRender', ['subject' => $this])
  8.         );
  9.         $caching false;
  1.                 $this->set('themeInherits'$template->parent);
  2.                 break;
  3.         }
  4.         parent::render();
  5.     }
  6.     /**
  7.      * Route the application.
  8.      *
  1.             $this->doExecute();
  2.             // If we have an application document object, render it.
  3.             if ($this->document instanceof \Joomla\CMS\Document\Document) {
  4.                 // Render the application output.
  5.                 $this->render();
  6.             }
  7.             // If gzip compression is enabled in configuration and the server is compliant, compress the output.
  8.             if ($this->get('gzip') && !\ini_get('zlib.output_compression') && \ini_get('output_handler') !== 'ob_gzhandler') {
  9.                 $this->compress();
CMSApplication->execute() in /var/www/virtual/rs-karlsbad.de/htdocs/includes/app.php (line 58)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/var/www/virtual/rs-karlsbad.de/htdocs/includes/app.php') in /var/www/virtual/rs-karlsbad.de/htdocs/index.php (line 32)
  1.  * define() is used rather than "const" to not error for PHP 5.2 and lower
  2.  */
  3. define('_JEXEC'1);
  4. // Run the application - All executable code should be triggered through this file
  5. require_once __DIR__ '/includes/app.php';

ScssPhp\ScssPhp\Exception\ SimpleSassFormatException

line 109, column 19 of templates/tp_schule/scss/custom/custom.scss: expected selector. , 109 | .headline-warning 3.module-title{ | ^ '

  1.             if (=== stripos($error->getMessage(), 'expected')) {
  2.                 $span $this->adjustExceptionSpan($span);
  3.             }
  4.             throw new SimpleSassFormatException($error->getMessage(), $span$error);
  5.         }
  6.     }
  7.     /**
  8.      * Moves span to {@see firstNewlineBefore} if necessary.
  1.     /**
  2.      * @throws SassFormatException
  3.      */
  4.     public function parse(): SelectorList
  5.     {
  6.         return $this->wrapSpanFormatException(function () {
  7.             $selector $this->selectorList();
  8.             if (!$this->scanner->isDone()) {
  9.                 $this->scanner->error('expected selector.');
  10.             }
  1.      *
  2.      * @throws SassFormatException if parsing fails.
  3.      */
  4.     public static function parse(string $contents, ?LoggerInterface $logger null, ?InterpolationMap $interpolationMap null, ?UriInterface $url nullbool $allowParent truebool $plainCss false): SelectorList
  5.     {
  6.         return (new SelectorParser($contents$logger$url$allowParent$interpolationMap$plainCss))->parse();
  7.     }
  8.     /**
  9.      * @param list<ComplexSelector> $components
  10.      */
  1.             );
  2.             return null;
  3.         }
  4.         $parsedSelector SelectorList::parse($selectorText$this->logger$selectorMapplainCss$this->getStylesheet()->isPlainCss());
  5.         $nest = !($this->getStyleRule()?->isFromPlainCss() ?? false);
  6.         if ($nest) {
  7.             if ($this->getStylesheet()->isPlainCss()) {
  8.                 foreach ($parsedSelector->getComponents() as $complex) {
  9.                     if (\count($complex->getLeadingCombinators()) > 0) {
  1.         return $this->span;
  2.     }
  3.     public function accept(StatementVisitor $visitor)
  4.     {
  5.         return $visitor->visitStyleRule($this);
  6.     }
  7.     public function __toString(): string
  8.     {
  9.         return $this->selector ' {' implode(' '$this->getChildren()) . '}';
  1.      * @phpstan-impure
  2.      */
  3.     public function visitStylesheet(Stylesheet $node): ?Value
  4.     {
  5.         foreach ($node->getChildren() as $child) {
  6.             $child->accept($this);
  7.         }
  8.         return null;
  9.     }
  1.             $oldStylesheet $this->stylesheet;
  2.             $oldInDependency $this->inDependency;
  3.             $this->importer $result->getImporter();
  4.             $this->stylesheet $stylesheet;
  5.             $this->inDependency $result->isDependency();
  6.             $this->visitStylesheet($stylesheet);
  7.             $this->importer $oldImporter;
  8.             $this->stylesheet $oldStylesheet;
  9.             $this->inDependency $oldInDependency;
  10.             if ($url !== null) {
  1.     private function withStackFrame(string $memberAstNode $nodeWithSpan, callable $callback)
  2.     {
  3.         $this->stack[] = [$this->member$nodeWithSpan];
  4.         $oldMember $this->member;
  5.         $this->member $member;
  6.         $result $callback();
  7.         $this->member $oldMember;
  8.         array_pop($this->stack);
  9.         return $result;
  10.     }
  1.     /**
  2.      * Adds the stylesheet imported by $import to the current document.
  3.      */
  4.     private function visitDynamicImport(DynamicImport $import): void
  5.     {
  6.         $this->withStackFrame('@import'$import, function () use ($import) {
  7.             $result $this->loadStylesheet($import->getUrlString(), $import->getSpan(), true);
  8.             $stylesheet $result->getStylesheet();
  9.             $url $stylesheet->getSpan()->getSourceUrl();
  1.     public function visitImportRule(ImportRule $node): ?Value
  2.     {
  3.         foreach ($node->getImports() as $import) {
  4.             if ($import instanceof DynamicImport) {
  5.                 $this->visitDynamicImport($import);
  6.             } else {
  7.                 assert($import instanceof StaticImport);
  8.                 $this->visitStaticImport($import);
  9.             }
  10.         }
  1.         return $this->span;
  2.     }
  3.     public function accept(StatementVisitor $visitor)
  4.     {
  5.         return $visitor->visitImportRule($this);
  6.     }
  7.     public function __toString(): string
  8.     {
  9.         return '@import ' implode(', '$this->imports) . ';';
  1.      * @phpstan-impure
  2.      */
  3.     public function visitStylesheet(Stylesheet $node): ?Value
  4.     {
  5.         foreach ($node->getChildren() as $child) {
  6.             $child->accept($this);
  7.         }
  8.         return null;
  9.     }
  1.             $this->declarationName null;
  2.             $this->inUnknownAtRule false;
  3.             $this->atRootExcludingStyleRule false;
  4.             $this->inKeyFrames false;
  5.             $this->visitStylesheet($stylesheet);
  6.             $css $this->outOfOrderImports === null $root : new ModifiableCssStylesheet($stylesheet->getSpan(), $this->addOutOfOrderImports());
  7.             $this->importer $oldImporter;
  8.             $this->stylesheet $oldStylesheet;
  9.             $this->root $oldRoot;
  1.      */
  2.     private function withEnvironment(Environment $environment, callable $callback)
  3.     {
  4.         $oldEnvironment $this->environment;
  5.         $this->environment $environment;
  6.         $result $callback();
  7.         $this->environment $oldEnvironment;
  8.         return $result;
  9.     }
  1.         $css null;
  2.         $extensionStore ConcreteExtensionStore::create();
  3.         $this->withEnvironment($environment, function () use ($importer$stylesheet$extensionStore, &$css) {
  4.             $oldImporter $this->importer;
  5.             $oldStylesheet $this->stylesheet;
  6.             $oldRoot $this->root;
  7.             $oldParent $this->parent;
  8.             $oldEndOfImports $this->endOfImports;
  1.                 // TODO check how to handle stdin
  2.                 $this->loadedUrls[$urlString] = true;
  3.             }
  4.             /** @var ExtensionStore $extensionStore */
  5.             [$css$extensionStore] = $this->addExceptionTrace(fn() => $this->execute($importer$node$initialVariables));
  6.             $selectors $extensionStore->getSimpleSelectors();
  7.             $unsatisfiedExtension IterableUtil::firstOrNull($extensionStore->extensionsWhereTarget(fn (SimpleSelector $target) => !EquatableUtil::iterableContains($selectors$target)));
  8.             if ($unsatisfiedExtension !== null) {
  9.                 $this->throwForUnsatisfiedExtension($unsatisfiedExtension);
  10.             }
  1.      * @param-immediately-invoked-callable $callback
  2.      */
  3.     private function addExceptionTrace(callable $callback)
  4.     {
  5.         try {
  6.             return $callback();
  7.         } catch (SassRuntimeException $e) {
  8.             throw $e;
  9.         } catch (SassException $e) {
  10.             throw $e->withTrace($this->stackTrace($e->getSpan()), $e);
  11.         }
  1.                 // TODO check how to handle stdin
  2.                 $this->loadedUrls[$urlString] = true;
  3.             }
  4.             /** @var ExtensionStore $extensionStore */
  5.             [$css$extensionStore] = $this->addExceptionTrace(fn() => $this->execute($importer$node$initialVariables));
  6.             $selectors $extensionStore->getSimpleSelectors();
  7.             $unsatisfiedExtension IterableUtil::firstOrNull($extensionStore->extensionsWhereTarget(fn (SimpleSelector $target) => !EquatableUtil::iterableContains($selectors$target)));
  8.             if ($unsatisfiedExtension !== null) {
  9.                 $this->throwForUnsatisfiedExtension($unsatisfiedExtension);
  10.             }
  1.     {
  2.         $oldContext self::$evaluationContext;
  3.         self::$evaluationContext $context;
  4.         try {
  5.             return $callback();
  6.         } finally {
  7.             self::$evaluationContext $oldContext;
  8.         }
  9.     }
  1.     /**
  2.      * @param array<string, Value> $initialVariables
  3.      */
  4.     public function run(?Importer $importerStylesheet $node, array $initialVariables = []): EvaluateResult
  5.     {
  6.         return EvaluationContext::withEvaluationContext(new VisitorEvaluationContext($this$node), function () use ($importer$node$initialVariables) {
  7.             $url $node->getSpan()->getSourceUrl();
  8.             if ($url !== null) {
  9.                 $urlString = (string) $url;
  10.                 $this->activeModules[$urlString] = null;
  1.             }
  2.             $variableName str_replace('_''-'$variableName);
  3.             $initialVariables[$variableName] = $variable;
  4.         }
  5.         $evaluateResult = (new EvaluateVisitor($importCache$functions$logger$this->quietDepssourceMap$wantsSourceMap))->run($importer$stylesheet$initialVariables);
  6.         $serializeResult Serializer::serialize($evaluateResult->getStylesheet(), style$this->outputStylesourceMap$wantsSourceMapcharset$this->charsetlogger$logger);
  7.         $css $serializeResult->css;
  8.         $sourceMap null;
  1.         $importCache $this->createImportCache($logger);
  2.         $stylesheet Stylesheet::parse($source$syntax$logger$url);
  3.         $importer ??= $url === null ? new NoOpImporter() : new FilesystemImporter(null);
  4.         $result $this->compileStylesheet($stylesheet$importCache$logger$importer);
  5.         $logger->summarize();
  6.         return $result;
  7.     }
Compiler->compileString('@import "../../../media/astroid/assets/vendor/bootstrap/scss/functions";@import "variable_overrides";@import "../../../media/astroid/assets/vendor/bootstrap/scss/bootstrap";@import "../../../media/astroid/assets/vendor/astroid/scss/astroid";@import "style";@import "custom/custom";') in /var/www/virtual/rs-karlsbad.de/htdocs/libraries/astroid/framework/library/astroid/Document.php (line 1119)
  1.             if ($color_mode && $color_mode_dark) {
  2.                 $content    .=  '@include color-mode(dark) {'$color_mode_dark .'}';
  3.             }
  4.         }
  5.         $css $scss->compileString($content);
  6.         Framework::getDebugger()->log('Rendering Scss');
  7.         Helper::putContents($path$css->getCss());
  8.     }
  9.     public function renderCss(): string
Document->renderScss('/var/www/virtual/rs-karlsbad.de/htdocs/media/templates/site/tp_schule/css/compiled-b1c3cfddd7470ce227daf49d2f38b16d.css') in /var/www/virtual/rs-karlsbad.de/htdocs/libraries/astroid/framework/library/astroid/Document.php (line 1305)
  1.                 // rendering scss
  2.                 Framework::getReporter('Logs')->add('Rendering Scss');
  3.                 // clearing previous versions
  4.                 Helper::clearCache($template->template, ['compiled-' $scssVersion'template']);
  5.                 // adding compiled scss in css file
  6.                 $this->renderScss($cssFile);
  7.                 if ($template->isDefault()) {
  8.                     Helper::clearCache($template->template, ['template']);
  9.                     File::copy($cssFileJPATH_SITE '/media/templates/site/' $template->template '/css/template.css');
  10.                 }
  11.             } else {
  1.     public static function styles()
  2.     {
  3.         $document Framework::getDocument();
  4.         $document->loadFontAwesome();
  5.         $document->astroidCSS();
  6.         return '';
  7.     }
  8. }
  1.         }
  2.         Helper::triggerEvent('onBeforeAstroidRender'); // at last process all astroid:include
  3.         $document Framework::getDocument();
  4.         Component\Utility::meta(); // site meta
  5.         Component\Utility::typography(); // site typography
  6.         Helper\Head::styles(); // site Styles
  7.         Component\LazyLoad::run(); // to execute lazy load
  8.         Component\Utility::cursorEffect(); // smooth scroll utility
  9.         Component\Utility::smoothScroll(); // smooth scroll utility
  10.         Helper\Head::scripts(); // site scripts
  1.     }
  2.     public function onBeforeRender()
  3.     {
  4.         if (defined('_ASTROID')) {
  5.             Framework::getClient()->onBeforeRender();
  6.         }
  7.     }
  8.     public function onAfterRender()
  9.     {
AstroidPlugin->onBeforeRender(object(SiteApplication)) in /var/www/virtual/rs-karlsbad.de/htdocs/libraries/src/Plugin/CMSPlugin.php (line 311)
  1.                 }
  2.                 // Convert to indexed array for unpacking.
  3.                 $arguments array_values($arguments);
  4.                 $result $this->{$methodName}(...$arguments);
  5.                 // Ignore null results
  6.                 if ($result === null) {
  7.                     return;
  8.                 }
  1.             foreach ($this->listeners[$event->getName()] as $listener) {
  2.                 if ($event->isStopped()) {
  3.                     return $event;
  4.                 }
  5.                 $listener($event);
  6.             }
  7.         }
  8.         return $event;
  9.     }
  1.             $dispatcher $this->getDispatcher();
  2.         } catch (\UnexpectedValueException $exception) {
  3.             return null;
  4.         }
  5.         return $dispatcher->dispatch($eventName$event ?: new ApplicationEvent($eventName$this));
  6.     }
  7.     /**
  8.      * Method to run the application routines.
  9.      *
AbstractApplication->dispatchEvent('onBeforeRender', object(BeforeRenderEvent)) in /var/www/virtual/rs-karlsbad.de/htdocs/libraries/src/Application/CMSApplication.php (line 1108)
  1.         // Parse the document.
  2.         $this->document->parse($this->docOptions);
  3.         // Trigger the onBeforeRender event.
  4.         PluginHelper::importPlugin('system'nulltrue$this->getDispatcher());
  5.         $this->dispatchEvent(
  6.             'onBeforeRender',
  7.             new BeforeRenderEvent('onBeforeRender', ['subject' => $this])
  8.         );
  9.         $caching false;
  1.                 $this->set('themeInherits'$template->parent);
  2.                 break;
  3.         }
  4.         parent::render();
  5.     }
  6.     /**
  7.      * Route the application.
  8.      *
  1.             $this->doExecute();
  2.             // If we have an application document object, render it.
  3.             if ($this->document instanceof \Joomla\CMS\Document\Document) {
  4.                 // Render the application output.
  5.                 $this->render();
  6.             }
  7.             // If gzip compression is enabled in configuration and the server is compliant, compress the output.
  8.             if ($this->get('gzip') && !\ini_get('zlib.output_compression') && \ini_get('output_handler') !== 'ob_gzhandler') {
  9.                 $this->compress();
CMSApplication->execute() in /var/www/virtual/rs-karlsbad.de/htdocs/includes/app.php (line 58)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/var/www/virtual/rs-karlsbad.de/htdocs/includes/app.php') in /var/www/virtual/rs-karlsbad.de/htdocs/index.php (line 32)
  1.  * define() is used rather than "const" to not error for PHP 5.2 and lower
  2.  */
  3. define('_JEXEC'1);
  4. // Run the application - All executable code should be triggered through this file
  5. require_once __DIR__ '/includes/app.php';

ScssPhp\ScssPhp\Parser\ FormatException

expected selector.

  1.         $source $this->mapSpan($error->getSpan());
  2.         $startIndex $this->indexInContents($source->getStart());
  3.         $endIndex $this->indexInContents($source->getEnd());
  4.         if (!IterableUtil::any(array_slice($this->interpolation->getContents(), $startIndex$endIndex $startIndex 1), fn ($content) => $content instanceof Expression)) {
  5.             return new FormatException($error->getMessage(), $source$error);
  6.         }
  7.         return new MultiSourceFormatException($error->getMessage(), $source'', ['error in interpolated output' => $error->getSpan()], $error);
  8.     }
  1.             } catch (FormatException $e) {
  2.                 if ($this->interpolationMap === null) {
  3.                     throw $e;
  4.                 }
  5.                 throw $this->interpolationMap->mapException($e);
  6.             }
  7.         } catch (MultiSourceFormatException $error) {
  8.             $span $error->getSpan();
  9.             $secondarySpans $error->secondarySpans;
  1.     /**
  2.      * @throws SassFormatException
  3.      */
  4.     public function parse(): SelectorList
  5.     {
  6.         return $this->wrapSpanFormatException(function () {
  7.             $selector $this->selectorList();
  8.             if (!$this->scanner->isDone()) {
  9.                 $this->scanner->error('expected selector.');
  10.             }
  1.      *
  2.      * @throws SassFormatException if parsing fails.
  3.      */
  4.     public static function parse(string $contents, ?LoggerInterface $logger null, ?InterpolationMap $interpolationMap null, ?UriInterface $url nullbool $allowParent truebool $plainCss false): SelectorList
  5.     {
  6.         return (new SelectorParser($contents$logger$url$allowParent$interpolationMap$plainCss))->parse();
  7.     }
  8.     /**
  9.      * @param list<ComplexSelector> $components
  10.      */
  1.             );
  2.             return null;
  3.         }
  4.         $parsedSelector SelectorList::parse($selectorText$this->logger$selectorMapplainCss$this->getStylesheet()->isPlainCss());
  5.         $nest = !($this->getStyleRule()?->isFromPlainCss() ?? false);
  6.         if ($nest) {
  7.             if ($this->getStylesheet()->isPlainCss()) {
  8.                 foreach ($parsedSelector->getComponents() as $complex) {
  9.                     if (\count($complex->getLeadingCombinators()) > 0) {
  1.         return $this->span;
  2.     }
  3.     public function accept(StatementVisitor $visitor)
  4.     {
  5.         return $visitor->visitStyleRule($this);
  6.     }
  7.     public function __toString(): string
  8.     {
  9.         return $this->selector ' {' implode(' '$this->getChildren()) . '}';
  1.      * @phpstan-impure
  2.      */
  3.     public function visitStylesheet(Stylesheet $node): ?Value
  4.     {
  5.         foreach ($node->getChildren() as $child) {
  6.             $child->accept($this);
  7.         }
  8.         return null;
  9.     }
  1.             $oldStylesheet $this->stylesheet;
  2.             $oldInDependency $this->inDependency;
  3.             $this->importer $result->getImporter();
  4.             $this->stylesheet $stylesheet;
  5.             $this->inDependency $result->isDependency();
  6.             $this->visitStylesheet($stylesheet);
  7.             $this->importer $oldImporter;
  8.             $this->stylesheet $oldStylesheet;
  9.             $this->inDependency $oldInDependency;
  10.             if ($url !== null) {
  1.     private function withStackFrame(string $memberAstNode $nodeWithSpan, callable $callback)
  2.     {
  3.         $this->stack[] = [$this->member$nodeWithSpan];
  4.         $oldMember $this->member;
  5.         $this->member $member;
  6.         $result $callback();
  7.         $this->member $oldMember;
  8.         array_pop($this->stack);
  9.         return $result;
  10.     }
  1.     /**
  2.      * Adds the stylesheet imported by $import to the current document.
  3.      */
  4.     private function visitDynamicImport(DynamicImport $import): void
  5.     {
  6.         $this->withStackFrame('@import'$import, function () use ($import) {
  7.             $result $this->loadStylesheet($import->getUrlString(), $import->getSpan(), true);
  8.             $stylesheet $result->getStylesheet();
  9.             $url $stylesheet->getSpan()->getSourceUrl();
  1.     public function visitImportRule(ImportRule $node): ?Value
  2.     {
  3.         foreach ($node->getImports() as $import) {
  4.             if ($import instanceof DynamicImport) {
  5.                 $this->visitDynamicImport($import);
  6.             } else {
  7.                 assert($import instanceof StaticImport);
  8.                 $this->visitStaticImport($import);
  9.             }
  10.         }
  1.         return $this->span;
  2.     }
  3.     public function accept(StatementVisitor $visitor)
  4.     {
  5.         return $visitor->visitImportRule($this);
  6.     }
  7.     public function __toString(): string
  8.     {
  9.         return '@import ' implode(', '$this->imports) . ';';
  1.      * @phpstan-impure
  2.      */
  3.     public function visitStylesheet(Stylesheet $node): ?Value
  4.     {
  5.         foreach ($node->getChildren() as $child) {
  6.             $child->accept($this);
  7.         }
  8.         return null;
  9.     }
  1.             $this->declarationName null;
  2.             $this->inUnknownAtRule false;
  3.             $this->atRootExcludingStyleRule false;
  4.             $this->inKeyFrames false;
  5.             $this->visitStylesheet($stylesheet);
  6.             $css $this->outOfOrderImports === null $root : new ModifiableCssStylesheet($stylesheet->getSpan(), $this->addOutOfOrderImports());
  7.             $this->importer $oldImporter;
  8.             $this->stylesheet $oldStylesheet;
  9.             $this->root $oldRoot;
  1.      */
  2.     private function withEnvironment(Environment $environment, callable $callback)
  3.     {
  4.         $oldEnvironment $this->environment;
  5.         $this->environment $environment;
  6.         $result $callback();
  7.         $this->environment $oldEnvironment;
  8.         return $result;
  9.     }
  1.         $css null;
  2.         $extensionStore ConcreteExtensionStore::create();
  3.         $this->withEnvironment($environment, function () use ($importer$stylesheet$extensionStore, &$css) {
  4.             $oldImporter $this->importer;
  5.             $oldStylesheet $this->stylesheet;
  6.             $oldRoot $this->root;
  7.             $oldParent $this->parent;
  8.             $oldEndOfImports $this->endOfImports;
  1.                 // TODO check how to handle stdin
  2.                 $this->loadedUrls[$urlString] = true;
  3.             }
  4.             /** @var ExtensionStore $extensionStore */
  5.             [$css$extensionStore] = $this->addExceptionTrace(fn() => $this->execute($importer$node$initialVariables));
  6.             $selectors $extensionStore->getSimpleSelectors();
  7.             $unsatisfiedExtension IterableUtil::firstOrNull($extensionStore->extensionsWhereTarget(fn (SimpleSelector $target) => !EquatableUtil::iterableContains($selectors$target)));
  8.             if ($unsatisfiedExtension !== null) {
  9.                 $this->throwForUnsatisfiedExtension($unsatisfiedExtension);
  10.             }
  1.      * @param-immediately-invoked-callable $callback
  2.      */
  3.     private function addExceptionTrace(callable $callback)
  4.     {
  5.         try {
  6.             return $callback();
  7.         } catch (SassRuntimeException $e) {
  8.             throw $e;
  9.         } catch (SassException $e) {
  10.             throw $e->withTrace($this->stackTrace($e->getSpan()), $e);
  11.         }
  1.                 // TODO check how to handle stdin
  2.                 $this->loadedUrls[$urlString] = true;
  3.             }
  4.             /** @var ExtensionStore $extensionStore */
  5.             [$css$extensionStore] = $this->addExceptionTrace(fn() => $this->execute($importer$node$initialVariables));
  6.             $selectors $extensionStore->getSimpleSelectors();
  7.             $unsatisfiedExtension IterableUtil::firstOrNull($extensionStore->extensionsWhereTarget(fn (SimpleSelector $target) => !EquatableUtil::iterableContains($selectors$target)));
  8.             if ($unsatisfiedExtension !== null) {
  9.                 $this->throwForUnsatisfiedExtension($unsatisfiedExtension);
  10.             }
  1.     {
  2.         $oldContext self::$evaluationContext;
  3.         self::$evaluationContext $context;
  4.         try {
  5.             return $callback();
  6.         } finally {
  7.             self::$evaluationContext $oldContext;
  8.         }
  9.     }
  1.     /**
  2.      * @param array<string, Value> $initialVariables
  3.      */
  4.     public function run(?Importer $importerStylesheet $node, array $initialVariables = []): EvaluateResult
  5.     {
  6.         return EvaluationContext::withEvaluationContext(new VisitorEvaluationContext($this$node), function () use ($importer$node$initialVariables) {
  7.             $url $node->getSpan()->getSourceUrl();
  8.             if ($url !== null) {
  9.                 $urlString = (string) $url;
  10.                 $this->activeModules[$urlString] = null;
  1.             }
  2.             $variableName str_replace('_''-'$variableName);
  3.             $initialVariables[$variableName] = $variable;
  4.         }
  5.         $evaluateResult = (new EvaluateVisitor($importCache$functions$logger$this->quietDepssourceMap$wantsSourceMap))->run($importer$stylesheet$initialVariables);
  6.         $serializeResult Serializer::serialize($evaluateResult->getStylesheet(), style$this->outputStylesourceMap$wantsSourceMapcharset$this->charsetlogger$logger);
  7.         $css $serializeResult->css;
  8.         $sourceMap null;
  1.         $importCache $this->createImportCache($logger);
  2.         $stylesheet Stylesheet::parse($source$syntax$logger$url);
  3.         $importer ??= $url === null ? new NoOpImporter() : new FilesystemImporter(null);
  4.         $result $this->compileStylesheet($stylesheet$importCache$logger$importer);
  5.         $logger->summarize();
  6.         return $result;
  7.     }
Compiler->compileString('@import "../../../media/astroid/assets/vendor/bootstrap/scss/functions";@import "variable_overrides";@import "../../../media/astroid/assets/vendor/bootstrap/scss/bootstrap";@import "../../../media/astroid/assets/vendor/astroid/scss/astroid";@import "style";@import "custom/custom";') in /var/www/virtual/rs-karlsbad.de/htdocs/libraries/astroid/framework/library/astroid/Document.php (line 1119)
  1.             if ($color_mode && $color_mode_dark) {
  2.                 $content    .=  '@include color-mode(dark) {'$color_mode_dark .'}';
  3.             }
  4.         }
  5.         $css $scss->compileString($content);
  6.         Framework::getDebugger()->log('Rendering Scss');
  7.         Helper::putContents($path$css->getCss());
  8.     }
  9.     public function renderCss(): string
Document->renderScss('/var/www/virtual/rs-karlsbad.de/htdocs/media/templates/site/tp_schule/css/compiled-b1c3cfddd7470ce227daf49d2f38b16d.css') in /var/www/virtual/rs-karlsbad.de/htdocs/libraries/astroid/framework/library/astroid/Document.php (line 1305)
  1.                 // rendering scss
  2.                 Framework::getReporter('Logs')->add('Rendering Scss');
  3.                 // clearing previous versions
  4.                 Helper::clearCache($template->template, ['compiled-' $scssVersion'template']);
  5.                 // adding compiled scss in css file
  6.                 $this->renderScss($cssFile);
  7.                 if ($template->isDefault()) {
  8.                     Helper::clearCache($template->template, ['template']);
  9.                     File::copy($cssFileJPATH_SITE '/media/templates/site/' $template->template '/css/template.css');
  10.                 }
  11.             } else {
  1.     public static function styles()
  2.     {
  3.         $document Framework::getDocument();
  4.         $document->loadFontAwesome();
  5.         $document->astroidCSS();
  6.         return '';
  7.     }
  8. }
  1.         }
  2.         Helper::triggerEvent('onBeforeAstroidRender'); // at last process all astroid:include
  3.         $document Framework::getDocument();
  4.         Component\Utility::meta(); // site meta
  5.         Component\Utility::typography(); // site typography
  6.         Helper\Head::styles(); // site Styles
  7.         Component\LazyLoad::run(); // to execute lazy load
  8.         Component\Utility::cursorEffect(); // smooth scroll utility
  9.         Component\Utility::smoothScroll(); // smooth scroll utility
  10.         Helper\Head::scripts(); // site scripts
  1.     }
  2.     public function onBeforeRender()
  3.     {
  4.         if (defined('_ASTROID')) {
  5.             Framework::getClient()->onBeforeRender();
  6.         }
  7.     }
  8.     public function onAfterRender()
  9.     {
AstroidPlugin->onBeforeRender(object(SiteApplication)) in /var/www/virtual/rs-karlsbad.de/htdocs/libraries/src/Plugin/CMSPlugin.php (line 311)
  1.                 }
  2.                 // Convert to indexed array for unpacking.
  3.                 $arguments array_values($arguments);
  4.                 $result $this->{$methodName}(...$arguments);
  5.                 // Ignore null results
  6.                 if ($result === null) {
  7.                     return;
  8.                 }
  1.             foreach ($this->listeners[$event->getName()] as $listener) {
  2.                 if ($event->isStopped()) {
  3.                     return $event;
  4.                 }
  5.                 $listener($event);
  6.             }
  7.         }
  8.         return $event;
  9.     }
  1.             $dispatcher $this->getDispatcher();
  2.         } catch (\UnexpectedValueException $exception) {
  3.             return null;
  4.         }
  5.         return $dispatcher->dispatch($eventName$event ?: new ApplicationEvent($eventName$this));
  6.     }
  7.     /**
  8.      * Method to run the application routines.
  9.      *
AbstractApplication->dispatchEvent('onBeforeRender', object(BeforeRenderEvent)) in /var/www/virtual/rs-karlsbad.de/htdocs/libraries/src/Application/CMSApplication.php (line 1108)
  1.         // Parse the document.
  2.         $this->document->parse($this->docOptions);
  3.         // Trigger the onBeforeRender event.
  4.         PluginHelper::importPlugin('system'nulltrue$this->getDispatcher());
  5.         $this->dispatchEvent(
  6.             'onBeforeRender',
  7.             new BeforeRenderEvent('onBeforeRender', ['subject' => $this])
  8.         );
  9.         $caching false;
  1.                 $this->set('themeInherits'$template->parent);
  2.                 break;
  3.         }
  4.         parent::render();
  5.     }
  6.     /**
  7.      * Route the application.
  8.      *
  1.             $this->doExecute();
  2.             // If we have an application document object, render it.
  3.             if ($this->document instanceof \Joomla\CMS\Document\Document) {
  4.                 // Render the application output.
  5.                 $this->render();
  6.             }
  7.             // If gzip compression is enabled in configuration and the server is compliant, compress the output.
  8.             if ($this->get('gzip') && !\ini_get('zlib.output_compression') && \ini_get('output_handler') !== 'ob_gzhandler') {
  9.                 $this->compress();
CMSApplication->execute() in /var/www/virtual/rs-karlsbad.de/htdocs/includes/app.php (line 58)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/var/www/virtual/rs-karlsbad.de/htdocs/includes/app.php') in /var/www/virtual/rs-karlsbad.de/htdocs/index.php (line 32)
  1.  * define() is used rather than "const" to not error for PHP 5.2 and lower
  2.  */
  3. define('_JEXEC'1);
  4. // Run the application - All executable code should be triggered through this file
  5. require_once __DIR__ '/includes/app.php';

ScssPhp\ScssPhp\Parser\ FormatException

expected selector.

  1.         $position ??= $this->position;
  2.         $length ??= 0;
  3.         $span $this->sourceFile->span($position$position $length);
  4.         throw new FormatException($message$span);
  5.     }
  6.     /**
  7.      * @throws FormatException
  8.      */
  1.     {
  2.         return $this->wrapSpanFormatException(function () {
  3.             $selector $this->selectorList();
  4.             if (!$this->scanner->isDone()) {
  5.                 $this->scanner->error('expected selector.');
  6.             }
  7.             return $selector;
  8.         });
  9.     }
  1.      */
  2.     protected function wrapSpanFormatException(callable $callback)
  3.     {
  4.         try {
  5.             try {
  6.                 return $callback();
  7.             } catch (FormatException $e) {
  8.                 if ($this->interpolationMap === null) {
  9.                     throw $e;
  10.                 }
  1.     /**
  2.      * @throws SassFormatException
  3.      */
  4.     public function parse(): SelectorList
  5.     {
  6.         return $this->wrapSpanFormatException(function () {
  7.             $selector $this->selectorList();
  8.             if (!$this->scanner->isDone()) {
  9.                 $this->scanner->error('expected selector.');
  10.             }
  1.      *
  2.      * @throws SassFormatException if parsing fails.
  3.      */
  4.     public static function parse(string $contents, ?LoggerInterface $logger null, ?InterpolationMap $interpolationMap null, ?UriInterface $url nullbool $allowParent truebool $plainCss false): SelectorList
  5.     {
  6.         return (new SelectorParser($contents$logger$url$allowParent$interpolationMap$plainCss))->parse();
  7.     }
  8.     /**
  9.      * @param list<ComplexSelector> $components
  10.      */
  1.             );
  2.             return null;
  3.         }
  4.         $parsedSelector SelectorList::parse($selectorText$this->logger$selectorMapplainCss$this->getStylesheet()->isPlainCss());
  5.         $nest = !($this->getStyleRule()?->isFromPlainCss() ?? false);
  6.         if ($nest) {
  7.             if ($this->getStylesheet()->isPlainCss()) {
  8.                 foreach ($parsedSelector->getComponents() as $complex) {
  9.                     if (\count($complex->getLeadingCombinators()) > 0) {
  1.         return $this->span;
  2.     }
  3.     public function accept(StatementVisitor $visitor)
  4.     {
  5.         return $visitor->visitStyleRule($this);
  6.     }
  7.     public function __toString(): string
  8.     {
  9.         return $this->selector ' {' implode(' '$this->getChildren()) . '}';
  1.      * @phpstan-impure
  2.      */
  3.     public function visitStylesheet(Stylesheet $node): ?Value
  4.     {
  5.         foreach ($node->getChildren() as $child) {
  6.             $child->accept($this);
  7.         }
  8.         return null;
  9.     }
  1.             $oldStylesheet $this->stylesheet;
  2.             $oldInDependency $this->inDependency;
  3.             $this->importer $result->getImporter();
  4.             $this->stylesheet $stylesheet;
  5.             $this->inDependency $result->isDependency();
  6.             $this->visitStylesheet($stylesheet);
  7.             $this->importer $oldImporter;
  8.             $this->stylesheet $oldStylesheet;
  9.             $this->inDependency $oldInDependency;
  10.             if ($url !== null) {
  1.     private function withStackFrame(string $memberAstNode $nodeWithSpan, callable $callback)
  2.     {
  3.         $this->stack[] = [$this->member$nodeWithSpan];
  4.         $oldMember $this->member;
  5.         $this->member $member;
  6.         $result $callback();
  7.         $this->member $oldMember;
  8.         array_pop($this->stack);
  9.         return $result;
  10.     }
  1.     /**
  2.      * Adds the stylesheet imported by $import to the current document.
  3.      */
  4.     private function visitDynamicImport(DynamicImport $import): void
  5.     {
  6.         $this->withStackFrame('@import'$import, function () use ($import) {
  7.             $result $this->loadStylesheet($import->getUrlString(), $import->getSpan(), true);
  8.             $stylesheet $result->getStylesheet();
  9.             $url $stylesheet->getSpan()->getSourceUrl();
  1.     public function visitImportRule(ImportRule $node): ?Value
  2.     {
  3.         foreach ($node->getImports() as $import) {
  4.             if ($import instanceof DynamicImport) {
  5.                 $this->visitDynamicImport($import);
  6.             } else {
  7.                 assert($import instanceof StaticImport);
  8.                 $this->visitStaticImport($import);
  9.             }
  10.         }
  1.         return $this->span;
  2.     }
  3.     public function accept(StatementVisitor $visitor)
  4.     {
  5.         return $visitor->visitImportRule($this);
  6.     }
  7.     public function __toString(): string
  8.     {
  9.         return '@import ' implode(', '$this->imports) . ';';
  1.      * @phpstan-impure
  2.      */
  3.     public function visitStylesheet(Stylesheet $node): ?Value
  4.     {
  5.         foreach ($node->getChildren() as $child) {
  6.             $child->accept($this);
  7.         }
  8.         return null;
  9.     }
  1.             $this->declarationName null;
  2.             $this->inUnknownAtRule false;
  3.             $this->atRootExcludingStyleRule false;
  4.             $this->inKeyFrames false;
  5.             $this->visitStylesheet($stylesheet);
  6.             $css $this->outOfOrderImports === null $root : new ModifiableCssStylesheet($stylesheet->getSpan(), $this->addOutOfOrderImports());
  7.             $this->importer $oldImporter;
  8.             $this->stylesheet $oldStylesheet;
  9.             $this->root $oldRoot;
  1.      */
  2.     private function withEnvironment(Environment $environment, callable $callback)
  3.     {
  4.         $oldEnvironment $this->environment;
  5.         $this->environment $environment;
  6.         $result $callback();
  7.         $this->environment $oldEnvironment;
  8.         return $result;
  9.     }
  1.         $css null;
  2.         $extensionStore ConcreteExtensionStore::create();
  3.         $this->withEnvironment($environment, function () use ($importer$stylesheet$extensionStore, &$css) {
  4.             $oldImporter $this->importer;
  5.             $oldStylesheet $this->stylesheet;
  6.             $oldRoot $this->root;
  7.             $oldParent $this->parent;
  8.             $oldEndOfImports $this->endOfImports;
  1.                 // TODO check how to handle stdin
  2.                 $this->loadedUrls[$urlString] = true;
  3.             }
  4.             /** @var ExtensionStore $extensionStore */
  5.             [$css$extensionStore] = $this->addExceptionTrace(fn() => $this->execute($importer$node$initialVariables));
  6.             $selectors $extensionStore->getSimpleSelectors();
  7.             $unsatisfiedExtension IterableUtil::firstOrNull($extensionStore->extensionsWhereTarget(fn (SimpleSelector $target) => !EquatableUtil::iterableContains($selectors$target)));
  8.             if ($unsatisfiedExtension !== null) {
  9.                 $this->throwForUnsatisfiedExtension($unsatisfiedExtension);
  10.             }
  1.      * @param-immediately-invoked-callable $callback
  2.      */
  3.     private function addExceptionTrace(callable $callback)
  4.     {
  5.         try {
  6.             return $callback();
  7.         } catch (SassRuntimeException $e) {
  8.             throw $e;
  9.         } catch (SassException $e) {
  10.             throw $e->withTrace($this->stackTrace($e->getSpan()), $e);
  11.         }
  1.                 // TODO check how to handle stdin
  2.                 $this->loadedUrls[$urlString] = true;
  3.             }
  4.             /** @var ExtensionStore $extensionStore */
  5.             [$css$extensionStore] = $this->addExceptionTrace(fn() => $this->execute($importer$node$initialVariables));
  6.             $selectors $extensionStore->getSimpleSelectors();
  7.             $unsatisfiedExtension IterableUtil::firstOrNull($extensionStore->extensionsWhereTarget(fn (SimpleSelector $target) => !EquatableUtil::iterableContains($selectors$target)));
  8.             if ($unsatisfiedExtension !== null) {
  9.                 $this->throwForUnsatisfiedExtension($unsatisfiedExtension);
  10.             }
  1.     {
  2.         $oldContext self::$evaluationContext;
  3.         self::$evaluationContext $context;
  4.         try {
  5.             return $callback();
  6.         } finally {
  7.             self::$evaluationContext $oldContext;
  8.         }
  9.     }
  1.     /**
  2.      * @param array<string, Value> $initialVariables
  3.      */
  4.     public function run(?Importer $importerStylesheet $node, array $initialVariables = []): EvaluateResult
  5.     {
  6.         return EvaluationContext::withEvaluationContext(new VisitorEvaluationContext($this$node), function () use ($importer$node$initialVariables) {
  7.             $url $node->getSpan()->getSourceUrl();
  8.             if ($url !== null) {
  9.                 $urlString = (string) $url;
  10.                 $this->activeModules[$urlString] = null;
  1.             }
  2.             $variableName str_replace('_''-'$variableName);
  3.             $initialVariables[$variableName] = $variable;
  4.         }
  5.         $evaluateResult = (new EvaluateVisitor($importCache$functions$logger$this->quietDepssourceMap$wantsSourceMap))->run($importer$stylesheet$initialVariables);
  6.         $serializeResult Serializer::serialize($evaluateResult->getStylesheet(), style$this->outputStylesourceMap$wantsSourceMapcharset$this->charsetlogger$logger);
  7.         $css $serializeResult->css;
  8.         $sourceMap null;
  1.         $importCache $this->createImportCache($logger);
  2.         $stylesheet Stylesheet::parse($source$syntax$logger$url);
  3.         $importer ??= $url === null ? new NoOpImporter() : new FilesystemImporter(null);
  4.         $result $this->compileStylesheet($stylesheet$importCache$logger$importer);
  5.         $logger->summarize();
  6.         return $result;
  7.     }
Compiler->compileString('@import "../../../media/astroid/assets/vendor/bootstrap/scss/functions";@import "variable_overrides";@import "../../../media/astroid/assets/vendor/bootstrap/scss/bootstrap";@import "../../../media/astroid/assets/vendor/astroid/scss/astroid";@import "style";@import "custom/custom";') in /var/www/virtual/rs-karlsbad.de/htdocs/libraries/astroid/framework/library/astroid/Document.php (line 1119)
  1.             if ($color_mode && $color_mode_dark) {
  2.                 $content    .=  '@include color-mode(dark) {'$color_mode_dark .'}';
  3.             }
  4.         }
  5.         $css $scss->compileString($content);
  6.         Framework::getDebugger()->log('Rendering Scss');
  7.         Helper::putContents($path$css->getCss());
  8.     }
  9.     public function renderCss(): string
Document->renderScss('/var/www/virtual/rs-karlsbad.de/htdocs/media/templates/site/tp_schule/css/compiled-b1c3cfddd7470ce227daf49d2f38b16d.css') in /var/www/virtual/rs-karlsbad.de/htdocs/libraries/astroid/framework/library/astroid/Document.php (line 1305)
  1.                 // rendering scss
  2.                 Framework::getReporter('Logs')->add('Rendering Scss');
  3.                 // clearing previous versions
  4.                 Helper::clearCache($template->template, ['compiled-' $scssVersion'template']);
  5.                 // adding compiled scss in css file
  6.                 $this->renderScss($cssFile);
  7.                 if ($template->isDefault()) {
  8.                     Helper::clearCache($template->template, ['template']);
  9.                     File::copy($cssFileJPATH_SITE '/media/templates/site/' $template->template '/css/template.css');
  10.                 }
  11.             } else {
  1.     public static function styles()
  2.     {
  3.         $document Framework::getDocument();
  4.         $document->loadFontAwesome();
  5.         $document->astroidCSS();
  6.         return '';
  7.     }
  8. }
  1.         }
  2.         Helper::triggerEvent('onBeforeAstroidRender'); // at last process all astroid:include
  3.         $document Framework::getDocument();
  4.         Component\Utility::meta(); // site meta
  5.         Component\Utility::typography(); // site typography
  6.         Helper\Head::styles(); // site Styles
  7.         Component\LazyLoad::run(); // to execute lazy load
  8.         Component\Utility::cursorEffect(); // smooth scroll utility
  9.         Component\Utility::smoothScroll(); // smooth scroll utility
  10.         Helper\Head::scripts(); // site scripts
  1.     }
  2.     public function onBeforeRender()
  3.     {
  4.         if (defined('_ASTROID')) {
  5.             Framework::getClient()->onBeforeRender();
  6.         }
  7.     }
  8.     public function onAfterRender()
  9.     {
AstroidPlugin->onBeforeRender(object(SiteApplication)) in /var/www/virtual/rs-karlsbad.de/htdocs/libraries/src/Plugin/CMSPlugin.php (line 311)
  1.                 }
  2.                 // Convert to indexed array for unpacking.
  3.                 $arguments array_values($arguments);
  4.                 $result $this->{$methodName}(...$arguments);
  5.                 // Ignore null results
  6.                 if ($result === null) {
  7.                     return;
  8.                 }
  1.             foreach ($this->listeners[$event->getName()] as $listener) {
  2.                 if ($event->isStopped()) {
  3.                     return $event;
  4.                 }
  5.                 $listener($event);
  6.             }
  7.         }
  8.         return $event;
  9.     }
  1.             $dispatcher $this->getDispatcher();
  2.         } catch (\UnexpectedValueException $exception) {
  3.             return null;
  4.         }
  5.         return $dispatcher->dispatch($eventName$event ?: new ApplicationEvent($eventName$this));
  6.     }
  7.     /**
  8.      * Method to run the application routines.
  9.      *
AbstractApplication->dispatchEvent('onBeforeRender', object(BeforeRenderEvent)) in /var/www/virtual/rs-karlsbad.de/htdocs/libraries/src/Application/CMSApplication.php (line 1108)
  1.         // Parse the document.
  2.         $this->document->parse($this->docOptions);
  3.         // Trigger the onBeforeRender event.
  4.         PluginHelper::importPlugin('system'nulltrue$this->getDispatcher());
  5.         $this->dispatchEvent(
  6.             'onBeforeRender',
  7.             new BeforeRenderEvent('onBeforeRender', ['subject' => $this])
  8.         );
  9.         $caching false;
  1.                 $this->set('themeInherits'$template->parent);
  2.                 break;
  3.         }
  4.         parent::render();
  5.     }
  6.     /**
  7.      * Route the application.
  8.      *
  1.             $this->doExecute();
  2.             // If we have an application document object, render it.
  3.             if ($this->document instanceof \Joomla\CMS\Document\Document) {
  4.                 // Render the application output.
  5.                 $this->render();
  6.             }
  7.             // If gzip compression is enabled in configuration and the server is compliant, compress the output.
  8.             if ($this->get('gzip') && !\ini_get('zlib.output_compression') && \ini_get('output_handler') !== 'ob_gzhandler') {
  9.                 $this->compress();
CMSApplication->execute() in /var/www/virtual/rs-karlsbad.de/htdocs/includes/app.php (line 58)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/var/www/virtual/rs-karlsbad.de/htdocs/includes/app.php') in /var/www/virtual/rs-karlsbad.de/htdocs/index.php (line 32)
  1.  * define() is used rather than "const" to not error for PHP 5.2 and lower
  2.  */
  3. define('_JEXEC'1);
  4. // Run the application - All executable code should be triggered through this file
  5. require_once __DIR__ '/includes/app.php';