My pages spit out multiple occurrences of:

Strict warning: Only variables should be passed by reference in better_formats_filter_process_format() (line 132 of .../drupal/sites/all/modules/better_formats/better_formats.module).

The line that the warnings points to is:

$element['format']['format']['#default_value'] = array_shift(array_keys($options));

Comments

gaas’s picture

Issue summary: View changes
steinmb’s picture

Status: Active » Closed (won't fix)

Already addressed in dev. Pls. test with the latest dev. and re-open if the problem still persist.

amanire’s picture

I would love to see this fix rolled out into a stable release. I'd prefer not to use the dev branch or patched module on a production site. Is there any way I can help?

no sssweat’s picture

All the warning is saying, is that you need to pass/use a variable. So all you gotta do is create a variable and use it.

Just replace line 132 with the following two lines

$test = array_keys($options);
$element['format']['format']['#default_value'] = array_shift($test);
no sssweat’s picture

Status: Closed (won't fix) » Closed (fixed)
edachan’s picture

#4 worked perfectly, thanks camster!

drupov’s picture

Status: Closed (fixed) » Closed (duplicate)
bigferumdron’s picture

Please fix this bug in stable release. Мany people are afraid to use dev version. Thank you.