WordPress.org

Ready to get started?Download WordPress

Forums

[closed] Permalinks broken and images not showing with Network install (29 posts)

  1. Richard
    Member
    Posted 3 years ago #

    I have a domain that was running 3.05 fine. Links and images were working. Blog seems normal and healthy.

    As background, the site is on Windows IIS 6.0.
    one evening, I started to enable Network, specifically, enabling the sub-directory model.

    I came back a few days later, finding that it did not appear to be enabled, so at that time I enabled sub-domains.

    I imported a "wordpress.com" site and everything looked fine, except there were no post images and links were broken.
    Primary domain still had no problems.

    Today, after applying the latest updates, i returned to the sub-domain to see what was wrong.

    In the Network admin I noticed that I had a sub-domain site and a sub-directory site of the "sub.domain.com" and "domain.com/sub/"

    The sub-domain site is working, but links required that I put "/index.asp?/"
    between "sub.domain.com/" and the "/postname/". Images also do not work on that site.

    On the parent site "domain.com" the links were not working as well. Both were originally setup to use permalinks in the custom format of "/%category%/%postname%/".

    I just changed both back to default and the links work in both, but the images do not in "sub.domain.com"

    Does this spark any ideas?

  2. Richard
    Member
    Posted 3 years ago #

    UPDATE!!!!

    Changed all permalinks to back to default, then changed them to "custom" with value of "/index.php/%year%/%category%/%postname%/."

    So now, all links are working. Not sure what happened.

    The only issue is sub.domain images are not working in the rendered site and are not in the gallery, but have placeholder images where they should be.

  3. Placeholder images? Like what?

    Or do you mean the box with the red X? (cuz that's different)

  4. Richard
    Member
    Posted 3 years ago #

    Hi Andrea,

    By "placeholder images" I meant to say "thumbnails." In the media management (said gallery) section (Media Library) of the admin panel and also in the "add image" modal window when editing a post the images all have a placeholder (image not found) where the image should be.

    On domain.com, everything is working fine, it is at sub.domain.com that the images are not rendering in the "Media Library, in "Posts, in the Post editor and in the modal dialogue box, where you adjust the image. Strangely, in the modal dialogue box for "Add "image", while the image does not show, when you click edit image, it appears.

    I have checked the file system and the images are there. It seems to be a path confusion issue somewhere in a rewrite or other place.

    Here is a sample path that the image thumbnail gives as the url, although it is not there.
    http://sub.domain.com/files/2011/02/00437635-150x150.png

  5. A live link would help.

    The images are controlled by htaccess. On some servers, everything seems to work fine *except* that one line.

  6. Richard
    Member
    Posted 3 years ago #

    If you really need to see the live site, I can give it, but I try to keep them out of forums because of spam attacks that have come after posting them.

    Regarding htaccess, are there document exceptions that are alternates for the network setup generated htaccess code?

  7. There's only two kinds of htaccess files for networks. A subdomain setup and a subfolder setup.

    There are no alternates. the image rewrites happens the same way.

    http://codex.wordpress.org/Create_A_Network#.htaccess_and_Mod_Rewrite

  8. Richard
    Member
    Posted 3 years ago #

    I have mine in the sub-domain format that is generated by WordPress at setup of networks.
    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
    # END WordPress

  9. Changed all permalinks to back to default, then changed them to "custom" with value of "/index.php/%year%/%category%/%postname%/."

    I think the fact that you need to do THIS is why, actually, the images aren't showing. It's not reading the parse right.

    WAG (wild a**ed guess), does http://sub.domain.com/index.php/files/2011/02/00437635-150x150.png work?

    If not, since you're on IIS, maybe try this plugin: http://wordpress.org/extend/plugins/permalink-fix-disable-canonical-redirects-pack/

    We know there are some weird things with IIS and permalinks right now.

  10. Richard
    Member
    Posted 3 years ago #

    Hi Ipstenu,
    The sub.domain works, except for the images.

    Are the IIS issues released to he 3.1 release?

  11. What I meant was the inclusion of index.php in your permalinks is a sign of the whacky. If you were using *nix, I would say your httpd.conf is messed up and isn't parsing mod_rewrite correctly.

    And I'm not sure if there are IIS issues, or if it's something more specific, but I DO know that people report that plugin fixes some weird linking issues, and I wonder if it's related.

  12. @Richard - what kind of server are you on?

  13. Richard
    Member
    Posted 3 years ago #

    My server details are:

    Windows 2003, IIS 6, PHP 5 and Micronovae is the package for Windows that uses the htaccess file for rewrites.
    My permallinks are working. It now is just the images that have some problematic paths, I beleive.

    BTW: This sub.domain site is new enough that I have deleted it, added another new site by the same name and re-imported the wordpress.com content. Unusually, the network admin console still showed two sites after I deleted one of them. I am going to the box physically and deleted the blogs.dir and re-add it to make sure that problem is worked through.

  14. Richard
    Member
    Posted 3 years ago #

    OH, and to Ipstenu's comment, I am not using any plugins for rewrite...

  15. Windows 2003, IIS 6, PHP 5 and Micronovae is the package for Windows that uses the htaccess file for rewrites.

    Yeah, Windows. I'm out. :)

    I do know it's easier on IIS 7. I have no idea what Micronovae is, but I do know people had to tweak their web.config file.

  16. Richard
    Member
    Posted 3 years ago #

    Ipstenu: No I didn't try it.

    Andrea: Micronovae is a windows server application that allows the windows server to behave like apache in relation to htaccess, therefore I believe I do not need a web.config file.

    Andrea, I understand that you for good and respectful reasons duck out when windows is involved, but separating that out...
    ...can either of you posit ideas as to what would allow the images to be on the box in a folder, but the mapping is not right for the sub domain only?

    Any ideas about mapping would be appreciated.

  17. Richard, please do try it. 3.1 MIGHT have some wackiness with URLs in IIS, and many other people have had peculiar errors, similar to yours, solved by that plugin.

    I know it sounds dumb, but if you can give it a shot, it may help.

    can either of you posit ideas as to what would allow the images to be on the box in a folder, but the mapping is not right for the sub domain only?

    If you were on Linux I'd say "Your .htaccess isn't being read correctly." and tell you to look at allow overrides, and other httpd.conf settings. The problem is I have no clues for how that translates to IIS6 :/

  18. Richard
    Member
    Posted 3 years ago #

    I tried it, but no help.

    I have uninstalled network, using the common methods described in the uninstall instructions, including the removing of a series of tables and deleting my blogs.dir and starting over.

    The new installation does it again with the links. I didn't even get to the images issue.

    I even tried another' Windows method using the web.config, and that one didn't work.

    I am going back to beginning tonight and strip all things our again and see. I think there is something with the rewrites that is not right. The need for /index.php/ to work is something of a hint.

  19. Yeah, it's something where your permalinks aren't being handled right. I wish I had the first clue about WHERE to look on IIS :(

  20. ...can either of you posit ideas as to what would allow the images to be on the box in a folder, but the mapping is not right for the sub domain only?

    on Apache, htaccess. Always. The rewrite rule is right, so outside of that, the server not reading the file.

    If I had any experience with Windows servers, I'd be able to help ya out. :-/

    I only know one guy, maybe I can haul him in here.

  21. Frumph
    Member
    Posted 3 years ago #

    He should consult Micronovae documentation on this. It's a specific scenario with the .htaccess filter.

  22. JohnRazmus
    Member
    Posted 3 years ago #

    I have the same issue - my networked subdomains are working, but the images are broken.

    I really, really need a solution to this, so please do help! I run my network on a VPS, CentOS, latest version of everything, full access to all files.

    Here is a link to an image not working: http://cat-genie.org/files/2011/02/cat-genie-e1298048555224.jpg

    Here is the contents of my .htaccess:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
    # END WordPress

    Please send any recommendations and I'll try em out & respond asap.

  23. JohnRazmus - That's not a 404 on the images (which is what the others are getting. That's a blank page, which is a PHP issue usually.

    http://cat-genie.org/wp-content/blogs.dir/1/files/2011/02/cat-genie-e1298048555224.jpg is a 404 you see.

    Please make a new topic, but BEFORE that, try a manual re-upgrade.

  24. barabbas
    Member
    Posted 3 years ago #

    Same here, I've been having problem with Multi Site attached image in my sub.domain.

    attached image from my Primary site works perfectly fine.

    sub.domain Post and page permalinks works fine. For the attached images, nothing at all. It doesn't show any thumbnail, med and large image from the post and even in media page. :(

    I've tried the plugin bellow and still not working.
    http://wordpress.org/extend/plugins/permalink-fix-disable-canonical-redirects-pack/

    I also tried all .htaccess mod_rewrite and still not working.

  25. barabbas, if you're NOT using IIS, make a new topic, please.

  26. rathish
    Member
    Posted 3 years ago #

    I had migrated my blog to a new hosting plan that had unlimited bandwidth. Once I did that, successfully using wordpress backup, my blog appears appropriately. However the images on the site are not appearing. My images were and are still stored in the Uploads folder under WP Content.
    Although the old images are not showing up, If I create a new post and add an image, the image does show up.
    The problem seemed when I actually went to the WordPress edit section and check on image properties,
    seems to be a problem with current link and link to image section.

    for a new post (added after moving hosting service) here are the link settings
    Current link and link to image are the same(under edit image settings) - http://artanology.com/wp-content/uploads/2011/07/IMAGE2BCC20F473F427B3.gif
    which is correct, my image does show up

    for an older post,

    under edit image (in the edit post)
    current link to the image is
    http://artanology.com/blog/installations/silent-evolution-a-barren-patch-of-sand-just-a-few-months-ago-now/attachment/156655_156316774404798_150479558321853_100337_7191656_n/

    and link to the image is
    http://artanology.com/wp-content/uploads/2010/12/156655_156316774404798_150479558321853_100337_7191656_n.jpg

    this is the problem. They are not the same! The image would not show up.

    I tried everything, all blogs forums no ones got a specific answer,

    can someone help, I need to move other blogs and need to know how to fix this please,
    and it would be great if you could tell me why this happens and how to avoid it,

    Appreciate your help
    Thanks

  27. esmi
    Forum Moderator
    Posted 3 years ago #

    Your question has nothing to do with this topic, Please post a new topic

  28. rathish
    Member
    Posted 3 years ago #

    Great, thanks for the help

Topic Closed

This topic has been closed to new replies.

About this Topic