My issue is that the styling that was done to the website is completely missing. The Widgets are also not showing up. When I go into the backend, they are all in place. IF I add a NEW widget, it does show up. So I have something wrong in the .sql file is my guess.
I did notice in my database that I still have a file structure like this: /home/cyndeetg/public_html/mywebsite.com/wp.......
I've seen how on other tutorials to remove the "cyndeetg" part. it's easy to figure out on there, but the way 1and1 does it, it's not clear to me how to find out the new name. The database on the other ones was something like cyndeetg_213 and all you had to do was replace cyndeetg with the new database name in your database, but 1and1.com database names are made completely different and are something like dbw12ed1d214 (no underscore). I think this is what I need to fix but am still not sure. Any thoughts?.
Original Div site
New live site
I did another dump and restore since I learned that the way Wordpress codes where the data is for the plugins data is strange. I used a simple find and replace app called "Velvet Blues Update URLs" just to update the links and the locations of images/documents and all is working perfectly. I hope this helps someone else if they come across this!
Related
I have duplicate site "A" and makes copy in diffrent folder on same server using duplicator, and now what is happening that sometimes one site is working and second one doesnt. I have tried to makes changes in wp-config and define on both sites their urls using:
define('WP_HOME','');
define('WP_SITEURL','');
But it doesn't help.
They use different databases of course. And it looks like sometimes one site is taking resources from the second one, and once the second site taking it from 1st. Maybe you have an idea of how to define, the exact path of all folders.
Thanks in advance.
I have found out that duplicator doesn't change all the links in database propely, so I had to change them directly in database.
I just recently moved my wordpress site to another host. There were too many images to import so I imported them through ftp and then used the [Add from Server plugin][1] to ensure my image id and such were in the database.
Images on my new site now show up however they are very pixalated and blurry as they are showing a small image blown up to 100%. I have tried regenerating thumbnails but have had no luck. It is the saem theme with the same code.
My old site image look like this:
Where my new site looks like this:
The images are all in the media library and i I swap them in one by one it wokrs but there are hundreds of posts. Is there a way to get this to work manually somehow? I thought this is what Regenerate Thumbnails was supposed to do. thanks for any help you can give.
I just check and my excerpts are not showing either.
If I understood correctly, you uploaded images via FTP. I assume folder structure is intact - year/month folder structure inside uploads folder. That should work without any other actions. Did you try? I don't understand part where you say "to ensure my image id and such were in the database". If you take your old database and upload to your new server, then why should some ids change? :/
What I want to say is that migrating WP from one host to another is just - copy all files, copy database and that's it. If you are changing domain of the site, then you must search/replace database also (but I don't think that's the case here).
Im migrating a wordpress site for the first time. I can get the site to load here: http://www.foureyescomic.com/ by updating the config file and the database table like this:
But now I'm getting images with broken links like this:
You need to update wp_posts table in database. Here is a workaround.
If you the original address is up yet, it is more convenient to use a plugin for migration. Here is a good one.
Yep, that happens because the absolute URLs of the images are stored as text within your posts' content in the wp_posts table. If your site's backend is functioning, you can use a database find/replace plugin to find the old urls in that table and replace them with the new urls. Or you can just do it with SQL/phpMyadmin if you're comfortable with that.
I find the easiest is by using this plugin: Better Search & Replace
It's pretty straightforward from there:
Install and activate the plugin, then in wp-admin go to Tools > Better Search Replace.
In the Search For field, put your old url. Ex: http://www.oldurl.com
Then in Replace With put your new url. Ex: http://www.newurl.com
In the Select tables section select wp_posts (or whatever your posts table is if you use a differnet prefix)
You can leave Run as dry run? checked if you want to do a dry run first to see what'll be changed. If it's unchecked, the changes will be made in your database.
Hit the Search/Replace button and that should do it!
Make sure you're using the exact strings you want to find and replace, and think about whether the search string could potentially occur anywhere else in that table where you wouldn't want it to change, otherwise you could screw things up. You should definitely have your DB backed up before you run this.
Hope that helps.
I have migrated website to new domain, the problem is css not loading
if I inspect element it gives link to old domain, is there a way to update css links in wordpress?
please help
When moving a WordPress site to a new domain, you need to change the Site URL and Home URL, usually in the database or in wp-config.php, depending on how the site was originally set up. There may be other changes you need to make in the database, or by manually editing posts, like the locations of images in posts.
This page on wordpress.org is a good reference, for all the things you may need to change, and it shows a few different methods to make most of the changes, so you can choose the one you prefer:
https://codex.wordpress.org/Changing_The_Site_URL
Make sure to keep a backup of the site in case of any mistakes. If you make some changes, and most of the site is working, but a few things aren't, I would recommend making another backup, so you could restore it again without losing much work, if needed.
yes when you are adding links to your site you show use the function site_url().example/my_post in order to construct the links
This may be an obvious question for those of you more advanced in coding than myself...but I created a website in WordPress but their domain is hosted elsewhere. They changed the A name and it now points to the site, but the font awesome icons are now square boxes. How can I fix this? Is there a simple way?
Many thanks for any help/guidance.
Alison
Super late, but hopefully this saves someone a lot of time. After migrating an existing Wordpress site to a new domain, I too encountered icons missing (both on the front-end and the back-end administration). After a long search and applying different methods, I found the database still listed the original/old domain within the "option" table.
Using phpMyAdmin, select the "option" table. Within "option" you will see the "site" and "home" rows. If the value has the old domains, you will need to change it to match the sites URLs (Located on the Administration dashboard under Settings > WordPress Address (URL) & Site Address (URL). To change the value, click Edit > and update the URL.
Fix the problem in less then 2 mins. Simple replacement of /font-awesome/5.13.0/css/fontawesome.min.css with /font-awesome/5.13.0/css/all.min.css and also font-awesome/5.13.0/js/fontawesome.min.js with /font-awesome/5.13.0/js/all.min.js can fix this issue. https://youtu.be/_GV_pEmLCLU
I know this is 2 years old, but I just ran into a similar problem and the answer given by Owais did not feel right to me (getting CSS from another site).
This happened to me for the exact same reason as it did for OP. I migrated my website to another host and another domain-name. After doing that I ran a rename-script for the DB (thousants of hard-coded URLs were replaced).
However, as it turns out, my theme was also using hard-coded URLs in the CSS files and in some JS files, as they were generated (upload/fusion-scripts and upload/fusion-styles). After replacing the hardcoded URLs in these files (I used visual studio, but you can use any bulk-replace tool) everything worked fine again.
Just another idea to throw in here - after transferring the site to the new server, and running this handy script to replace all references of the old url with the new one, I was still having the same issue with font awesome. The solution was to go to Settings / General and set the Endurance Cache to Off (0). Refreshed the site and all was well.
In my case, I had that problem changing the url using the constants WP_HOME WP_SITEURL at wp-config.php
When I changed through the wp-admin using the RELOCATE flag, worked
As you may know, this is the official doc about it
I had this problem so many times but this time I found the full proof solution for this issue:
Open PhpMyAdmin and then click on wp_options table.
In this, you will see a table with a name(according to your theme name) something like "theme_options_css" edit it and change the URL from old to new.
The problem might occur due to Http to Https migration also. So for that also change Http to Https manually in the same table and the problem will be resolved the moment you save your table.