Title: Upload path after update not correctly
Last modified: August 30, 2016

---

# Upload path after update not correctly

 *  Resolved [nurbs65](https://wordpress.org/support/users/nurbs65/)
 * (@nurbs65)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/upload-path-after-update-not-correctly/)
 * After update to version 1.6.1 the images are not visible on the edit page “participants-
   database-edit_participant&action=edit”. I use a subdirectory for my wordpress
   installation. For example: [http://www.myweb.de/xyz/wp-content&#8230](http://www.myweb.de/xyz/wp-content&#8230);
 * I try to configure the upload path in the settings with “xyz/wp-content/uploads/
   participants-database/” and it doesn´t work. Also it is not possible with the
   default value “wp-content/uploads/participants-database/”
 * Could you help me?
 * [https://wordpress.org/plugins/participants-database/](https://wordpress.org/plugins/participants-database/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/upload-path-after-update-not-correctly/#post-6288287)
 * Did you try with the slash at the beginning?
 * The path is from the “WP Root” of your setup, so in other words, you don’t include
   the “xyz” because that is your WP root…the setting path starts from there, so
   the correct setting should be:
 * `/wp-content/uploads/participants-database`
 *  Thread Starter [nurbs65](https://wordpress.org/support/users/nurbs65/)
 * (@nurbs65)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/upload-path-after-update-not-correctly/#post-6288355)
 * Thank you for your fast answer.
    I try it with “/” at the begining and the result
   ist the same. The image will not displayed.
 * If I examine the page code i get the path:
    [http://www.myweb.de/wp-content/uploads/participants-database/xyz.jpg](http://www.myweb.de/wp-content/uploads/participants-database/xyz.jpg)
   but the upload path must be: [http://www.myweb.de/xyz/wp-content/uploads/participants-database/xyz.jpg](http://www.myweb.de/xyz/wp-content/uploads/participants-database/xyz.jpg)
 * In my WordPress configuration I defined [http://www.myweb.de/xyz](http://www.myweb.de/xyz)
   as WP Root and only [http://www.myweb.de](http://www.myweb.de) as website address.
 * Perhaps it is, you use the website address instead of the WordPress address?
 * Maybe anyone can confirm my request?
 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/upload-path-after-update-not-correctly/#post-6288358)
 * You’re right, I used the wrong function…here’s the fix:
 * In the file PDb_Base.class.php on line 682, find:
 * `return trailingslashit(home_url(Participants_Db::files_location()));`
 * This needs to be changed to:
 * `return trailingslashit(site_url(Participants_Db::files_location()));`
 * the 1.6.2 update has been updated with this change.
 *  Thread Starter [nurbs65](https://wordpress.org/support/users/nurbs65/)
 * (@nurbs65)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/upload-path-after-update-not-correctly/#post-6288362)
 * It works!
 * Thank you for your fast support. I am happy.
 * Best wishes from Frankfurt in Germany.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Upload path after update not correctly’ is closed to new replies.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

## Tags

 * [subdirectory](https://wordpress.org/support/topic-tag/subdirectory/)
 * [Upload Path](https://wordpress.org/support/topic-tag/upload-path/)

 * 4 replies
 * 2 participants
 * Last reply from: [nurbs65](https://wordpress.org/support/users/nurbs65/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/upload-path-after-update-not-correctly/#post-6288362)
 * Status: resolved