piątek, 7 stycznia 2011

Upgrade Wordpress - Unable to locate WordPress Root directory

On some servers when you are trying to upgrade  Wordpress using "Upgrade Automatically" option (via ftp) you might be notified with following message:

Upgrade WordPress

Unable to locate WordPress Root directory.
Installation Failed

The reason for this is that the ftp client is not allowed to access the path defined as absolute path (ABSPATH) in wordpress configuration.


 

Your real path is like: /home/your_login/your_site/public_html but ftp client can not access it because it is setup to serve your files via: /some_other_dir/public_html/ and does not have right to access  /home/your_login/your_site/public_html which really points to /some_other_dir/public_html .

To overcome this you need to do manual installation of your wordpress by following instruction which can be found here:

http://codex.wordpress.org/Updating_WordPress

Another solution is to use  hack for search_for_files() function. The solution is described here:
http://wordpress-hints.blogspot.com/2011/01/on-some-servers-when-you-are-trying-to.html#more

Brak komentarzy:

Prześlij komentarz