Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a site that has been dropped on my lap and it currently has some WordPress issues. The site can longer auto update, and complains about paths when I try to update a plugin:

Unable to locate WordPress Content directory (wp-content)

I can only assume that the credentials to log in are correct, and that it cannot find the wp-content directory as expected.

I am not a word press users/admin - although if WP is worthy of the stackexchange treatment, I may have to get to know it better!

I'm trying to figure out where I need to amend the paths in the database, because the site has just been moved from one server to another.

share|improve this question
wp-content does exist as well as the index.php inside it - darn! – Mister IT Guru Dec 7 '11 at 15:46

closed as not a real question by toscho Jul 27 '12 at 22:32

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.

2 Answers

Check if you have some ABSPATH or WP_TEMP_DIR or anything like that in the wp-config.php file.

share|improve this answer
Neither of their variables are set at the moment, although I did see this, if ( !defined('ABSPATH') ) define('ABSPATH', dirname(FILE) - my basic code reading skills says that means, if this isn't set, then make the it current directory of the file that's running me - can i look elsewhere to find these variables? – Mister IT Guru Dec 8 '11 at 11:14

Use FileZilla and check if the folder wp-content exists in your site's WordPress installation. If it does, then open it up and look for index.php. If either of these are missing, then download a fresh copy of WordPress, unzip it to your local machine, and manually upload the folder wp-content from this new download to your site's root via FileZilla. This folder should be at the same level as the folders wp-admin, wp-includes etc.

share|improve this answer
My good friend - Thank you for this answer, I will test it out and see how far i get. I have console access to the server in question, I will connect and make the changes now. Thanks – Mister IT Guru Dec 7 '11 at 15:41
The folder wp-content exists, and it is at the same level as wp-admin, wp-includes and the rest but these folders rest in a subdirectory off the main site called /blog - What permissions does WP need to have for it to function properly as a site, because from what I can see the user has set it to 0755 - which I think is right. – Mister IT Guru Dec 7 '11 at 15:45
Did you check if the index.php file is present inside the wp-content folder? Check this post. It has a step by step solution on solving this problem: firdouss.com/2009/10/… – Rutwick Gangurde Dec 7 '11 at 15:59
index.php is present in the folder - Sorry, I thought I mentioned it. – Mister IT Guru Dec 7 '11 at 16:06
No problem! Please check the post I've mentioned in my previous comment. – Rutwick Gangurde Dec 7 '11 at 17:12

Not the answer you're looking for? Browse other questions tagged or ask your own question.