• I’ve set up a new site for a friend and when it uploads the file it uploads to wp-admin/(whatever I have listed in settings-misc).

    For example:
    I left the default upload directory of wp-content/uploads.
    When I upload the picture or file it doesn’t show the picture but the file uploaded fine.
    Then, when I go in with my FTP client to find where it is, I find the file stored in wp-admin/wp-content/uploads. However, the link in the media library shows it thinks the image or file is in the wp-content/uploads.

    Any idea what/how to fix this? I haven’t been able to find this in any of the other forum comments & questions.

    Thanks.

Viewing 5 replies - 16 through 20 (of 20 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Oh, and a fix/workaround suggests itself now. Instead of using just wp-content/uploads on the Settings->Misc screen, use the full path I just gave you:
    /data/14/1/151/125/1314940/user/1408449/htdocs/wp-content/uploads

    Remove the URL fix you made at the same time.

    The result is:

    PATH: 14

    does the wp-content/uploads directory actually exist?

    Yes, the directory exists.

    triple check that the wp-includes/functions.php file is the correct version

    I downloaded the latest version of WordPress and compared that functions.php to mine. They were identical, but I replaced it with the fresh version.

    use the full path I just gave you:
    /data/14/1/151/125/1314940/user/1408449/htdocs/wp-content/uploads

    I replaced “wp-content/uploads” with “/data/14/1/151/125/1314940/user/1408449/htdocs/wp-content/uploads”, and removed “https://www.MYDOMAIN.com/wp-admin/wp-content/uploads” from my full path and left that field blank.

    But when I save the changes, it reverts “/data/14/1/151/125/1314940/user/1408449/htdocs/wp-content/uploads” back to “wp-content/uploads”. I tried that a couple of times, but it wouldn’t take.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    The result is:
    PATH: 14

    Well, I don’t understand why it gives you the wrong answers, but that is indeed your problem, in the path_join function.

    I’ll bring it to the attention of trac, see what they make of it.
    https://trac.www.ads-software.com/ticket/5953

    Thanks for your assistance Otto, it’s much appreciated!

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘uploaded media going to different directory than listed in settings-misc’ is closed to new replies.