Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The theme directory "twentytwentyfour" does not exist. #232

Closed
flexseth opened this issue Apr 13, 2024 · 2 comments
Closed

The theme directory "twentytwentyfour" does not exist. #232

flexseth opened this issue Apr 13, 2024 · 2 comments

Comments

@flexseth
Copy link

flexseth commented Apr 13, 2024

Error when booting in wp-content mode without a theme in the folder.

The theme directory "twentytwentyfour" does not exist.
Error: The themes directory is either empty or does not exist. Please check your installation.

Why is this a problem

A theme is necessary to run any WordPress website. Let's make sure one is available.

Suggested fix

If no theme is in the wp-content/themes folder, install Twenty Twenty-Four

Step to install Twenty Twenty-Four (doesn't work but seems like it should)

{
	"step": "installTheme",
            "themeZipFile": {
                "resource": "wordpress.org/themes",
                "slug": "twentytwentyfour"
            },
            "options": {
                "activate": true
            }	
}

source: https://wordpress.github.io/wordpress-playground/blueprints-api/steps#InstallThemeStep**

Error code on attempted theme install - partially redacted

Starting the server......
directory:........./playground-docs-workflow/wp-content
mode: wp-content
php: 8.0
wp: 6.5.2
WordPress 6.5.2 folder already exists. Skipping download.
SQLite folder already exists. Skipping download.
blueprint steps: 3
Blueprint step completed: unzip
Blueprint step completed: activatePlugin
Error: Could not move /var/www/html/wp-content/ieU!7ZbrcT$JApjm3Z/5Z,wbT@NiKARm7ucg/assets/Twentytwentyfour/twentytwentyfour to /var/www/html/wp-content/themes/twentytwentyfour: There is no such file or directory OR the parent directory does not exist.

Affects

  • VS Code Extension booted in wp-content mode
  • wp-now when booted in wp-content mode

How to re-create the issue

blueprint.json

{
	"$schema": "https://playground.wordpress.net/blueprint-schema.json",
	"landingPage": "/wp-admin/edit.php?post_type=doc_page",
	"preferredVersions": {
		"wp": "6.4",
		"php": "7.4"
	},
	"features": { "networking": true },	
	"login": true,
	"steps": [
		{
			"step": "unzip",
			"zipFile": {
				"resource": "url",
				"url": "https://github-proxy.com/partial/adamziel/playground-docs-workflow/wp-content"
			},
			"extractToPath": "/wordpress"
		},
		{
			"step": "activatePlugin",
			"pluginPath": "wp-docs-plugin/plugin.php"
		},
		{
			"step": "installTheme",
            "themeZipFile": {
                "resource": "wordpress.org/themes",
                "slug": "twentytwentyfour"
            },
            "options": {
                "activate": true
            }	
		}
	]
}

I double checked the syntax on the blueprint with the {} and it's correct

networking is enabled - but possibly the culprit?

@flexseth
Copy link
Author

Looks like it may be a URL or "resource type" issue

Screenshot 2024-04-12 at 9 56 43 PM Screenshot 2024-04-12 at 9 55 36 PM

@sejas
Copy link
Collaborator

sejas commented Apr 13, 2024

@sejas sejas closed this as completed Apr 13, 2024
@adamziel adamziel closed this as not planned Won't fix, can't repro, duplicate, stale Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants