Closed bratvanov closed 2 years ago
Hi there, I know it's been a while, but I wanted to follow up before closing this out. Since the Find & Replace tool is looking for the exact string of characters that you provide, it unfortunately cannot tell whether a URL-encoded version of that string exists in the database.
Here are a couple of options that might help:
If you need help writing the regex, please reopen and we'll do our best to assist.
In Elementor Pro, many widgets which can have a link added to them support the Lightbox setting - and when the URL is added to the lightbox, it will get URL-encoded as part of the Elementor template which is saved as JSON in the database under the "postmeta" table in the "meta_value" column (as longtext).
However, while WP Migrate DB can successfully find/replace all other URLs in website built using Elementor, it doesn't find/replace these lightbox URL-encoded URLs.
Example of the simplest Elementor template that contains a section with a column with a heading widget that has a lightbox link defined.
The template of this simple page as saved in the DB:
The value of the "meta_value" column (after beautifying for readability) for example:
The specific part in question which contains the URLs is this:
After URL-decoding this specific part, we get this:
So the 2 URLs contained inside are now obvious - http://localhost/elementor/site/wp-content/uploads/1.png and https://www.youtube.com/watch?v=E3QiD99jPAg (for image lightbox and video lightbox).
WP Migrate DB can't find and replace either of these 2 URLs.