Bug #99926
Updated by JAKOTA Design Group GmbH over 1 year ago
Hi PHP Warning: file_get_contents(/var/www/public/fileadmin/media/user_upload/video.youtube): Failed to open stream: No such file or directory in /var/www/public/typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php line 1359 Steps to reproduce: 1. add a youtube video as content element 2. delete the .youtube file from upload folder 3. open page in frontend LocalDriver.php should check if a file is readable before reading it. LocalDriver.php line 1359 From: <pre><code class="php"> return file_get_contents($filePath); </code></pre> To; <pre><code class="php"> return is_readable($filePath) ? file_get_contents($filePath) : ''; </code></pre> Or maybe this check is better suited elsewhere?! Thanks