• Sorry, new to this stuff. Trying to insert an image but only get the . At a loss.
    Could someone offer a hand?
    Thnkx
    JP

Viewing 15 replies - 1 through 15 (of 17 total)
  • Thread Starter jpierre

    (@jpierre)

    sorry, … can only get the alt
    JP

    you cant post an image on this forum.

    Thread Starter jpierre

    (@jpierre)

    sorry again, I’m not speaking about this forum but about a newly installed blog that I’m trying to turn into some sort of a gallery…
    ?
    JP

    URI?
    i can easily upload and show images on my blog!

    Thread Starter jpierre

    (@jpierre)

    Pehaps I should have been more precise: I have created a folder named “images” in the main directory (i.e. /public_html/galerie/images) in which I upload my images. Then I “add the code” to the post and publish it. But when I click “view site” I only get the alternate text for a missing image, as though WP could’nt find it.
    Am I missing something here?
    Thanks,
    JP

    Make sure that the ref to the image is either a full path (including the full addr of the site… like so: https://www.mysite.com/images/myimage.gif) OR… is relative to the ROOT of the site, like so: /images/myimage.gif
    I’m guessing you are using the mod-rewrite premalink structure (index.php/year/month/day/postname)… if you don’t tell it to start that the root, it’ll try to find the image relative to that (index.php/year/month/day/postname/images/myimage.gif) which won’t exist, and is why you get the alt text.
    I had that problem when I first started using the permalink stuff…
    TG

    Thread Starter jpierre

    (@jpierre)

    …hmm… not sure I understand this mod_rewrite thing. Thanks, anyway. ??
    JP

    JP, make sure you have CHMODed your images folder to either 755, 766 or 777. To post an image in your blog, just upload it and then use the <img src=” code . ??

    if u are user rewrite rules.
    that means u are using a custom made htaccess file, u will have to use hardcoded absolute urls ??

    Thread Starter jpierre

    (@jpierre)

    well, now it’s worsening. I can no longer upload. Even though WP says that the upload has succeeded, the file is not in the folder (images), nor anywhere else. The folder itself is 766. Also, after the upload what WP gives me to paste is this path: <img src=”https://galerie.carnetsdetoile.ca//images/filename.jpg&#8221; alt=”” />
    Does that sound right?
    Guess I have a lot of homeworks to do…
    JP

    //images/filename.jpg
    double / might be a problem…

    Like Sushubh said, the double slash might be your problem. However, I posted a couple of days ago with a problem setting the chmod to 766, as it says on the options instructions. I found that if I set it to 777 it worked fine. Hope this helps.

    While specifying the upload folder, try using the entire path to the folder…
    like
    /user/ 3245/public_html/wp/images/
    instead of /public_html/wp/images/

    i find relative urls more easier to specify. no absolute folder worked for me.

    OK. Just to close this thread: problem fixed, so I thank all of you who contributed. So far, the problem was, as some of you suggested: a) double bar in the path to the image (no idea where it came from); b) it really seems to need chmodying the images folder to 777.
    Still doing my homeworks and hope that I will be able in turn to contribute with some help.
    JP ??

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘image not appearing’ is closed to new replies.