Closed (fixed)
Project:
Rivet
Version:
1.1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
25 Sep 2026 at 17:52 UTC
Updated:
13 Oct 2026 at 22:35 UTC
Jump to comment: Most recent
Rivet’s rivet_preprocess_page() assumes the request exception attribute always provides getStatusCode(). Drupal can provide an EnforcedResponseException, which does not implement that method. This causes a fatal error and blank HTTP 500 response during Entity Browser/AJAX response rendering.
The response fails with:
Call to undefined method Drupal\Core\Form\EnforcedResponseException::getStatusCode()
Expected: Non-HTTP exceptions should not cause theme preprocessing to fatal.
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
$status_code = $status instanceof HttpExceptionInterface
? $status->getStatusCode()
: 0;
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
jwilson3Comment #4
jwilson3Comment #6
jwilson3Fixed in release 1.1.4