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.
I tried to specify property, but did not realize that it would crash PHP completely if returned value is not string (when running str_replace() with value.) Attached patch adds check for presence of string, or otherwise throws catch-able error with details on returned value, so user can go back and fix content.
Comment | File | Size | Author |
---|---|---|---|
add-property-value-check-and-better-error-handling.patch | 1.44 KB | pavel.karoukin |
Comments
Comment #2
sdrycroft CreditAttribution: sdrycroft commentedThanks Pavel, I had already fixed this in my working repository, but hadn't thought about releasing it here.
https://github.com/NaturalHistoryMuseum/scratchpads2/tree/master/sites/a...