Forums

[resolved] images uploading but not showing on site (13 posts)

  1. mountainjez
    Member
    Posted 4 years ago #

    History:
    Changed server, then images would not upload but solved this problem by changing the permission of the '12' december folder to '777'.

    Current Problem:
    Now when I write a post, and upload the image and then save, the post is shown on the site, but the image does not even though it is uploaded to the images folder

  2. Otto
    Tech Ninja
    Posted 4 years ago #

    How about posting a link so we can see the problem for ourselves?

  3. Michael Fields
    Theme Wrangler
    Posted 4 years ago #

    mountainjez,

    Hi. me again! Are you using a custom permalink structure? I recently ran into a problem where the permalink records were not being immediately updated in the database. I fixed this issue by logging into the admin, navigating to Options -> Permalinks and clicking Update Permalink Structure.

    This makes little sense to me - but it worked.

    Hope this helps,
    -Mike

  4. mountainjez
    Member
    Posted 4 years ago #

    Mike, thanks for the idea, but it didn't work :(

    this is the site: http://livinginpatagonia.com/

    'webmaster test post', and uploaded the image along with the post, which is located here: http://livinginpatagonia.com/wp-content/uploads/2007/12/galagrey.jpg

    but it doesnt show on the post ???

  5. Michael Fields
    Theme Wrangler
    Posted 4 years ago #

    Did you send it to the editor?
    When I viewed the page source, I didn't see any img tags in your post body for the admin post.

    Please refer to this page for complete instructions: http://codex.wordpress.org/Using_Image_and_File_Attachments

  6. Otto
    Tech Ninja
    Posted 4 years ago #

    Yes, your post doesn't have the photo in it.

    Uploading the photo uploads it to the site. But then when you're working with the post, you still need to insert the photo into it where you want it to be. The link mfields gave explains how to do that.

  7. mountainjez
    Member
    Posted 4 years ago #

    This problem has only started to occur since changing hosts.

    I have sent it to the editor, but when you press 'save and continue editing' or 'save' it transfers you to the home page and the image has not been included in the post

    I followed the exact instructions as per the link but it does not work. I have been able to upload the images in the past, but not since i changed hosts.

    I even tried to add a link, but it on clicking 'save' it sends you to the home page. So it will save plain text but not add images or hyperlinks.

    this is the code that was in the html view before i clciked 'save':
    webmaster test post with photo
    <img src="http://livinginpatagonia.com/wp-content/uploads/2007/12/galagrey.jpg" height="230" width="307" />

    So my conclusion is that is is striping all html code from the post....

  8. Otto
    Tech Ninja
    Posted 4 years ago #

    When you send it to the editor, does it actually *appear* in the editor as well? I can't see how it can strip the code out, but I can see the editor not getting it properly in the first place.

    Make sure ALL the wordpress files are on the server. Especially the *.js files. Make sure they all have the correct permissions. Look in the browser error console for any javascript errors.

  9. mountainjez
    Member
    Posted 4 years ago #

    Yes, the image actually appears in the editor, and even if I manually type in code it is stipped when i press save, and I'm kicked out to the home page.

    Checked all the .js files, compared to the ones on the original server and the number of files and sizes are all the same.

    Checked the browser error console and no error there.... ???

  10. mountainjez
    Member
    Posted 4 years ago #

    OK, I have just had the blog reinstalled on the server and still it strips the html code when i press 'save' in writing a post...

    HELP...is there anything else I can try ?

  11. Otto
    Tech Ninja
    Posted 4 years ago #

    just had the blog reinstalled

    That wording confuses me, did you use some kind of automated installer service?

    If that didn't work the first time, it's not going to work the second time. And who knows what files it may be missing through an automated installer? Install it yourself:
    http://codex.wordpress.org/Installing_WordPress

    The answer here, BTW, is that no, WordPress does not strip HTML code from your posts. It can change HTML code, but IMG tags should go through untouched. Also, it definitely does not change the tags before saving them to the database, which is what you keep describing.

  12. mountainjez
    Member
    Posted 4 years ago #

    Hi, thanks for the response. I had my new hosting company transfer it from the old server to the new.

    It is still removing any html code when i press 'save' ???

    If i reinstall from scratch, and upload the database again, will i also need to upload all the images ? and will i need to reattach then to each individual post ?

    Is there another possible reason for the removing of the html code? If all files have been directly copied across I cant see what the problem could be ?

  13. mountainjez
    Member
    Posted 4 years ago #

    issue resolved...

    it was a Mod_Security issue on the server that the hosting company has now resolved.

Topic Closed

This topic has been closed to new replies.

About this Topic