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.
PHP does not validate. use Exception is declared in all other similar files in core. I will upload the patch in a minute.
Comment | File | Size | Author |
---|---|---|---|
#1 | updateexception-1750980.patch | 399 bytes | nlisgo |
Comments
Comment #1
nlisgo CreditAttribution: nlisgo commentedHere is the little patch :)
Comment #2
nlisgo CreditAttribution: nlisgo commentedComment #3
nlisgo CreditAttribution: nlisgo commentedIn case you're wondering where the validation error occurs it is in core/modules/system/system.api.php line 2949.
"The thrown object must be an instance of the Exception".
Comment #4
eojthebraveThis seems reasonable to me and it's a super simple patch. If you're going to extend the exception class you need to make sure it gets loaded. :)
Comment #5
catchThanks. Committed/pushed to 8.x.