Broken Images

Issue Summary

Broken images, both on Local and Live view
The thing is though, the images broken on Local are fine on Live view, and the images broken on Live view are fine on Local!

Troubleshooting Questions

  • Does this happen for all sites in Local, or just one in particular?
    tried duplicating the site, but it still happens.

  • Are you able to create a new, plain WordPress site in Local and access it in a Browser?
    Yes

Replication

Tried duplicating the site, but it happens on both versions.

System Details

  • Which version of Local is being used? 6.4.3

  • What Operating System (OS) and OS version is being used?

    • macOS Monterey

Hi @behrouz!

Nick here following up on your support request!

Live Links don’t match your Local Site URL (ie: mysite.local), so Local attempts to rewrite these on the fly. Live Links is broadly compatible with many themes, plugins, and custom code snippets. However, some images, front-end assets, or other HTML elements may be missing from your site when viewing it over Live Links. Try the tips below:

  • 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

  • Trust Local’s SSL certificate

  • Disable certain types of plugins: caching, security, force HTTPS/SSL

If you have any other questions or concerns don’t hesitate to reach back out. We are always happy to help!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.