Closed (fixed)
Project:
Rate
Version:
3.2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
12 May 2024 at 10:29 UTC
Updated:
8 May 2026 at 12:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedjaydenpearly created an issue. See original summary.
Comment #4
aaron.ferris commentedSeems the
$options['widgets']default value is '', so on first add of the field we are trying to access keys/values that don't exist yet.Raised an MR.
Comment #5
aaron.ferris commentedComment #6
aaron.ferris commentedScreenshots with change, with multiple rate widgets on a view.
Comment #7
Anonymous (not verified) commentedThank Aaron, it works.
+1 for RTBC
Comment #8
digitalore commentedThis error is occurring again in Drupal 10.
I cannot use a second "rate widget view field" within a view page. I get the following error.
TypeError: Cannot access offset of type string on string in Drupal\rate\Plugin\views\field\RateWidgetField->render() (line 228 of /chroot/home/---/---.com/html/modules/rate/src/Plugin/views/field/RateWidgetField.php).
Comment #9
digitalore commentedComment #10
aaron.ferris commented@digitalore works as I would expect here, what version of Drupal?
10.2.6 here, article content type with 2 rate widgets, a view of articles with both rate widgets configured.
As per screenshot.
Feels like a separate issue, please create a new issue with steps to reproduce and more info such as Drupal version etc. Feel free to tag me in it, ill try and help.
Comment #11
aaron.ferris commentedComment #12
ivnishComment #14
ivnishThanks! Fixed