Hi,
first of all, this is an awesome module. Thanks for that. Now the problem:
When I create a view and display a rendered entity with mediafront players I got the following error:
Strict warning: Only variables should be passed by reference in mediafront_field_formatter_view() (line 144 of ...)
Have attached a patch for that issue.
Hope this helps you when you get the same problem.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | strict-warning-mediafront.patch | 747 bytes | jci |
Comments
Comment #1
jci commentedHere is the patch ...
Comment #2
enjoylife commentedI'm having the same issue as well with the 7.x-2.x-dev version when viewing a linked video in a node. I'm changing the status of this issue. Thank you very much.
Comment #3
enjoylife commentedI tested this and received this error: "Fatal error: Unsupported operand types in ...\sites\all\modules\mediafront\includes\mediafront.field.inc on line 144."
Comment #4
enjoylife commentedFor my issue, I resolved it by selecting a preset in my content type (Structure > Content types > content type > Manage Display). I did not have a preset selected before. Do you have a preset selected in your view?
But if someone does not select a preset for their display, this error occurs. It looks like the code wants to use the first preset as a default if no preset is selected, but that something needs to be adjusted so that this error is not thrown when no preset is selected.
Comment #5
jci commentedThe problem occured only if you have no default preset selected, so you are right ...
Comment #6
jci commentedTested the patch on a clean install and it works... Please test the patch again!
Comment #7
enjoylife commentedSorry. I applied the patch incorrectly the first time. I've tested this again. The patch removes the Strict warning error for me when no preset is selected. Thank you!
Comment #8
jci commentedComment #9
enjoylife commentedThis doesn't need to be ported. It just needs to be committed. Thanks, jci.
Comment #10
travist commentedFixed. Thank you!
Comment #12
jci commented