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.
Hello,
I'm trying to create a photo gallery. After creating its content type and the image presets, when I'm adding a new content node and therefore, adding images to the node it gives me an error, that keep appearing on pages:
Strict warning: Only variables should be passed by reference em file_file_download() (linha 164 de C:\xampp\htdocs\modules\file\file.module).
What's wrong?
Comment | File | Size | Author |
---|---|---|---|
#1 | fix_strict_error.patch | 652 bytes | Berdir |
Comments
Comment #1
BerdirNot much wrong, just a e_strict warning. I guess I added that line ;)
Try the attached patch.
Comment #2
BerdirComment #3
xpound CreditAttribution: xpound commentedEureka! :P Thanks!
Comment #4
marcingy CreditAttribution: marcingy commentedLooks good to me
Comment #5
webchickIs there a way to trigger this warning from an automated test?
Comment #6
tstoecklerEither enabling E_STRICT errors, which was dismissed for D7 I think, or installing PHP 5.3.
Comment #7
BerdirTestbots are already running PHP 5.3
Enabling E_STRICT however is not possible, unless we want to enforce E_STRICT compatibility for all contrib modules as well. Which I think we can not. That was already tried for D7 and quickly reverted.
Comment #8
catchComment #9
Dries CreditAttribution: Dries commentedCommitted to 7.x and 8.x. Thanks Berdir.
Comment #10
bfroehle CreditAttribution: bfroehle commentedUntagging since it's been committed to 7.x