I have imported using BackUPup and UPdraftPlus, and with either one, when I click on ‘WP Admin’ or ‘Open Site’ it takes me to the site but it’s just text, looks like it’s missing CSS.
I am a first-time user of localwp. I tried importing using BackWPup and restoring using UpdraftPlus. I was able to create a new site from scratch, installing the UpdraftPlus plugin and restoring it. Both options imported the site without any errors or warnings at all.
Once imported and after I start the site, I will always see a warning on the top telling me that “This site’s WordPress URL settings do not match the host set in local”, I click several times on the “Fix it” button, and nothing happens, and the warning never goes away. I have the same exact experience on Windows 10 Pro running Local 6.5.1+6195 and on my MacOS with Monterey running local 6.5.1+6195.
If I click on WP Admin I will see the WP site unformatted, with no images or logos, and a 404: Page Not Found.
If I click on Open Site I will get the actual site and all the links work but it is totally unformatted and it’s missing all the images.
What am I doing wrong?
Hi there @trinetintl - welcome to the Local Community!
I’m curious about your workflow - you mentioned “importing using BackWPup and restoring using UpdraftPlus”.
When you’re importing with BackWPUp are you importing by dragging & dropping the files into Local (as shown in this help doc)?
Why and when are you using UpdraftPlus?
Thanks so much!
OK, I had a hunch of what could be the problem and I think I know what it is but I do not know how to fix it without having to move the live site to the root folder on the hosting server. The problem is that when I first created the website, for some odd reason I decided to install it in a subdirectory. The WordPress Address URL is “https://test.local/WPFolder” and the Site Address URL is “https://test.local”. The issue is that the local site folder is missing the WPFolder.
Just as a test, I clicked on “Go to site folder” and I created the WPFolder in public, and copied the entire contents of public into the WPFolder, I went back to localwp, started the site, clicked on “WP Admin” and I was able to see a properly formatted WordPress login, I was also able to login to the Dashboard, I looked around the site and I saw a bunch of plugins that were removed because I think they were not backed up properly and when I go to edit a page using Elementor I see several images missing including the company logo and some elements in the page are not aligned but at least it started Elementor.
\Local Sites\test\app\public\WPFolder<copied the contents of WP in here>
Can localwp run a site that is installed in a subfolder? If yes, what do I need to do to make it work if I import using BackWPUp? Do I need to modify the zip file, create the WPFolder and move wp-content into it?
If I purchase the UpdraftPlus Migrator utility will it help me restore the site in the correct folder and allow localwp to successfully run the site?
Just wanted to follow up, I got the site to work! After I copied the contents of public to the \public\WPFolder that I created, I logged in to WP Admin and changed the WordPress URL from “https://test.local/WPFolder” to “https://test.local". I then deleted the WPFolder and so far everything seems to be working OK. Now the only apparent issue I am having is that my Elementor Pro subscription was deactivated because of the domain. If I remember correctly, the video I saw from Elementor said that the Pro subscription was going to work in localwp. I have not yet searched the forum to see if somebody else has experienced the same problem, any ideas if Elementor Pro is going to work? I do not have a multi-site subscription, it’s a single-site subscription.
Hi there @trinetintl -
So happy to hear you got it all working - congrats!
Regarding Elementor Pro. I know Local users will use that theme for development so that shouldn’t be a problem.
Perhaps you can log into your Elementor Pro account and make sure the old domain
"https://test.local/WPFolder" is not somehow connected to your account (I don’t think it would be, but just to be sure).
Let me know if that helps,
I just noticed that some of the images are missing, and I cannot detect a pattern, it seems random and could be related to Elementor. The images are in the WordPress media and when I check, they seem to be tagged to the correct page but it is not displayed when edited with Elementor or when I open the site. I see the same issue on my PC and on my Mac. Did I miss something or is this the fact that the site is originally installed in a subfolder and I am forcing it to root and the system is just getting lost and acting up? Do you know of anything I can run or do to re-tag, reload or verify the images are on the correct page?
Hi @trinetintl - It sounds like you may need to run some search and replace. If you open your site shell it might look something like this:
Run the following WP-CLI command
wp search-replace 'SITEURL' 'LOCALURL' --skip-columns=guid
Replace SITEURL with your production URL like https://localwp.com
Replace LOCALURL is your Local Site URL like http://mysite.local
That can help replace the original URLs with the ones they currently have. To further troubleshoot missing images or content you can also do the follow:
Trust Local’s SSL certificate
Disable certain types of plugins: caching, security, force HTTPS/SSL
Regenerate Elementor CSS: Go to Elementor > Tools > Regenerate CSS and click the Regenerate Files button . Update your page. You may need to make a small change to enable the Update button. Clear all cache including server cache if it exists, any WordPress caching plugins you are using, and your own browser cache.
Keep us posted if you’re still having any trouble!
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.