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.

link|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
feedback

2 Answers

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.

link|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
feedback

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

link|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
feedback

Your Answer

 
or
required, but never shown

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