Forums

404 errors after switching servers (57 posts)

  1. sentientprod
    Member
    Posted 3 months ago #

    I switched servers from Servage.net to iPage.com and now under my multisite, I have some 404 errors. The only errors lead to these paths

    http://sentient.mmgtv.org/files/2011/"MONTH"

    The "MONTH" is just there to show you any month is messed up. 2011 is the only year I started this site. Permalinks are working fine I think, what else could be giving me this 404 after switching servers??

  2. dgilmour
    Member
    Posted 3 months ago #

    When you switched servers, you needed to copy over all your uploaded files such as images. This URL structure, with "files" in it, is the URL for an uploaded file. (Physically in /wp-content/blogs.dir/...) I suggest checking they've been copied correctly, and that file protections are correctly set.

  3. sentientprod
    Member
    Posted 3 months ago #

    Well I just changed the file permissions for blog.dir to 777. Even if I upload a picture by inserting media on a post, the picture does not appear. It is in the folder, but it is not showing up at all in the post...

  4. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 3 months ago #

    What;s in your .htaccess file?

    And are you using subdomain multisite or subfolder?

  5. sentientprod
    Member
    Posted 3 months ago #

    I'm using subdomain and this is what's in my htaccess:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
  6. tribalNerd
    Member
    Posted 3 months ago #

    Hello sentientprod,

    It looks like you'll need to update your .htaccess file, if you're using multisite at least.

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

  7. sentientprod
    Member
    Posted 3 months ago #

    That seemed to work but if I put up a new post, no matter what theme I use, the pictures will not load and display.

  8. sentientprod
    Member
    Posted 3 months ago #

    I added this
    RewriteRule ^([_0-9a-zA-Z-]+/)?siteN/files/(.+) wp-content/blogs.dir/N/files/$2 [L]
    to my .htaccess but it's still not working.

    When I view the image for example it will bring me here:
    http://sentient.mmgtv.org/wp-content/themes/gfxmedia/timthumb.php?src=http://sentient.mmgtv.org/files/2012/02/OriginalSinPoster.png

    And I get a 400 error saying file not found /files/2012/02/OriginalSinPoster.png
    Bad Request

    Your browser sent a request that this server could not understand.

  9. leon4u
    Member
    Posted 3 months ago #

    Sadly, I have the same question.
    althouth, my problem not goes with changing server, but VPS.

  10. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 3 months ago #

    sentientprod - Please re-read the examples.

    There's more than JUST adding that line. You need to replace the WHOLE THING with the new code.

    leon4u - Probably not the same thing actually. If your .htaccess is correct (which sentientprod is not) then check that allowoverride is set to ALL on the httpd.conf for your VPS.

  11. sentientprod
    Member
    Posted 3 months ago #

    I did add more than just one line...

    This is 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]
    </IfModule>
    # END WordPress
    
    php_value memory_limit 128M

    My host seemed to be a jerk to me and they say that allowoverride is enabled but he didn't seem to know what that was so I will call again.

  12. sentientprod
    Member
    Posted 3 months ago #

    Wow I called again and they have no idea what the httpd.conf file is or what AllowOverride is...

  13. sentientprod
    Member
    Posted 3 months ago #

    So it seems that my permalink settings won't save on the subdomain... So it might be a permalink setting error. The images that won't load are only UPLOADED images. The images work when I view them, but the website is not reading them correctly. I am getting a 400 error instead...

  14. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 3 months ago #

    A host that doesn't know what httpd.conf is may mean you're on a Windows server.

    When you say permalinks won't SAVE do you mean that if you try saving them in WP they revert? Or just that they don't work...

  15. sentientprod
    Member
    Posted 3 months ago #

    When I try to put a custom permalink, it will not save. Any other permalink will work. Here, let me explain it just a bit more. Okay...

    so basically my images are working. But when I have an uploaded image using the add media button, they will not show up on the front page nor show up on any slider no matter what the theme and it will not show up in thumbnails or in blog entry lists. However, if I type the URL of the image, it works! So the problem is not with the image itself.

    It's not like I have a 404 error and the image doesn't exist. It does exist, but the subdomain is not reading it correctly for some reason. I don't know if the permalinks have anything to do with it but I thought I would bring it up just in case.

  16. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 3 months ago #

    Forget the images for a second.

    Tell me more about the permalinks. I think they may be more indicative of the root cause than anything else.

    When you say 'will not save' do you mean there's an error? Do you mean "I press save and when the page refreshes it's still on the ugly permalinks?"

    Have you tested with another theme or with all your plugins turned off?

    Can you save permalinks on ANY site on your network?

  17. sentientprod
    Member
    Posted 3 months ago #

    I tried disabling all my plugins, changing lines in my .htaccess and other themes. I can save permalinks on my main site just not on my subdomain. And yes I mean that I click save and it will still be selected on the ugly permalinks

    UNLESS i put index.php/%WHATEVER%/
    and CHMOD my htaccess to 777

    I don't know why but it works when I do that

  18. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 3 months ago #

    Dude! Three bumps deleted. I'm terribly sorry, I was busy with other things and didn't come back, but that's no excuse. Don't bump. It's against forum rules.

    Okay. You shouldn't need to use either index.php in your URLs or change htaccess to 777...

    Rewind. What are your server specs? Have you asked your host if you're permitted to run MultiSite? Some don't let you.

    (The tl;dr of this story is "Your new host has some different settings, you may need to work with them to sort out how THEY let you use WordPress and Multisite.")

  19. sentientprod
    Member
    Posted 3 months ago #

    They're being really stubborn and stupid and are saying it's wordpress and not them.

  20. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 3 months ago #

    Can you use pretty permalinks on your MAIN site or do you have to use index.php in there as well?

    And can you find out your server specs? Like what OS (I'm on CentOS 5.5 x 64 for example), what version of PHP, ertc.

  21. sentientprod
    Member
    Posted 3 months ago #

    I can use permalinks on my main site but what exactly do you mean by if I use index.php? I will ask for the specs.

  22. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 3 months ago #

    You said:

    UNLESS i put index.php/%WHATEVER%/

    So can you use permalinks on your main site like /yyyy/mm/postname or do they have to be /index.php/yyyy/mm/postname as well?

    What host is this? I normally don't ask, but I wonder if it's one we know has weird tricks to keep in mind.

  23. sentientprod
    Member
    Posted 3 months ago #

    ipage.com is my hosting company

    Here's the specs they gave me:
    Running PHP version on Apache/2.

    Platform Type Debian
    MySQL Version 5.0.91
    Perl Version 5.8.8
    PHP Version 5.2.17

    No, ALL types of permalinks work on my main site

  24. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 3 months ago #

    Re-reading the whole thread ...

    Can you switch themes to something that doesn't require timthumb? Twenty Eleven would be the best test. I want to rule out something in your functions.php causing all this.

    Also did you use their simple script to install, or do it manually when you copied the files over?

    This is starting to look like iPage doesn't permit MultiSite to work right, which is possible. I've heard my Drupal buddies complain about it before.

  25. sentientprod
    Member
    Posted 3 months ago #

    Hmmm... It seems to be working on Twenty Eleven... But it's not working on three different themes. Each one of them uses their own functions.php correct? So that might rule it out. And also I manually copied the files over when I switched servers.

  26. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 3 months ago #

    Yes.

    If it works on 2011, and NOT your other themes, then it's the themes doing 'something' weird in their functions.php OR it's a permissions issue (highly unlikely).

  27. sentientprod
    Member
    Posted 3 months ago #

    could it be possible that I didn't set the right permissions on a certain folder when I transferred the files over?

  28. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 3 months ago #

    It would have to be the theme folder. BUT ... It works on TwentyEleven. Which flies in the face of that theory :/

  29. sentientprod
    Member
    Posted 3 months ago #

    So then I think it will boil down to one of the wp-content files then... if it's not the server.

  30. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 3 months ago #

    Did you modify the themes or are they the stock ones from the repo?

    You could always delete and reinstall them via the WP installer.

Reply »

You must log in to post.

About this Topic