I took the initial steps to create a custom theme for a D8 site (basically, copying the stark theme and changing the folder name and the YAML files)

When I went to the /admin/appearance page, I initially had an error due to a syntax issue in the info.yml file (an accidental extra quote mark in the description). I fixed that and the theme showed up on the Appearance page. However, when I tried to enable the theme, I received a message that the theme {themename} could not be found.

Once I manually cleared all the caches, I could enable the theme as normal.

(As an additional note, my theme name initially had a hyphen, but I couldnt see it in the /admin/appearance page until I removed the hyphen)

CommentFileSizeAuthor
#2 theme_system-2041313-2.patch720 bytesvineet.osscube

Comments

vineet.osscube’s picture

Assigned: Unassigned » vineet.osscube
vineet.osscube’s picture

Status: Active » Needs review
StatusFileSize
new720 bytes

I have fixed this issue. I am attaching a patch for the same.

marcingy’s picture

Status: Needs review » Reviewed & tested by the community

Makes sense

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Think I've ran into this myself... thanks for the fix!

Committed 230432a and pushed to 8.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Jeff Burnz’s picture

Status: Closed (fixed) » Active

This does appear to be a complete fix this for this issue - if you hit "Enable and set as default" you can still get the not found error. I thought this might be a caching issue because if you immediately try again it works.

marcingy’s picture

Status: Active » Closed (fixed)
Jeff Burnz’s picture

Thanks marcingy.