I should clarify, only things in the Media Library do this. Theme resources work fine.
May you didn’t change your server hostnames in your hosting.
What do you mean that I should do? That isn’t clear to me.
I meant that did you change the hostnames in your hosting… Where the domain is available…
It’s happening the same problem with me and I didn’t change anything about hostname.
I’ve had supercache and cnd_sync_tool. I’ve decided to make a test with W3TC, because I’m very interested using memcache mode, but it isn’t working on CDN. So, I’ve uninstalled supercache and cdn_sync_tool and I installed W3TC.
All my images (from media library) are displayed only my cdn hostname, like that:
<img width=”300″ height=”120″ src=”http://cdn.xxxxxxxxx.com/” class=”attachment-highlight wp-post-image” alt=”” />
The system has changed all image paths to only cdn hostname.
I made some tests and the wordpress returns the right image infos. I could receive the right ID using get_post_thumbnail_id(). The problem is in replace hostname function.
I’ve made another test too. I’ve uploaded a new image and put it in a post, but the problem continues, but I may see it on media gallery admin without problem.
Any idea?
Thanks.
I’ve discovered the problem.
Yes, I changed my hostname. I use two servers for my blog, an admin and a frontend.
The admin is admin.xxxxxxxxxx.com and the frontend is http://www.xxxxxxxxxx.com
For all work fine I must to set in wordpress configuration:
WordPress Address: admin.xxxxxxxxxx.com
Site address: http://www.xxxxxxxxxxx.com
And obviously my site works on http://www.xxxxxxxx.com, but W3TC uses admin.xxxxxxxxxx.com to do search_replace, and the rule breaks here.
Is there any way to fix it?
Thanks.