Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
file system
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
17 Feb 2011 at 19:14 UTC
Updated:
29 Jul 2014 at 19:22 UTC
Jump to comment: Most recent file
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 commentedEureka! :P Thanks!
Comment #4
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 commentedCommitted to 7.x and 8.x. Thanks Berdir.
Comment #10
bfroehle commentedUntagging since it's been committed to 7.x