Possibly a newbie question here, but I’m trying to package up a Sage 9 theme to a shared hosting site (no composer install available) – and Wordpress can’t seem to find index.php, functions.php or style.css in the resources folder. I’ve read this thread [Sage 9 folder structure] which says that Wordpress should just find it, but every time I try to upload a .zip or use WP Pusher, Wordpress complains that those files don’t exist, and won’t activate the theme.
In both the .zip and in the repository, the vendor and dist folders are there. Feel like I must be missing something obvious. Any ideas?
@benspants: These aren’t dumb questions at all – if it works for everyone but me, it’s got to be something fundamental like this, and I super appreciate you listing out a bunch of things to check.
Verified that functions.php, styles.css, and index.php are all in fact in the resources folder.
Local dev environment is Laravel Valet
When I try to upload the theme as a .zip, I get The package could not be installed. The theme is missing the style.css stylesheet. Same issue using WP Pusher. When I ssh into the test server (can’t do this on the shared hosting that ultimately I’d like to get the theme on), and git clone the theme into the themes folder, WP will let me activate it, but it’s a White Screen Of Death.
Will try deploying an unmodified version of Sage 9 (good idea!) and disabling plugins later tonight and report back if it worked. Thank you!
It’s an open source project, and all the work on it is by volunteers (no one is paying the core Roots team to do this). If you are dependent on this feature, contributing to the project in the form of a pull request is always welcomed!
I’m actually skipping most of the whole setup used in Root (mea culpa) since I’m interested to have just the theme compiled.
Locally I’m using XAMPP and to deploy I’m using Travis CI and a shared hosting.
I created an article on my website where I explain the passages.
To summarize in few steps:
create an account to Git and Travis CI if you have not
create an FTP user for the project
add the Travis file to make copy the project using LFTP
I’m having a similar issue on a multisite install of WordPress 4.8.2. My latest theme built on Sage 9 errors as a broken theme with style.css and index.php in …/reasources/… and if I move the style.css and index.php into the main theme directory it leaves me with a blank white screen.
Thanks @ben. Just loaded the theme on a fresh install of Trellis and the theme works perfectly. Then deployed to a new Trellis provisioned single site install staging server and I’m left with a blank theme. Trying the theme files move instructions next on the staging server next.
I was able to resolve the issue and get the theme to load. I followed these instructions and discovered a conflict in my build. I was loading “soberwp/controller” via Bedrock’s composer.json and in them Sage 9 theme’s composer.json. After making the sage-installer edits and disabling soberwp/controller from mu-plugins the theme loaded just fine. Thanks again to everyone for posting.