WordPress.org

Forums

[resolved] Transfering Multisite to another server didn't went well (21 posts)

  1. perezdi
    Member
    Posted 3 years ago #

    Hi, guys! For some days already I'm trying to solve some problems, researched a lot but didn't find anything like my problem so far.

    I tried the support from Bluehost but they told me something and I have no idea where to start. Besides working a lot already with WordPress, I'm no expert on php still.

    Here what I was told:
    I believe part of the problem is that you have multiple WordPress databases uploaded into the same single database where they should be separate instead. I believe this is the reason that when you visit your pages it causes a redirect back to the main domain. Also the XML file normally only contains text content and does not have images, those are uploaded separately.

    Here's the list of problems that I got:
    Can't login - Solved changing the wp-login file
    Can't upload images through WP. It says for security reasons. I can do it through the FTP, though.
    The pages from the main site are redirecting (example: reds4us.com/jogadores) for the the main page, the blog posts works fine.
    The importation of the XML file duplicate the comments every time I tried it, and I tried it 4 times so... and I couldn't get any attachments or videos related to blog posts.

    It's a big list, I don't know if the right thing was to split every problem through the forum, sorry if I didn't do it right and thanks up front for any help.

    Website: reds4us.com

  2. perezdi
    Member
    Posted 3 years ago #

    To add: I have my images already in the properly folder.

  3. bh_WP_fan
    Member
    Posted 3 years ago #

    If you don't have much already running on your WordPress site, it may be easiest for you to remove all existing installations, then use the Simple Scripts tool in your account to install a new WordPress.

    Otherwise, if you have a long-standing site that you don't want to lose your content for, check your wp-config.php file and see what database it's using, and also see what prefix it is using. Make sure that each site has the proper URL for the specified prefix in your options table. If there is an extra character or blank space, etc. it can break it.

    Also try deactivating plugins and see if that helps.
    See URL Change: http://wordpress.shadowlantern.com/how-change-wordpress-url-phpmyadmin/
    And Deactivate Plugins: http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F

  4. perezdi
    Member
    Posted 3 years ago #

    A thing that I discovered just now:

    On the other sites in the mulsite, the pages are working just fine, it's just on the main site.

  5. perezdi
    Member
    Posted 3 years ago #

    Thank you, @bh_WP_fan, I'll give it a try and I'll bring a feedback asap.

    Already try deactivating and deleting all the plugins, but it didn't do any difference.

    And actually, I used the Simplescripts tool to install WordPress at first.

    Maybe restarting all over the instalation is not a bad idea at all, but I would like to have it as the last possible option.

    I'll give it a look on the options table.

    I just realized I don't have the "sitemeta table" to reach the super admin control too, maybe there would be the answer to the image files not working.

  6. perezdi
    Member
    Posted 3 years ago #

    Just solved the redirecting page problem by changing this:

    define( 'SUBDOMAIN_INSTALL', true );

    It was set as false and I change it for true.

    Here's the list of problems that I got:
    SOLVED:
    Can't login - Solved changing the wp-login file
    SOLVED: The pages from the main site are redirecting (example: reds4us.com/jogadores) for the the main page, the blog posts works fine.

    So, now I still need help to solve this two problems:
    1) The importation of the XML file duplicate the comments every time I tried it, and I tried it 4 times so... and I couldn't get any attachments or videos related to blog posts.

    2) Can't upload images through WP. It says for security reasons. I can do it through the FTP, though.

    3) Need to recover access to Super Admin area

    Thanks in advance

  7. bh_WP_fan - Can we NOT use bit.ly unless we have to? It obfuscates URLs and some people like to know what they're clicking on.

    I believe part of the problem is that you have multiple WordPress databases uploaded into the same single database where they should be separate instead. I believe this is the reason that when you visit your pages it causes a redirect back to the main domain. Also the XML file normally only contains text content and does not have images, those are uploaded separately.

    ... Bluehost said that? They lose all points for that stupidity. It's a sodding Multisite, it's SUPPOSED to have one database with multiple WP instances. And they should know that. God knows we've told 'em enough.

    Okay. HOW did you move your site? Did you keep the same domain and just pick up teh DB and files and move them over?

  8. perezdi
    Member
    Posted 3 years ago #

    Hi, Ipstenu!

    I installed the site via Script and them replaced just the wp-content folder, installed the DB via phpmyadmin, made the proper changes to recognized the DB and tried to upload the XMl file.

    Basically, that's the way I tried it.

    ---

    And thanks for the light about Bluehost, I work with them in another website for a custommer and as a server, they are peach, but I never trusted their support.

  9. perezdi
    Member
    Posted 3 years ago #

    Jesus, I'm screwing up all my English over here. Too many hours on it. Sorry about that.

    Again, thanks Ipstenu for the light about the DBs, I was really confused when they told me about multiple DBs.

  10. perezdi
    Member
    Posted 3 years ago #

    Just realized by changing the Subdomains install for true, I can't have my other blogs running. Being a php noob is killing me.

    So, starting over:

    1) Can't recover the attachments from the XML file
    2) Can't now see my other blogs working, like this one reds4us.com/fifemos
    3) WP doesn't accept the JPG or any image files, it says for security reasons.
    4) Need to recover acccess for the Super Admin area
    5) Can't see any image in the Media Library but I uploaded them in wp-content/upload folder

    Again, thanks a lot for any help in advance

  11. You did the 'move' wrong.

    Do you still have access to the ORIGINAL database and files? The one you wanted to move?

    If so

    1) EXPORT the database (yes, the whole DB, you need it) via phpMyAdmin

    2) Import that DB to your new server.

    3) Copy ALL files for WordPress, NOT just wp-content, ALL of them. Especially your .htaccess from the original server to the new one.

    4) Edit your wp-config.php if you changed the DB name, user name and password.

    5) Beer.

  12. perezdi
    Member
    Posted 3 years ago #

    Just realized that I don't have the wp_site or wp_sitemeta tables in the database. Is it supposed to be there since it is a multisite? Or am I wrong?

  13. perezdi
    Member
    Posted 3 years ago #

    Ipstenu, it was a life saver. Working Peach now.

    I have still some image problems, but I think they didn't upload correctly, so I suppose just reuploding the uploads folder would fix it.

    I still had some problems in the website but I realized it was a plugin related to the old database name. Also, I uploaded the WP files to public_html when it wasn't working still.

    SOLVED 1) Can't recover the attachments from the XML file
    SOLVED 2) Can't now see my other blogs working, like this one reds4us.com/fifemos
    SOLVED 3) WP doesn't accept the JPG or any image files, it says for security reasons.
    SOLVED 4) Need to recover acccess for the Super Admin area
    SOLVED 5) Can't see any image in the Media Library but I uploaded them in wp-content/upload folder

  14. I have still some image problems, but I think they didn't upload correctly, so I suppose just reuploding the uploads folder would fix it.

    Check where they're looking for. Only your main site is in /wp-content/uploads/, the rest are in /wp-content/blogs.dir/#/files/ (and will point to the URL http://domain.com/subsite/files)

  15. perezdi
    Member
    Posted 3 years ago #

    Let me ask a question about the images in the backup folder.

    I extract the files exactly as they were, I didn't move them or anything, but like I said, some images are broken in the site. I got their links and got 404 pages, what means they are not in the place where they allegedly should be.

    I checked the backup, the files are not there either, I checked in the server, where I still have the old files saved, and they are not there either, but I didn't move them.

    Someone has some theory about what happen with them? Abduction or something? I know the old server had some problems with the raid array and stuff, I'm thinking maybe some of them got lost on the last service outage.

  16. Where are you looking for them?

    On my server I have them in two locations:

    Site #1 (aka ipstenu.org): /public_html/wp-content/uploads/
    Site #2 (aka tech.ipstenu.org): /public_html/wp-content/blogs.dir/2/

    See how that goes?

  17. perezdi
    Member
    Posted 3 years ago #

    Right.

    Well, Ipstenu, all the blogs in the multisite had their images and attachments perfect, except the main one. Or at least, the main one lost more files than the others, so far, I just saw one image missing in the other blogs.

    The images that I'm looking for aren't in the public_html directory as well, or blogs.dir. I'm really starting to think that some leprechaun ate them or something, they must be yummy.

    The boomer is even if I could find all of them in the Google's cache, I couldn't rename all of them for their names, so a bunch of old posts will be without images, not really a big deal, but a bit sad.

    I'm starting to think that the old server really lost some files in their server outage (because I lost some recent posts, too). Then, nothing to do about it, if it's the case. :(

  18. The main site should have been in /public_html/wp-content/uploads/ (or in an old WPMU setup, /public_html/wp-content/blogs.dir/1/) so if that;s missing from the ORIGINAL server, you can't really do much to get it back.

    I would recommend, for the future, making your own backups of the /public_html/ folder. I do it every night just to make sure I've got everything. And my server has a total snapshot backup :/ Can't be too careful.

  19. perezdi
    Member
    Posted 3 years ago #

    That's exactly why I changed server. Actually, I feel good enough that I didn't lost more posts or anything, a good part of the main content is too precious and specific to lost.

    But at least now I have a server with a very good connection (besides Bluehost let me down with their support, I never had any complaints as a server) and I can really do a backup on a more regular, maybe daily, basis.

    Thank you for all the excellent help, Mr. Half-Elf Support Rogue, Ipstenu. Probably for this kind of support that built WP in a freaking awesome platform. You should be proud of yourself. :)

    One last request: any recommendations for my website? (Security ones or anything?) - I'm going to setup a subscription soon, so I'll get an IP just for the website to turn it safe enough for the readers.

    Almarë, Ipstenu

  20. Ms half elf, but that's okay ;)

    Glad I could be of some help!

    As for suggestions... It's all really subjective, and depends on what you want to do with your site.

  21. perezdi
    Member
    Posted 3 years ago #

    Ms Half-Elf?

    Even better. ;)

    Ok, following you on Twitter and I'll give a check on your website.

    Thank you again!

Topic Closed

This topic has been closed to new replies.

About this Topic