Documentation page for class Details in Drupal 11 throws 5xx Server Error

Created on 2 July 2025, 13 days ago

When trying to access the API documentation page for the class \Drupal\Core\Render\Element\Details in the Drupal 11 branch, the page fails to load and returns a 5xx Server Error.

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component

documentation

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @ricardo.castaneda
  • πŸ‡³πŸ‡ΏNew Zealand quietone

    @cadence96, thanks for letting us know.

    This is an issue for the API project.

  • πŸ‡ͺπŸ‡ΈSpain fjgarlin

    Error info.

    Symfony\Component\Routing\Exception\InvalidParameterException: Parameter "term" for route "api.search.project.branch.term" must match "[^/]++" ("" given) to generate a corresponding URL. in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 209 of /app/web/core/lib/Drupal/Core/Routing/UrlGenerator.php).
    
    Backtrace	
    #0 /app/web/core/lib/Drupal/Core/Routing/UrlGenerator.php(256): Drupal\Core\Routing\UrlGenerator->doGenerate()
    #1 /app/web/core/lib/Drupal/Core/Routing/UrlGenerator.php(300): Drupal\Core\Routing\UrlGenerator->getInternalPathFromRoute()
    #2 /app/web/core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php(108): Drupal\Core\Routing\UrlGenerator->generateFromRoute()
    #3 /app/web/core/lib/Drupal/Core/Url.php(765): Drupal\Core\Render\MetadataBubblingUrlGenerator->generateFromRoute()
    #4 /app/web/core/lib/Drupal/Core/Utility/LinkGenerator.php(183): Drupal\Core\Url->toString()
    #5 /app/web/core/lib/Drupal/Core/Link.php(164): Drupal\Core\Utility\LinkGenerator->generate()
    #6 /app/web/modules/contrib/api/src/Formatter.php(2314): Drupal\Core\Link->toString()
    #7 /app/web/modules/contrib/api/src/Formatter.php(1919): Drupal\api\Formatter::makeMatchLink()
    #8 [internal function]: Drupal\api\Formatter::linkName()
    ...
    
  • Merge request !66Use NULL instead of "none" string. β†’ (Merged) created by fjgarlin
  • πŸ‡ͺπŸ‡ΈSpain fjgarlin

    Also in the logs right before that, which is more likely to be the culprit:

    Warning: Undefined property: stdClass::$search_name in Drupal\api\Formatter::makeMatchLink() (line 2285 of /app/web/modules/contrib/api/src/Formatter.php)
    #0 /app/web/core/includes/bootstrap.inc(166): _drupal_error_handler_real()
    #1 /app/web/modules/contrib/api/src/Formatter.php(2285): _drupal_error_handler()
    #2 /app/web/modules/contrib/api/src/Formatter.php(1919): Drupal\api\Formatter::makeMatchLink()
    

    The MR above should fix this case.

  • Pipeline finished with Skipped
    13 days ago
    #537072
  • πŸ‡ͺπŸ‡ΈSpain fjgarlin

    I'll merge this and deploy with the other round of issues.

Production build 0.71.5 2024