After i create the content am getting the following error .
Notice: Undefined index: modules/fivestar/widgets/basic/basic.css in Drupal\fivestar\Plugin\Field\FieldFormatter\StarsFormatter->viewElements() (line 48 of modules/contrib/fivestar/src/Plugin/Field/FieldFormatter/StarsFormatter.php).
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | undefined_index-2854077-4.patch | 1.16 KB | davps |
| #2 | undefinednotice-2854077.patch | 636 bytes | saradaprasad17 |
| fivestar 2017-02-20 11-29-24.png | 197.36 KB | saradaprasad17 |
Comments
Comment #2
saradaprasad17 commentedFixed the issue . Uploaded patch file .
Comment #3
sylus commentedNot sure how this fixed your issue?
When I changed to any other custom style I couldn't see the icons on the front end. You are adding the css stylesheet to the name attribute.
Should be:
With the patch:
Comment #4
davps commentedComment #5
gg24 commentedComment #6
dbt102 commentedThanks for reporting the issue @saradaprasad17, and for the input of everyone else. I tested on a fresh D8 install and I do not see the error after I apply the -4 patch. Did not check it with other custom styles @stylus. If that is still a problem, please reopen this issue. Will commit soon ...
Comment #8
dbt102 commentedComment #10
magicmirror commentedI am getting this error even with the latest module, which appears to have the patch included. However mine is line 43:
Notice: Undefined index: modules/fivestar/widgets/outline/outline.css in Drupal\fivestar\Plugin\Field\FieldFormatter\StarsFormatter->viewElements() (line 43 of modules/contrib/fivestar/src/Plugin/Field/FieldFormatter/StarsFormatter.php).
Comment #11
nikita_tt@magicmirror
If you still see this error apparently there are configs which keep "modules/fivestar/widgets/......." settings. Just go through all config files in a "sync" directory and change "modules/fivestar/widgets" to "modules/contrib/fivestar/widgets/".
In my case, I changed "modules/fivestar/widgets/basic/basic.css" to "modules/contrib/fivestar/widgets/basic/basic.css" and re-imported changed configs.