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.

Issue fork fivestar-3273701

Command icon 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

init90 created an issue. See original summary.

init90’s picture

Issue summary: View changes
init90’s picture

Status: Active » Needs review
StatusFileSize
new1.98 KB
tarawren’s picture

I've been watching and waiting for this patch for so long. Thank you so much for creating a patch that works!

derekb’s picture

Hi @init90 - the patch fails when I attempt to apply it via Composer.

init90’s picture

Hi @derekb, the patch works with the dev version of the module.

sagesolutions’s picture

Status: Needs review » Reviewed & tested by the community

I successfully applied the patch to the dev version of the module. Cleared the cache and there was no error message!

Marking as RTBC

karimbou’s picture

Using 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

stephane888’s picture

The patch #3 working for me on 8.x-1.x-dev and Drupal 9.3.13
Thank you so much.

alsammanKhaled’s picture

Hey, 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.

derekb’s picture

proweb.ua’s picture

#3 works

saesa’s picture

@KarimBou I have the same problem, have you managed to solve it?

derekb’s picture

@KarimBou and @saesa - be sure to run the patch on the dev version of fivestar.

alsammanKhaled’s picture

@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.

saesa’s picture

When will this patch be applied to a release?

retiredpro’s picture

Patch #3 worked for me too. Thanks!

saurabh-2k17’s picture

Hey 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?

saesa’s picture

@saurabh-2k17 be sure to run the patch on the dev version of fivestar

fenstrat’s picture

Confirming #3 is RTBC.

ravimalviya2000’s picture

Hi ,
this patch working for 9.x?

wxman’s picture

Just installed the 8.x-1.x-dev manually patched using #3 on a 9.4.6 site and it works great with no error

samaphp’s picture

Thank you guys, we hope to see this merged soon. thanks

abdulaziz zaid’s picture

The patch is working fine.

heddn’s picture

Yeah, we are using it too w/ great success. +1 on commit.

eduardo morales alberti’s picture

#3 working on a Drupal 9.5

i-trokhanenko’s picture

+1 RTBC, #3 works on 9.5.9

ankondrat4 made their first commit to this issue’s fork.

ankondrat4’s picture

StatusFileSize
new208.05 KB

Added screenshot with error

ankondrat4’s picture

Hello.
+1 RTBC, #3 works on 9.5.9

Besides, I have created issue fork and MR with these changes for next release of module.

heddn’s picture

Bump

o'briat’s picture

I add it to the global issue #3377377 about drupal-check

tr’s picture

Status: Reviewed & tested by the community » Needs work

Remove the function. In the feature, we can always reintroduce it.

I 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.

heddn’s picture

See 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.

anas_maw’s picture

StatusFileSize
new2.05 KB

Reroll patch in #3 to work on the latest dev version for temporary solution

durifal’s picture

StatusFileSize
new2.05 KB

Reroll patch in #36 to work on the latest dev version for temporary solution