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.
Problem/Motivation
When calling TemporaryStream::getExternalUrl() I get this error:
Fatal error: Call to undefined method Drupal\Core\StreamWrapper\TemporaryStream::url() in /var/www/drupal8/core/lib/Drupal/Core/StreamWrapper/TemporaryStream.php on line 33
Proposed resolution
Fix this by calling Url::fromRoute() instead of non-existent function.
Remaining tasks
- prepare patch
- write tests
- review
User interface changes
None
API changes
None
Comment | File | Size | Author |
---|---|---|---|
#11 | interdiff.txt | 1.06 KB | slashrsm |
#11 | 2352855_11.patch | 2.94 KB | slashrsm |
#7 | interdiff.txt | 1.36 KB | slashrsm |
#7 | 2352855_7.patch | 2.29 KB | slashrsm |
#1 | 2352855_1_TEST_ONLY.patch | 1.25 KB | slashrsm |
Comments
Comment #1
slashrsm CreditAttribution: slashrsm commentedComment #2
slashrsm CreditAttribution: slashrsm commentedComment #4
slashrsm CreditAttribution: slashrsm commentedComment #5
Primsi CreditAttribution: Primsi commentedLooks ok.
Comment #6
alexpottNot supposed to use t() on test assertion messages and we're not really testing the that the URL is correct here by user
assertTrue
are we?Comment #7
slashrsm CreditAttribution: slashrsm commentedAh, right! Here we go.
Comment #8
Ibn al-Hazardous CreditAttribution: Ibn al-Hazardous commentedHello,
is this patch going into the next beta?
I get a white screen of death going to
/admin/content/files
, and the log shows the same fatal error as in the initial report.The latest patch works perfectly for me, so who do I pester to see it applied? ;-)
Comment #11
slashrsm CreditAttribution: slashrsm commentedComment #12
marcingy CreditAttribution: marcingy commentedLooks good
Comment #15
slashrsm CreditAttribution: slashrsm commentedComment #16
catchCommitted/pushed to 8.0.x, thanks!