Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have this warning message when overriding default order of formats for field comment
Strict warning: Only variables should be passed by reference w better_formats_filter_process_format() (line 132 in ...\sites\all\modules\better_formats\better_formats.module).
Comment | File | Size | Author |
---|---|---|---|
#13 | better_format-n1717470-11.patch | 493 bytes | AexChecker |
#11 | better_format-strict-warning-1717470-11.patch | 553 bytes | mbruneel |
#2 | fix_var_ref_message-1717470-1.patch | 0 bytes | mathieso |
Comments
Comment #1
milley CreditAttribution: milley commentedWhen I add new content with reordered formats for some field I also have this warning.
Comment #2
mathieso CreditAttribution: mathieso commentedThis patch should fix it.
Note: I'm still learning about patch files. Please let me know if aught is wrong. The changes are at line 132, replacing ...
... with ...
Kieran
Comment #3
meridiandigital CreditAttribution: meridiandigital commentedConfirm patch works as advertised.
Comment #4
drupov CreditAttribution: drupov commentedPatch works for me too.
Comment #5
dragonwize CreditAttribution: dragonwize commentedThanks. Committed.
Comment #7
wylbur CreditAttribution: wylbur commentedThis is still an issue when using PHP 5.4. Drupal reports this error when you change the default sort order of formats.
The patch listed in comment #2 does not work as it is a zero length file.
I applied the changes to the file, and that resolved the error for me. This is ready for rolling a real patch and testing.
Comment #8
dwwIt's been fixed in 7.x-1.x-dev. beta1 still has the broken code. You need to upgrade to the latest dev (or wait for beta2 to come out).
Weird that that patch file is empty. Here's the commit that's in Git that fixes the bug:
http://drupalcode.org/project/better_formats.git/commitdiff/ca0822a
Good luck,
-Derek
Comment #9
AnybodyThis fix is now very old but the problem still exists in the latest version. Is it possible to release a new beta version soon to have this fixed? It should not get worse by that but you would make many people happy :)
Comment #10
edachan CreditAttribution: edachan commentedSolution at https://www.drupal.org/node/2194237#comment-9501869
Comment #11
mbruneel CreditAttribution: mbruneel commentedComment #12
drupov CreditAttribution: drupov commentedAs stated in #8 if you use latest dev, the error should not appear.
Comment #13
AexChecker CreditAttribution: AexChecker as a volunteer commentedComment #14
Chipie CreditAttribution: Chipie commented#13 works for me
Comment #15
loopduplicateLooks like this was fixed in the dev version: http://cgit.drupalcode.org/better_formats/commit/?h=7.x-1.x&id=ca0822a94...
Comment #16
loopduplicateComment #18
AnybodyPlease create a new stable release. This is still unfixed in the latest stable, which is very sad. The .dev is well tested and OK!
Any active maintainer here?
Comment #19
tregismoreira CreditAttribution: tregismoreira commented#13 works for me. Thanks! :)
Comment #20
steveoriol#13 works for me too. Thanks! :-)