Bug Summary
Pushing changes from Local to WP Engine makes all images disappear. Using the browser dev tools, it looks like the image URLs do not update correctly as it’s trying to load the images from the local server (rather than the WP Engine server the changes were pushed to).
Prep:
- Prepare two jpg images for testing (Test1.jpg and Test2.jpg)
Initial steps:
- In Local, click WP Admin
- Navigate to Media and Add Media File > Select Files > Test1.jpg
- Add a new page, call it Test, and click Edit With Elementor
- Add a container to the page and set its minimum height to 500px
- Navigate to the container’s Style and set Test1.jpg as the container’s background
- Click Publish
- View the page to confirm the container and image are displayed as expected
- From Elementor, exit to WP
- In Local, push the changes (Files, All Files, Database)
Crucial: on a different computer (not running Local):
- View the Test page at the WP Engine URL (the server you pushed the changes to) and observe no image shows up
- In the browser’s dev tools and sources, observe the browser is attempting to load Test1.jpg from .local (with a “Resource has no content” message)
Then:
- Repeat these same steps for Test2.jpg by adding a second container to the same Test page with Test2.jpg as its background, and observe how the same exact thing happens for both images (it’s attempting to load both from the local server)
Then:
- In Local, click WP Admin
- Navigate to Pages > Test > Edit With Elementor
- Select the first container with Test1.jpg as its background
- Navigate to the container’s Style, remove the image first, then re-set Test1.jpg as the container’s background
- Click Publish
- From Elementor, exit to WP
- In Local push the changes (Files, All Files, Database)
- On a different computer (not running Local): view the Test page at the WP Engine URL and observe both images now show up
Environment Info
- Local 9.2.5+6810
- iMac Retina 5K, 27-inch, 2020
- macOS Monterey (12.7.4)
- Safari 17.4.1 (17618.1.15.111.8, 17618)
- WordPress 6.8.1
- Elementor Pro 3.30.0 (Elementor 3.30.2)
- No other plugins installed
- Elementor Hello theme