Documentation page for class Details in Drupal 11 throws 5xx Server Error
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3533572. -->
Reported by: [cadence96](https://www.drupal.org/user/3520894)
Related to !66
>>>
<p>When trying to access the API documentation page for the class <code>\Drupal\Core\Render\Element\Details</code> in the Drupal 11 branch, the page fails to load and returns a <strong>5xx Server Error</strong>.</p>
<ul>
<li><strong>Bugged API page:</strong><br>
<a href="https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Render%21Element%21Details.php/class/Details/11.x" target="_blank" rel="noopener">https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Render%21Element%21Details.php/class/Details/11.x<br>
</a><br>
</li>
<li><strong>How to locate the broken link:</strong>
<ol>
<li>Visit the class file documentation:<a href="https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Render%21Element%21Details.php/11.x" target="_blank" rel="noopener"><br>
https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Render%21Element%21Details.php/11.x<br>
</a><br>
</li>
<li>In the table that lists classes/functions (with columns like <em>Title</em>, <em>Deprecated</em>, <em>Summary</em>), click on the <strong>Details</strong> class link — it leads to the broken page above.<br><br></li>
<li>Alternatively, go to the Drupal 10 page:<a href="https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!Element!Details.php/class/Details/10" target="_blank" rel="noopener"><br>
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!Element!Details.php/class/Details/10<br>
</a>There’s a link at the top that says:<em><br>You are browsing documentation for Drupal 10.3.x… Read the updated version of this page for Drupal 11.x (the latest version).</em><br><br>
That link also points to the broken page.
</li>
</ol>
</li>
<li><strong>Expected behavior:</strong><br>
The class documentation should load successfully for Drupal 11.x.<br><br>
</li>
<li><strong>Actual behavior:</strong><br>
The page returns a <strong>5xx Server Error</strong>.<br><br>
</li>
<li><strong>Tested environment:</strong><br>
Verified in multiple browsers. The issue is persistent.
</li>
</ul>
issue