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.
I was trying to create a sub-theme and omega for Drupal 8 and it displayed the following error
list_themes() function does not exist
I replaced it with
theme_get_setting()
See images for more information and I create a patch to get it to work
Comment | File | Size | Author |
---|---|---|---|
#3 | list_themes-function-does-not-exist-506436-3.patch | 2.17 KB | dcmul |
list_themes-function-does-not-exist-506436-1.patch | 453 bytes | Purencool | |
newfunctionadded.png | 40.82 KB | Purencool | |
function-does-not-exits.png | 117.28 KB | Purencool |
Comments
Comment #1
jojomojo CreditAttribution: jojomojo commentedPatch works for me.
On a fresh install on drupal 8.0.0-beta9 .
btw: Thanks.
Comment #2
rodurico.sam CreditAttribution: rodurico.sam commentedThat patch worked fine here too, thanks!
Comment #3
dcmul CreditAttribution: dcmul as a volunteer commentedIt appears like the function theme_get_setting() is supposed to return settings, yet I think what is required here should be a function that returns themes. Based on change record https://www.drupal.org/node/2150863, I have taken the liberty to provide an other patch.
Comment #4
alvar0hurtad0The patch work fine.
Comment #5
himerus CreditAttribution: himerus as a volunteer commentedPatch does appear to solve this issue. Added to next package release.
Comment #6
Imaaxa-Cory CreditAttribution: Imaaxa-Cory as a volunteer commentedAppears to be fixed. Closing.