WordPress.org

Ready to get started?Download WordPress

Forums

Where is my content stored? (12 posts)

  1. cphine
    Member
    Posted 7 years ago #

    I am new to WordPress, but not totally internet stupid. :-)

    I am attempting to determine where my content is actually located on the server and end up perplexed.

    An example URL for a post of mine is:
    http://mywebsite.com/str/2007/07/04/ok-another-test/
    "str" is the folder that WordPress is installed in. There isn't, however, a 2007 folder in that directory.

    I've read elsewhere that content goes into the "wp-content/uploads" folder by date structure, but I also don't have a "wp-content/uploads" folder...only "plugins" and "themes" at "wp-content/*".

    So, everything appears to be working, I just can't find anything on the backend!
    Comments would be appreciated greatly.
    Cheers.

  2. gfindlay
    Member
    Posted 7 years ago #

    Its all "virtual". WordPress will show the content based on the link by sucking it out of the database. It doesn't actually exist as a physical file in a directory.

    All your link does is tells WP to get the content for post "ok-another-test" that was posted on 4th July 2007, from the database.

    And the wp-content/uploads folder is where any files loaded into a post would go (using the file upload box in the post write screen). I can't remember if WP creates it first time, or if you have to. Try an upload and see.

    That make sense at all?

  3. cphine
    Member
    Posted 7 years ago #

    Thanks gfindlay, that helped, but led to another question!

    The "virtual" description works for me. I'm used to "physical" or "object" structures and not just database entries, but I understand.

    Using the "file upload box" helped fix one problem I didn't realize I had. I had a picture in a post, and it would show up on the "home" page, but when I clicked into the post to leave a comment, the image was gone. (just the box and an X...the link has spontaneously changed to a non-existant file).
    I tried another post, and used the upload box, and now the image appears in both places, which is good. It even tells me now that the file is located in "wp-content/uploads/2007/07/logo.jpg".
    So it works.
    But I still don't have a wp-content/uploads folder!
    This is weird. Any ideas?
    Thanks again.

  4. whooami
    Member
    Posted 7 years ago #

    I tried another post, and used the upload box, and now the image appears in both places, which is good. It even tells me now that the file is located in "wp-content/uploads/2007/07/logo.jpg".
    So it works.
    But I still don't have a wp-content/uploads folder!

    you arent particularly clear here, but if you have an image being displayed correctly that you uploaded via the upload file box, and it shows that path to the image, you do, in fact, have such a directory.

    It would be the equivalent of the immaculate conception to have those two conditions met and not be so (given the information you have provided).

    If you want to continue this sort of topic, too, for me atleast, a link to your wordpress install would be very helpful.

  5. gfindlay
    Member
    Posted 7 years ago #

    So, in the same place you have your "plugins" and "themes" directory, there's no "uploads"? Odd.

    Only thing I can think of is when it was created, the server (Unix?) access rights exclude your userid from seeing it - the id you'd use to ftp with, not your WP id.

    Beyond that thought, if that's not the case, I'm stumped. Maybe one of the guru-dudes on here can enlighten?

  6. whooami
    Member
    Posted 7 years ago #

    Only thing I can think of is when it was created, the server (Unix?) access rights exclude your userid from seeing it - the id you'd use to ftp with, not your WP id.

    Thats preposterous (to a degree), and not likely. Like I said ... (scroll up)
    :)

  7. gfindlay
    Member
    Posted 7 years ago #

    Preposterous, perhaps. Not likely? Possibly, but I've seen weirder crap happen by accident - and just watch all the "immaculate" conceptions touted on Jerry Springer - "No honey, I didn't cheat on you" even though she and the "father" are white Americans and is giving birth to a Chinese baby.

    All things are possible in an infinite universe, or where humans are involved ;)

  8. whooami
    Member
    Posted 7 years ago #

    my pc isnt a human, thats the point.

  9. gfindlay
    Member
    Posted 7 years ago #

    True, but what's on it and in it was created by humans (or a close semblance of same) so there's always room for human error.

  10. whooami
    Member
    Posted 7 years ago #

    OK, you want to suggest that some NIX filesystem decided to umask a file to 055 or 044. Feel free.

    I'm going to go watch the purple piggys and Mary Poppins float by my bedroom window ...

  11. cphine
    Member
    Posted 7 years ago #

    Now, now people. No infighting while helping me. :-)
    gfindlay:
    I went to school in Swansea, Wales. My biggest embarrasement while there was that most peoples experience with American television and culture was the Jerry Springer show. PLEASE I beg you, do not assume that nonsense on the rest of us!
    Both:
    I think the problem has taken care of itself. Since my last post I have come home from work, and now the wp-content/uploads folder does exist with the one image in it that I put there.
    Good to learn that pictures added to a post need to go through the "upload box" in order to be consistant. Simply linking in the post with the "picture button" apparently doesn't work.

    This is the second time something weird has happened tonight. I changed the permalink structure to something more "pretty" and all the links to pages stopped working. Understandably so. Then I suddenly lost all access to the site. No pages, no ftp access, no nothing. I even called my hosting company to make sure they weren't down. They weren't. During the call, suddenly everything came back up, and the pages that weren't working suddenly were with the new "pretty" addresses. I guess WordPress shut down in order to "reorder" my posts? Creepy. But it works, so no harm done.
    Damn I'm long winded....

    Thanks for the help guys... (well, guy and gal...) :-)
    ~Christian

  12. whooami
    Member
    Posted 7 years ago #

    I guess WordPress shut down in order to "reorder" my posts?

    No. Thats another immaculate conception scenario. "Loosing" a site as you described could be caused by any number of things. The connection you take to get from your Point A to where your blog is (Point B) is constructed of a lot of hops.

    One hop going down causes what can only be described as a detour to be taken. Couple hops go down == more or longer detours.

    The interent is rife with network glitches, hosts do go down, and some dont like to admit it.

    "we arent down" doesn't man they didnt just reboot the box. semantically speaking.

    In other words, dont believe the conspiracy theories :) the more practical explanations are typically the right ones. :)

Topic Closed

This topic has been closed to new replies.

About this Topic