Bug fix: line 402 $dsobject[‘key’]
-
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.
The page I need help with: [log in to see the link]
- The topic ‘Bug fix: line 402 $dsobject[‘key’]’ is closed to new replies.