I just finished migrating a wordpress website into a new website (hosted on godaddy's managed wordpress). Here is what I did:
Exported the database using this plugin:
https://wordpress.org/plugins/wp-migrate-db/
Changed my site-url and home-url to the new ones
Did a search and replace for 'wp_' in the exported db for the correct 'wp_xxx' in production
imported the backup into prod.
copied over the entire wp-content onto the new server.
Everything worked well except for two issues that I ran into (wondering what happened):
The first issue was with the pages templates. While the pages (in
the db) and templates (in the source) were transferred just fine. I
lost the association of page -> template. I had to go in to the
production dashboard and re-select the pages' templates.
Something happened with all my media. Basically, the media files
moved over just fine to the prod server but when I go into the
wordpress dashboard > media, they all appear like gray files. Also,
I cannot add them to any posts (as featured images). However, if I
grab the media item's url and just paste it into my address bar, it
is shown just fine (which means that they are where they are
supposed to be on the server, and the server is serving them up).
I just don't understand why these issues occured. Where could I have lost information given that I moved over all of wp-content and the entire db?
Thanks in advance.
Related
I'm making this website on WP, working with a theme called Ave.
Everything works fine on localhost (using MAMP on Mac), but after I upload it to a web server (to set up a dev) some of the Ave's core plugin slashes disappear, console looks like that:
Link example: domain.com/wp-contentpluginsave-coreextensionsredux-repeaterrepeaterfield_repeater.css?ver=1552814064
You can see that there are no slashes in this link, therefore the redux options panel doesn't work properly (I can't save anything or so).
Do you guys have any idea what might be the reason?
I can add that I've already tried a clean theme's installation made directly on the server (the same result/doesn't work) and also migrated from one localhost to another (two Macs) and it works properly on both.
EDIT: I also found a place where these particular files are taken from.
I meticulously backed up a working WordPress site, files DB tables, the works. I moved it to a new server, got everything working, the site renders, the DB is recognized, etc.
The issue is anytime I try to log-in, after login the site always redirects to the homepage (mysite.com/index.php)
I have scoured every PHP page for text like 'site_url' and 'wp-redirect' 'redirect' looking for the offending code that will not direct me to the admin dashboard.
To be honest, I am not even sure what page the site is supposed to redirect to.
I can always reinstall, but then I'd get stuck with the daunting task of having to manually rebuild all the headers, with the images, embedded flash and the rest of it.
Since the site was working at the previous location, and not a single byte was lost on the move, with all the tables updated to show the correct server name, I am stuck on this issue.
I have looked at all the StackOverflow links related to this issue and none of them addressed my issue specifically.
WordPress never does such redirection. Some security plugin can do. To fix the issue. deactivate all the plugins, you can do this by executing following query
UPDATE `wp_options` SET `option_value` = '' WHERE `option_name` = 'active_plugins';
Once done login and activate the plugins one by one and check which one causing the issue.
I had to re-install WP altogether. Once I did that, I was able to login and see the WP dashboard.
To reinstall, I relocated all the files in the main directory and the wp-admin, wp-content, and wp-includes folder. All the other folders I left alone, because they are not affected by the WP install.
After the install, you will have to open the wp-config.php file to input the new db name, db user, db password and db host. What you will see is the WP install added a fresh set of tables in the db you named in the config file. The only folder you will then have to copy and paste is the theme folder from the old site into the themes folder in your new install.
Now that you can login (yoursite.com/wp-admin), to populate your dashboard, import all the records from the old db table into the new one (the one with the pages and posts you want). If you do that right, all the pages (and blog posts) should populate in the dashboard window.
I have migrated WordPress site from one server to another. wp-Admin is working fine. But as on the main site there are languages installed so when I try to open www.samarenterprises.org it automatically by default redirect to www.samarenterprises.org/en
I face the error page not found
How ever one the old server its working fine www.haramainlive.org
You can migrate entire website without losing contents, plugins, themes, post and pages by using duplicator plugin. It is automated process and you can watch the video tutorial HOW TO CLONE WEBSITE TO NEW HOST USING WORDPRESS DUPLICATOR
I am new to drupal.I have to work on Live website with drupal 7. This website is working fine. I downloaded the website on my localhost.Home page of the website works fine.But when I click on any link in menu it shows me page not found.When I checked the url it is showing me like this:
http://Locahost/page/category/she.php
But when I check my project page and category folders arenot present.Also when I searched on live website these folder are not there also. But on live server it works fine.Url on live server is like this:
http://mywebsite.com/page/category/she.php
But Page and category folders are not there. I am a new to drupal. Any help to resolve this url generation issue will be appreciated.
After checking for possible misconfogurations as outlined by jpschroeder's you could try using the Backup and Migrate module.
Use the default settings and the cache tables will not be saved in your backup. You don't need them, as they will be re-created on the new server as pages are served for the first time there.
There's a good tutorial on this at http://www.seascapewebdesign.com/blog/how-transfer-your-website-one-server-another
I'm super new with php/wordpress (first day today) and I trying to deploy application on my local machine (Windows 7/ 64bit's if that's matter). SO I get the sources - which is like a theme, deploy wordpress locally with xampp, and put my source folder to wp-content/themes
So now it works, but work's wrong. Some element's like header menu do not render, some text missed. And when I trying to do some navigation like localsite/register it realod the same page, but make page title "page not found", but register.php in the folder. This is work the same for any other pages except login. When hit localsite/login it redirect's me to wp-login.php
I do not need to change it somehow, just make local version looks and works the same as live. Does anyone have an idea why could that be and what should I do to fix it?
Probably your pages do not executes because you do not create it like pages in CMS. That's also the reason why local version could looks different from the server one.
So you need to login to remote server admin panel and replicate all stuff from live server with the same way on your local server. I mean add pages, articles, configure menus, widgets, etc. And then your local version will be look and feel the same.