-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0 Rows Replaced When Replacing URLs from MAMP Localhost to Live Site After Migration #1191
Comments
Hi @jeffreybetts, |
Yes, I do. After migrating the site to the live environment, I had broken image links for Elementor-built pages (used as background images and images that were added into text editor modules). I ran the Replace URLs to replace these image links and nothing was replaced. |
Just ran into this issue. It doesn't replace images set as backgrounds and overlays, apparently. My migration was between web hosts. The images from image-related modules were replaced correctly. Only images from backgrounds and bg overlays that weren't. |
Can you save the problematic page as a template, and send it via export file? |
Hey @matipojo , did you saw my comment there? I don't know if it's a separate issue from the original of this post, but i ran into it again in another site and had to manually change the backgrounds and overlays after migration. Perhaps is just a matter of adjusting the code a little, since the replace function already exists, and set the replacement to affect backgrounds and overlays as well. |
I've attached the template JSON from two of the posts/pages I've had issues with migrating the URLs, using the Replace URLs feature. This was exported from my local machine. |
@jeffreybetts , what are the from/to URLs you try to replace? |
Here are the URLs: |
I don't see them in the export files. |
I've re-exported/regenerated the files. They are attached. This was exported from the http://localhost:8888/mmt-dev/ environment. |
Could it be that that URLs can't be found because of the escape characters used in JSON? Plain text: JSON : Sorry to jump in, but i'm also having the same problem. |
@jeffreybetts, I talk about "Regenerate CSS files" not the export files. |
@dcnelson89, Our "Replace URL" tool takes the escaping in account. |
@matipojo I regenerated the CSS files in the Tools section and it had no effect. I ran the replace URLs tool and regenerated the CSS files on my staging site, and background images/images in text editor blocks were still referring back to the local environment. |
Fixed by this PR: #1251 Will be release soon in |
Description
I just updated to the newest version of Elementor and was trying out the Replace URLs options in the Tools section. I entered in the old and new site URLs, and when I clicked Replace URL, I get a popup saying “0 Rows Affected”.
I first migrated the site using BackupBuddy, then ran the Replace URL tool. I am going from a local machine (URL is formatted like http://localhost:8888/folder/) to a staging site (URL is formatted like http://example.com).
Steps to reproduce
Environment
== Server Environment ==
Operating System: Linux
Software: Apache
MySQL version: 5.5.51
PHP Version: 5.4.45
PHP Max Input Vars: 1000
PHP Max Post Size: 64M
GD Installed: Yes
Elementor Library: Connected
== WordPress Environment ==
== Server Environment ==
Operating System: Linux
Software: Apache
MySQL version: 5.5.51
PHP Version: 5.4.45
PHP Max Input Vars: 1000
PHP Max Post Size: 64M
GD Installed: Yes
Elementor Library: Connected
== WordPress Environment ==
Version: 4.7.1
Site URL: http://example-staging.com
Home URL: http://example-staging.com
WP Multisite: No
Max Upload Size: 64 MB
Memory limit: 40M
Permalink Structure: /%year%/%monthnum%/%day%/%postname%/
Language: en-US
Timezone: 0
Debug Mode: Inactive
== Theme ==
Name: Twenty Fifteen
Version: 1.7
Author: the WordPress team
Child Theme: No
== User ==
Role: administrator
WP Profile lang: en_US
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/602.3.12 (KHTML, like Gecko) Version/10.0.2 Safari/602.3.12
== Active Plugins ==
ACF to REST API
Version: 2.2.1
Author: Aires Gonçalves
The text was updated successfully, but these errors were encountered: