[wp-trac] [WordPress Trac] #14401: Unable to locate WordPress Content directory (wp-content).

WordPress Trac wp-trac at lists.automattic.com
Sun Aug 14 01:58:27 UTC 2011


#14401: Unable to locate WordPress Content directory (wp-content).
-----------------------------------------+------------------------------
 Reporter:  pavelevap                    |       Owner:
     Type:  defect (bug)                 |      Status:  reopened
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Upgrade/Install              |     Version:  3.0
 Severity:  normal                       |  Resolution:
 Keywords:  reporter-feedback has-patch  |
-----------------------------------------+------------------------------
Changes (by vericgar):

 * cc: vericgar (added)
 * keywords:  reporter-feedback => reporter-feedback has-patch


Comment:

 I ran into the same issue in 3.2.1.

 The path on my host as visible to PHP is /f5/username/public/wp-content
 The path via FTP is /public/wp-content

 Setting FTP_BASE and FTP_CONTENT_DIR helped, but then it errored out when
 looking for the themes directory. There was no option that I could find to
 override where it was looking for the theme directory.

 I created a fix, that when using find_folder, if FTP_BASE is set, will
 look for ABSPATH in $folder and replace it with FTP_BASE. This fix should
 solve the issues with the paths between FTP and PHP being so different.

 The patch is against 3.2.1.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14401#comment:19>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list