If you use my DreamObjects plugins, don’t worry, I’ll have them updated before September.
What Changed?
As part of ongoing service improvements, DreamHost made a subtle, but critical, change to how everyone accesses DreamObjects. Specifically, they changed the DreamObjects hostname to prepare for upcoming enhancements.
Old hostname: objects.dreamhost.com
New hostname: objects-us-east-1.dream.io
I’m a developer who uses DreamObjects. What do I need to do?
If you were ever using the URL objects.dreamhost.com
in your site, you need to change it to objects-us-east-1.dream.io
and everything will be awesome.
Is it really that simple?
Not always. For some plugins and code, it is that simple. For my backup plugin, I added in a new option:
if ( !get_option('dh-do-hostname')) {update_option( 'dh-do-hostname', 'objects-us-east-1.dream.io' );}
This way I can later make it a dropdown for people to select as they want.
But for my CDN plugin there’s a major issue. You see, the way it works is that it updates the URLs of images within your posts. It, literally, edits your post content. And that means a change has to go back and fix all the URLs. I had to write some fairly weird code to do this. I’m still testing it fully, and I think it’ll do everything I need, except it’s not going to perfect.
Right now it does it’s utmost best to fix any URLs on a site, however it will only fix the ones for images it can detect are on DreamSpeed. I am aware that some people with a phenomenal number of images manually copied their uploads folder to DreamObjects and ran a command like this:
wp search-replace 'example.com/wp-content/uploads' 'objects.dreamhost.com/bucketname/wp-content/uploads'
Or maybe they used the InterconnectDB script or another plugin. Those people you’re going to have to watch out for and inform in a useful way as to how to fix it.
I’m an end user. Do I need to care?
Yes. You do. Do not try to fix it on your own just yet. Not until the plugins you use have updated and said they’ve corrected the issue. Then read the FAQ or any alerts to make sure you don’t need to do anything else. If you’re not using DreamObjects as a CDN, this should be pretty painless.
If you did, or if you moved it all manually, you will have to do it again before September 5th, 2016 or all images will break.
Thankfully, if you’re on DreamHost, you can run the following command:
wp search-replace objects.dreamhost.com objects-us-east-1.dream.io
That will upgrade everything for you. If you’re not, you’ll need to use the search/replace tool of your choice.
Again: WAIT until any plugin you use for this has been updated. I personally contacted everyone in the WordPress.org repository and informed them about it, but since I know that’s not perfect, I’m doing this too.
This sucks!
I know. It does. But I don’t see a better way around it.
When will your plugins be updated?
Before the end of May. I just want to test it on as many large sites as I can find.