Support » Plugin: DreamSpeed CDN (RETIRED) » Missing Images & More

  • Resolved BlueSheepdog

    (@bluesheepdog)


    Hi,

    I’ve had ongoing problems with DreamHost’s CDN and the customer support rep directed me here.

    I am hosted on a DreamPress server and have the DreamSpeed plugin installed. Currently, some images display properly while they are completely missing on other pages/posts.

    On the posts/pages where the images are missing, there are large blocks of open space where the missing photo is supposed to be. In the WordPress editor, the image is there – it just won’t show up in the article.

    Not all of the images on a given page will be missing. Some of them are missing, while others display.

    Example: http://www.gunsholstersandgear.com/flashlight-reviews/extremebeam-m600-flashlight-review/

    I do not know how long these images have been missing, nor do I know if they were missing prior to the recent upgrade to version 0.7.0 of this plug in.

    I tried deactivating the DreamSpeed plugin, but that had no effect on the images. Those that were missing stayed missing while those that were present continued to display.

    Here is what I need to do:

    1. Get the images displaying ASAP.

    2. Find out what I need to do to completely unhook my site from the DreamHost CDN and host all of my images on the site as I did prior to trying out your service.

    If #2 – unhooking everything – is the fastest way to get to #1, I’m happy to do that.

    I apologize in advance if some of this information is not appropriate for this support forum, but everything above was relayed to the DreamHost tech support, and they told me to come here and ask for help.

    Additional information:

    site: http://www.gunsholstersandgear.com/
    WP version: 4.5.3
    DreamSpeed plugin version: 0.7.0

    Thanks for any help you can provide.

    -Richard

    https://wordpress.org/plugins/dreamspeed-cdn/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    If you view the page source it’s REALLY weird:

    <img class="aligncenter wp-image-26475 size-full" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="http://www.gunsholstersandgear.com//wp-content/uploads/2015/04/ExtremeBeam-M600-review.jpg" alt="ExtremeBeam M600 review" width="750" height="442">

    data-src isn’t something the plugin sets… Do you have a lazy-load plugin on that site? That sounds like something it would do.

    As for removing the plugin, go into the settings and under OPTIONS make sure that ‘copy files to DreamSpeed…’ and ‘Serve all available files..’ are unchecked.

    Then you need to run this via command line:

    wp search-replace 'objects.dreamhost.com/bucketname/wp-content/uploads' 'example.com/wp-content/uploads'

    I strongly recommend running wp db export first, as that gives you an immediate backup of the site database.

    Thanks for the response (especially on a holiday weekend.)

    Someone from DreamHost contacted me early this morning and told me to disable the plugin, which I did, and then they ran the command line. They did not tell me to uncheck those options in the plugin first. Am I looking at some potential problems? If so, how should I correct them?

    Unfortunately, unhooking from the CDN did not return the photos. So now I am having to go through about 1000 pages and posts to manually correct the problem. Ugh.

    FWIW, I use Unveil Lazy Load, and have since before I began using DreamSpeed. So, I don’t know if there is something in it that conflicts with the latest version of DreamSpeed – or is completely unrelated.

    I know when I moved everything to the CDN, there were problems in getting everything moved over. DreamHost support staff had to go in and do some sort of magic to get everything to move correctly. I don’t know what they did at that time, but you might be able to dig through the support ticket to see if there is anything that might tip you off to a possible conflict.

    Let me know what you think about having disabled the plugin without unchecking things.

    -Richard

    Plugin Author Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    Am I looking at some potential problems?

    Absolutely not 🙂 If the plugin is uninstalled, it can’t run. You’re safe.

    Unfortunately, unhooking from the CDN did not return the photos.

    Alas, this is known 🙁 That’s what this bit does when you run it via command line:

    wp search-replace 'objects.dreamhost.com/bucketname/wp-content/uploads' 'example.com/wp-content/uploads'

    That runs a search/replace to move it all back. You can use other plugins, like Velvet Blues – https://wordpress.org/plugins/velvet-blues-update-urls/ – to run the same search. That said, the images showing in the editor means they are there, but.

    FWIW, I use Unveil Lazy Load, and have since before I began using DreamSpeed. So, I don’t know if there is something in it that conflicts with the latest version of DreamSpeed – or is completely unrelated.

    Oh it’s definitely Unveil Lazy Load. It’s possibly WP 4.5 though, since some changes were made in the srcset with the various point releases to fix bugs, and they’ve been quite dicky :/

    I’ve dropped my work email a note to go through the ticket history to hunt down what they did (I’m out till Tuesday, enjoying the double up of Canada Day and thr 4th), but I bet it was the command line code I said before. It usually is.

    Hmmm. DreamHost support said they ran this:

    wp search-replace 'http://cdn.gunsholstersandgear.com' 'http://www.gunsholstersandgear.com/'

    It is different, but does it accomplish the same thing as what you suggested? If not, have they done any damage?

    If the command line they ran is the same as what you suggest, am I pretty much out of luck for restoring my images? I’m not looking forward to manually restoring the missing photos one post at a time.

    If it matters, I deactivated Unveil Lazy Load.

    Plugin Author Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    It’s similar, and as effective, but slightly … not safe but it’s not the best format. It’s safest to perform the most specific search possible. In your case, since you were going from CDN to non-CDN, though, it’s okay. Don’t try to reverse it or you’ll end up breaking a lot of things. 🙂

    This would have been best:

    wp search-replace 'http://cdn.gunsholstersandgear.com/wp-content/uploads/'
    'http://www.gunsholstersandgear.com/wp-content/uploads/'

    What they ran is safe for this particular situation, just not something I would recommend everyone do without knowing exactly what they were doing (like anyone in the future reading this).

    If it matters, I deactivated Unveil Lazy Load.

    Since you’re on DreamPress, run a Varnish Flush and see if that fixes your posts.

    I installed and used the Varnish HTTP Purge plugin, but that does not seem to have fixed anything.

    I appreciate your help – especially on a holiday weekend. If you have additional suggestions, I’m certainly open to trying something else.

    However, it seems like something went wrong somewhere, and I will just have to manually fix all of these files. Its times like this that makes me wish I had interns!

    Seriously – thanks for the help!

    -Richard

    Plugin Author Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    I have a theory… Do you have a page that isn’t changed yet so I can check if it’s just that memcached is stuck?

    I have a similar issue with missing images and believe its related to the change of domain names for DreamObjects. I updated the DreamSpeed CDN plug in and things were working fine. Then I changed the CDN path from:

    http://objects.pulpconnection.net

    to

    http://objects-us-west-1.dream.io

    Note: In my DreamHost-ed domain, there’s a non-editable DNS record:
    objects CNAME pulp.objects.cdn.dream.io.

    After these changes, I noticed that some of my site’s images are not showing, namely the featured image and any images used in WordPress galleries. Here’s an example where direct images appear in the post but not gallery images. Also this post’s featured image doesn’t show on my home page.

    Bee & Tea Beckons the Age of Milk Tea in Kailua

    Looking at the URL for one of the gallery images, I get:
    http://i0.wp.com/objects-us-west-1.dream.io/wp-content/uploads/2016/07/bee-tea-kailua-9-1.jpg?resize=121%2C121

    In the gallery, the broken image URL is:
    http://objects-us-west-1.dream.io/wp-content/uploads/2016/07/bee-tea-kailua-8-640×853.jpg

    Sorry, this is confusing, but looking for ways to restore my images. Thanks for any help.

    Looking further at my setup, it looks like I have http://objects.pulpconnection.net aliased in all the right places so that the DreamObjects change should be handled correctly. I changed my sites’s CDN path back to http://objects.pulpconnection.net and as expected, all the imags are behaving now.

    Fingers crossed when the final name change kicks in on Sept 5.

    Plugin Author Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    Then I changed the CDN path from:

    http://objects.pulpconnection.net

    to

    http://objects-us-west-1.dream.io

    I’m curious … how?

    Looking at the URL for one of the gallery images, I get:
    http://i0.wp.com/objects-us-west-1.dream.io/wp-content/uploads/2016/07/bee-tea-kailua-9-1.jpg?resize=121%2C121

    THAT looks like Jetpack’s image CDN being used. Which … would be very odd.

    Sorry, maybe I misspoke, but I changed the configuration of the DreamSpeed CDN path. Hope this screen shot works:

    https://www.evernote.com/l/AByLa3k2nOZMQbzgD2Q6VJ6KU9vTq3FRmF4

    Yes, I was very confused with the various URLs for my images, but I guess I did use the JetPack image gallery so I never did pay attention to how it worked in the background.

    Like I mentioned, after changing my sites’s DreamSpeed configuration to use the original CDN path of http://objects.pulpconnection.net, all the images behaved normally. My concern is what happens when the DreamObjects host name changes on Sept 5. Will my DNS alias of http://objects.pulpconnection.net still function…

    Plugin Author Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    Will my DNS alias of http://objects.pulpconnection.net still function…

    YES ABSOLUTELY 🙂

    If you’d been using objects.dreamhost.com and NOT objects.pulpconnection.net, you’d have to change yours. You don’t. And in fact the upgrader checked to make sure for you 🙂

    You’re totally fine. I double checked your site and your account in DH to make sure. So unless someone lied to me about what changed, you’re good to go.

    Wow! Can I just say what service and support!! Thanks so much for going above and beyond and looking into this for me. Gotta love it!

    Plugin Author Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    FYI, I found a bug where in specific weird moments, that error geewhy had could happen. It’s patched in 0.7.1

    Thank you for reporting this!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Missing Images & More’ is closed to new replies.