Solution:
It seems that you got a permission issue. Because…
- The theme is probably fine as that error comes out before installation.
- As image files are also facing problem, so it is most likely permission issue.
You didn’t specified your system, so I can generally conclude that, altering your root directory permission will work.
The codex has details onĀ changing permission of folder and files.
2 piece of advice as I faced these problems earlier:
- Make sure to apply appropriate permissions to sub directories also.e.g. Sometimes one changes root permission only, but tries to upload stuff to /wp-content inside root with a different permission, and throws an error like you’re getting.
- If it is your localhost installation, then change the root and everything under it to permission 777. Otherwise be cautious as using 777 permission on a live website will make it vulnerable to attacks.