While building any site on WordPress or any other platform, the chances of running into an error is most likey. 100/100 will come across some kind of error while the development process.
Thankfully, many errors are common and the community has already given solution to the most of the errors.
Today, I am trying to contribute the solution to one common error which we may see in WordPress websites.
INCONSISTENT FILE PERMISSION
Sometimes, if you are trying to update a THEME or a PLUGIN or the WordPress core files via WordPress dashboard you might run into this error. This is mainly due to incorrect permissions across WordPress directories and files.
SOLUTION FOR THIS
chown admin -R*
Using the above command you will be able to solve the forementioned error instantly.
- Login to your SSH server using Putty or any other application of your choice
- Go to the root directory. Eg – public_html or html or var/www
- Once you are in the root directory run the following command –
- chown admin -R*
Refresh your website and try to update your plugin or theme.