Reoccurring error message when trying to upload to wordpress

Solution:

It seems that you got a permission issue. Because…

  1. The theme is probably fine as that error comes out before installation.
  2. 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:

  1. 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.
  2. 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.