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.
When using weight, I get a lot of these messages in the log:
Strict warning: Non-static method Drupal\weight\Plugin\Field\FieldWidget\WeightSelectorWidget::rangeOptions() should not be called statically, assuming $this from incompatible context in Drupal\weight\Plugin\views\field\WeightSelector->viewsForm() (line 66 of /modules/weight/src/Plugin/views/field/WeightSelector.php).
Comment | File | Size | Author |
---|---|---|---|
#10 | fix-warning-message.patch | 2.14 KB | drholera |
#4 | weight-non-static-method-2671844-3.patch | 1.17 KB | tusharbodke |
Comments
Comment #2
ExTexan CreditAttribution: ExTexan commentedI'm getting (sort of) the same thing, though mine is worded differently...
Comment #3
tusharbodke CreditAttribution: tusharbodke as a volunteer and at Faichi Solutions Pvt Ltd commentedComment #4
tusharbodke CreditAttribution: tusharbodke as a volunteer and at Faichi Solutions Pvt Ltd commentedHi Lukas von Blarer, ExTexan
I have attached Patch to resolve above reported issue. Please have a try. Let me know if anything.
Patch is working fine for me.
Thanks
Comment #5
gaurav.bajpai CreditAttribution: gaurav.bajpai as a volunteer and at Faichi Solutions Pvt Ltd commentedHi Tushar,
your patch working fine, At code level everything looks fine to me.
Thanks
Comment #6
morsokWorks for me too, thank you !
Comment #8
davisbenThanks for the patch. Committed to 8.x-3.x.
Comment #10
drholera CreditAttribution: drholera at Adyax commentedI suggest a bit better solution, to use Drupal services instead.