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

Failed to update the theme, always prompt :The directory structure of the update is incorrect. All files should be inside a directory named unique-plugin-or-theme-slug, not at the root of the ZIP archive. #482

Closed
muchenkezhan opened this issue Mar 1, 2022 · 2 comments

Comments

@muchenkezhan
Copy link

The directory structure of the update is incorrect. All files should be inside a directory named unique-plugin-or-theme-slug, not at the root of the ZIP archive.

I can't understand ,json Here's the file :
{ "version": "4.8", "details_url": "https://xxx.cn/zhuti/51.html", "download_url": "http://www.xxx.cn/wp-content/themes/qzdy-4.8.zip" }

Is the download path name wrong

@muchenkezhan
Copy link
Author

@YahnisElsts
Copy link
Owner

This error has to do with the contents of the ZIP file. When you make the ZIP file, all of the theme files should be in a directory that has the same name as the theme slug. So when you open the ZIP file, you should only see one directory, and all of the theme files/directories should be inside that directory.

Some ZIP software can make it look like the contents of a ZIP archive are inside a directory when they are actually not. For example, I've received multiple reports from people who use macOS that it shows ZIP archives like that. If you're on a Mac, I would recommend trying a third-party ZIP tool.

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

2 participants