Had the same issue.
There were two instances of this arrangement:
$dir = wp_upload_dir()['basedir'] . '/utubevideo-cache/';
which needed to become:
$upload_dir = wp_upload_dir();
$dir = $upload_dir['basedir'] . '/utubevideo-cache/';
for it to parse correctly.