Problem/Motivation
As mentioned in #3256199: User deprecated function: Theme functions are deprecated in drupal:8.0.0 the function is currently unused, triggers a deprecation message and exists code that does a similar job.
Proposed resolution
Remove the function. In the feature, we can always reintroduce it.
| Comment | File | Size | Author |
|---|---|---|---|
| #37 | 3273701_37_remove_fivestar_preview.patch | 2.05 KB | durifal |
| #36 | 3273701_36.patch | 2.05 KB | anas_maw |
| #30 | theme_fivestar_preview_error.png | 208.05 KB | ankondrat4 |
| #3 | 3273701_3.patch | 1.98 KB | init90 |
Issue fork fivestar-3273701
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
init90Comment #3
init90Comment #4
tarawren commentedI've been watching and waiting for this patch for so long. Thank you so much for creating a patch that works!
Comment #5
derekb commentedHi @init90 - the patch fails when I attempt to apply it via Composer.
Comment #6
init90Hi @derekb, the patch works with the dev version of the module.
Comment #7
sagesolutions commentedI successfully applied the patch to the dev version of the module. Cleared the cache and there was no error message!
Marking as RTBC
Comment #8
karimbou commentedUsing latest drupal 9.3.x and fivestar @dev module via composer when patching i'm getting this :
https://www.drupal.org/files/issues/2022-04-06/3273701_3.patch (Remove 'fivestar_preview' theme function)
Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2022-04-06/3273701_3.patch
Comment #9
stephane888 commentedThe patch #3 working for me on 8.x-1.x-dev and Drupal 9.3.13
Thank you so much.
Comment #10
alsammanKhaled commentedHey, how do i apply a patch? :(. I am still getting the hang of drupal. in my case i can't use composer so any other method or guide would be helpful.
Comment #11
derekb commented@AlsammanKhaled - https://www.drupal.org/docs/develop/git/using-git-to-contribute-to-drupa...
Comment #12
proweb.ua commented#3 works
Comment #13
saesa commented@KarimBou I have the same problem, have you managed to solve it?
Comment #14
derekb commented@KarimBou and @saesa - be sure to run the patch on the dev version of fivestar.
Comment #15
alsammanKhaled commented@Derekb Thank you for the link, I followed the steps and i got this error when trying to apply the patch:
error: corrupt patch at line 72
Im not sure whats wrong but i think there is a missing "}" at the end of the file? not sure.
Comment #16
saesa commentedWhen will this patch be applied to a release?
Comment #17
retiredpro commentedPatch #3 worked for me too. Thanks!
Comment #18
saurabh-2k17 commentedHey All,
I am using the 8.x-1.0-alpha2 version, hence the patch is not getting applied in my case. When can I expect this to be released in the latest version?
Comment #19
saesa commented@saurabh-2k17 be sure to run the patch on the dev version of fivestar
Comment #20
fenstratConfirming #3 is RTBC.
Comment #21
ravimalviya2000 commentedHi ,
this patch working for 9.x?
Comment #22
wxman commentedJust installed the 8.x-1.x-dev manually patched using #3 on a 9.4.6 site and it works great with no error
Comment #23
samaphpThank you guys, we hope to see this merged soon. thanks
Comment #24
abdulaziz zaidThe patch is working fine.
Comment #25
heddnYeah, we are using it too w/ great success. +1 on commit.
Comment #26
eduardo morales alberti#3 working on a Drupal 9.5
Comment #27
i-trokhanenko+1 RTBC, #3 works on 9.5.9
Comment #30
ankondrat4 commentedAdded screenshot with error
Comment #31
ankondrat4 commentedHello.
+1 RTBC, #3 works on 9.5.9
Besides, I have created issue fork and MR with these changes for next release of module.
Comment #32
heddnBump
Comment #33
o'briatI add it to the global issue #3377377 about drupal-check
Comment #34
tr commentedI strongly disagree. It should be ported, NOT deleted, because if it deleted it will never be reintroduced. That's what has happened with many other things.
It is really no harder to port it than it is to remove it. This is what the parent META issue is all about.
Throwing away things and taking quick fix shortcuts is one of the reasons this module has deteriorated since D7. If it's important to you, make the small effort to port it properly, don't just throw away what was once working and tested code.
Comment #35
heddnSee comments in #3287600-88: Drupal 10 compatibility fixes for what work is remaining here. Basically, we need to figure out if the features are replaced with other theme templates or convert it. I couldn't find where it is used currently, but that doesn't mean it isn't in use. But it doesn't block D10 support.
Comment #36
anas_maw commentedReroll patch in #3 to work on the latest dev version for temporary solution
Comment #37
durifal commentedReroll patch in #36 to work on the latest dev version for temporary solution