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.
If drupal_debug() tries to write to file and fails the error is simply "The file could not be written.". It would be nice if this at least said that this was from the devel module to help debug the problem quickly. Patches to follow.
Comment | File | Size | Author |
---|---|---|---|
#9 | devel-8.x-2023031-debug-file-error-9.patch | 556 bytes | justanothermark |
#8 | devel-8.x-2023031-debug-file-error-8.patch | 555 bytes | justanothermark |
#6 | devel-2023031-debug-file-error-6.patch | 556 bytes | justanothermark |
#4 | devel-debug-file-error-4.patch | 0 bytes | justanothermark |
#2 | devel-7.x-1.x-debug-file-error-2023031-2.patch | 544 bytes | justanothermark |
Comments
Comment #1
justanothermark CreditAttribution: justanothermark commentedPatches for 7.x-1.x and 8.x-1.x attached.
Comment #2
justanothermark CreditAttribution: justanothermark commentedOops, new message was inconsistent between branches. Fixed 7.x-1.x patch.
Comment #3
salvisCan we use active voice? Something like "Devel was unable to write to %file."
Comment #4
justanothermark CreditAttribution: justanothermark commentedSounds good to me. I'll admit that I wasn't completely happy with the message I suggested but hadn't thought about the alternatives & just made the simplest change to get the info in there. 7.x patch with new message attached.
Comment #5
pcambraPatch in #4 is empty
Comment #6
justanothermark CreditAttribution: justanothermark commentedApologies, not sure how I managed to upload an empty file but another attempt (and I've tested the uploaded file isn't empty this time).
Comment #7
pcambraComment #8
justanothermark CreditAttribution: justanothermark commentedPatch to make same change for 8.x attached. Patch in #6 is for 7.x.
Comment #9
justanothermark CreditAttribution: justanothermark commentedMissing full stop in updated message.
Comment #10
salvisCommitted to D8/D7/D6 -- thanks, justanothermark!