Skip to content

Fix: Unknown '_sx' function#112

Merged
stonebuzz merged 2 commits intomainfrom
fix_button
Apr 2, 2026
Merged

Fix: Unknown '_sx' function#112
stonebuzz merged 2 commits intomainfrom
fix_button

Conversation

@Rom1-B
Copy link
Copy Markdown
Contributor

@Rom1-B Rom1-B commented Apr 2, 2026

Checklist before requesting a review

Please delete options that are not relevant.

  • I have performed a self-review of my code.
  • I have added tests (when available) that prove my fix is effective or that my feature works.
  • I have updated the CHANGELOG with a short functional description of the fix or new feature.
  • This change requires a documentation update.

Description

  • It fixes #N/A
glpi.CRITICAL:   *** Uncaught PHP Exception Twig\Error\SyntaxError: "Unknown "_sx" function. Did you mean "_x", "_nx" in "@treeview/config.html.twig" at line 110?" at config.html.twig line 110
  Backtrace :
  ./plugins/treeview/templates/config.html.twig:110  
  ...ionParser/Infix/FunctionExpressionParser.php:51 Twig\Parser->getFunction()
  ./vendor/twig/twig/src/Parser.php:390              Twig\ExpressionParser\Infix\FunctionExpressionParser->parse()
  ./vendor/twig/twig/src/Parser.php:180              Twig\Parser->parseExpression()
  ./vendor/twig/twig/src/Parser.php:104              Twig\Parser->subparse()
  ./vendor/twig/twig/src/Environment.php:558         Twig\Parser->parse()
  ./vendor/twig/twig/src/Environment.php:589         Twig\Environment->parse()
  ./vendor/twig/twig/src/Environment.php:408         Twig\Environment->compileSource()
  ./vendor/twig/twig/src/Environment.php:370         Twig\Environment->loadTemplate()
  .../Glpi/Application/View/TemplateRenderer.php:188 Twig\Environment->load()
  ./plugins/treeview/inc/config.class.php:90         Glpi\Application\View\TemplateRenderer->display()
  ./plugins/treeview/inc/config.class.php:77         PluginTreeviewConfig->showConfigForm()
  ./src/CommonGLPI.php:717                           PluginTreeviewConfig::displayTabContentForItem()
  ./ajax/common.tabs.php:108                         CommonGLPI::displayStandardTab()
  ...Glpi/Controller/LegacyFileLoadController.php:64 require()
  ./vendor/symfony/http-kernel/HttpKernel.php:181    Glpi\Controller\LegacyFileLoadController->__invoke()
  ./vendor/symfony/http-kernel/HttpKernel.php:76     Symfony\Component\HttpKernel\HttpKernel->handleRaw()
  ./vendor/symfony/http-kernel/Kernel.php:208        Symfony\Component\HttpKernel\HttpKernel->handle()
  ./public/index.php:71                              Symfony\Component\HttpKernel\Kernel->handle()

Screenshots (if appropriate):

@Rom1-B Rom1-B requested a review from stonebuzz April 2, 2026 11:37
@stonebuzz stonebuzz merged commit 94be188 into main Apr 2, 2026
3 checks passed
@stonebuzz stonebuzz deleted the fix_button branch April 2, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants