When clearing the decorator cache (or something like that), I get the following error:
Strict warning: Only variables should be passed by reference in _decorator_file_cache() (line 250 of /.../sites/all/modules/decorator/decorator.module).
Since it's a strict warning, it's not a big deal, but it should be easy to get rid of that error. I'm working on a patch right now and will post when it's ready.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | decorator-strict_passed_by_reference_warning-2374971-1.patch | 782 bytes | cuteapoot |
Comments
Comment #1
cuteapoot commentedDocumentation for
file_prepare_directory()shows the first parameter as&$directory, so I just re-used that variable name and assigned it prior to callingfile_prepare_directory(). No more strict warnings!Comment #2
kebz commentedI just installed this module and received these warnings
Comment #3
smitty commentedI got this strict warning when clearing the cache since I replaced php 5.3 with php 5.4.
After applying this patch the warning has gone. Well done! Thank you!
The two other warnings, that were mentioned by Kebz seem to be another problem, located in the Views Decorator Module. I have to struggle with those warnings too but I will post my issue over there