• Resolved mattgates

    (@mattgates)


    I was able to fix this error myself, but I wanted to let you know about it.

    File: dreamspeed/media/classes/dreamspeed.php

    LINE 402

    $url = $scheme . ‘://’ . $domain_base . ‘/’ . $dsobject[‘key’];

    If somehow a file gets deleted from DreamObjects manually or doesn’t upload correctly, this line will still attempt to read it. Since it is empty, you will get a TYPE error.

    To fix this error, simply check to ensure it is not empty.

    if(!empty($dsobject[‘key’])) {
    $url = $scheme . ‘://’ . $domain_base . ‘/’ . $dsobject[‘key’];
    }

    As a result, such as displaying a photo or a featured image, it will just show up as being blank.. nothing there. It is better to have this than to expose your errors on a live website.

    • This topic was modified 6 years, 7 months ago by mattgates.

    The page I need help with: [log in to see the link]

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

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    I’m not sure that’s the right fix, as it should still be throwing an error.

    I’m futzing with this in a final sec-fix release, should that be needed, but sadly this plugin is being retired due to the retirement of the CDN which is relies on 🙁

    Thread Starter mattgates

    (@mattgates)

    It did fix it for me. And I’m very sad to hear that it is being retired, as I use it for a busy blog and it certainly saves me a lot of time, as it connects directly to the Media Uploads. Wish DreamHost would offer some alternative if that is the case.

    This plugin certainly makes great use of DreamObjects + WordPress together.

    Plugin Author Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    The CDN service is going away, which made the plugin nigh impossible to properly support in any automated way 🙁

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bug fix: line 402 $dsobject[‘key’]’ is closed to new replies.