Deployed my Sage 9 theme up to Fortrabbit. I’m unable to activate the theme in the admin because WP thinks the theme is incomplete for missing index.php and style.css.
I ran yarn build:production on my local machine.
I ran composer install on Fortrabbit
Verified that my theme got moved over to Fortrabbit (all files and directories in the stock Sage 9 except node_modules)
Verified same Composer version on Fortrabbit and local machine.
I get this error:
Error: Template is missing. Standalone themes need to have a index.php template file. Child themes need to have a Template header in the style.css stylesheet.
wp theme list returns:
±--------------±-------±-------±--------+
| name | status | update | version |
±--------------±-------±-------±--------+
| twentyfifteen | active | none | 2.0 |
±--------------±-------±-------±--------+
Looking at the Fortrabbit database, in the options table, the theme_roots transient shows my [theme-name]/resources. Not sure if that’s helpful.
Do you happen to be using Bedrock as well? If so, maybe share the output of wp theme path to confirm that the correct themes directory is being used (or in the options table, stylesheet_root or template_root).
Is the Twenty Fifteen theme adjacent to your Sage theme?
I have resolved the issue. Of course it was something silly. I went through and verified that all of the files inside /resources/ were there and sure enough index.php was missing. once I put it up there my theme was recognized by WP. Thank you for your help @knowler