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.
There is a missing "use drupal" in the code. See patch attached.
Comment | File | Size | Author |
---|---|---|---|
#2 | 0001-Fix-missing-use.patch | 971 bytes | jehon |
Comments
Comment #2
jehon CreditAttribution: jehon as a volunteer commentedComment #3
jehon CreditAttribution: jehon as a volunteer commentedComment #4
jehon CreditAttribution: jehon as a volunteer commentedNow with the correct file :-)
Comment #5
hansfn CreditAttribution: hansfn commentedI would have liked to see the warning/error that is fixed by the use statement.
Which version of Drupal 8 are you using?
Comment #6
jehon CreditAttribution: jehon as a volunteer commentedHello
I am using Drupal 8.0.4.
As far as I remember (it was this morning after all :-) ), it was at this line:
if (VIEWS_SEND_MIMEMAIL && Drupal::currentUser()->hasPermission('attachments with views_send') &&
The "Drupal" is not prefixed with "\" and is not found in the current scope.
I could not reactivate the mime mail extension now, so I could not reproduce the problem. But I am pretty sure it was there...
Comment #7
jehon CreditAttribution: jehon as a volunteer commentedSee our other bug https://www.drupal.org/node/2699779 that explain why I could not enable that extension anymore :-)
And thank you for your help !!
Comment #8
hansfn CreditAttribution: hansfn commentedYes, I consider this a duplicate of #2699779: Problem when using Mime Mail so I'm just closing this one.