Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We had a content type that uses cckrand, which doesn't have cckrand_content_is_empty implemented, so it was throwing a white screen of death.
Turns out the error was on line 920 of content.module - it calls
$filtered[] = $function($item, $field)) ? $empty : $item;
So I patched it to call:
$filtered[] = (function_exists($function) && $function($item, $field)) ? $empty : $item;
which fixes our issue.
Comment | File | Size | Author |
---|---|---|---|
#1 | add-function-exists-check-1364214.patch | 551 bytes | meyian |
Comments
Comment #1
meyian CreditAttribution: meyian commentedComment #2
meyian CreditAttribution: meyian commentedComment #3
markdorisonThis makes sense to me.