When editing an image in media gallery beta3 with a newly setup standard D7.0 I get this:
Strict warning: Only variables should be passed by reference in file_styles_strstr() (line 61 of /var/www/demo.0x8.net/drupal-7.0/sites/all/modules/styles/contrib/file_styles/file_styles.module)
Using media-beta3, styles-alpha-4, multiform-beta1
Best regards,
Ao
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | styles-1030930-7.patch | 824 bytes | codycraven |
| #5 | styles-1030930.patch | 802 bytes | pivica |
Comments
Comment #1
Aonoa commentedThis warning changed to line 64 with styles-alpha5.
Best regards,
Ao
Comment #2
Aonoa commentedThis also happens when simply adding media to my Media Gallery.
Best regards,
Ao
Comment #3
Aonoa commentedActually, the warning is displayed both before I open my gallery and when I open my gallery it is displayed once for each media in it. Using PHP 5.3.5.
Best regards,
Ao
Comment #4
rmarius commented+1 Same problem
Comment #5
pivica commentedHere is a patch against latest dev version.
Comment #6
Aonoa commentedThe patch in #5 works for me, thank you. :-)
Best regards,
Ao
Comment #7
codycraven commentedThe patch attached is functionally identical to the patch in #5. Uses list() instead of array_shift(). Personal preference of the maintainers can be used to decide between options.
Comment #8
codycraven commentedNote other options of how this could be done (identical to #5 except for the return statement):
return $exploded[0];or
return reset($exploded);I don't really care which option is chosen, and I'm sure there are more than what has been provided. We just need this patched.
Comment #9
aaron commentedcommitted, thanks pivica & codycraven!