jeckman / YouTube-Downloader

PHP script for downloading videos from youtube; also parsing youtube feed into RSS enclosures for podcatchers
GNU General Public License v2.0
895 stars 474 forks source link

Unknown error unable to proceed #406

Closed adamwoo2444 closed 5 years ago

adamwoo2444 commented 5 years ago

I am getting this error. Can anyone solve this. Please

Fatal error: Uncaught YoutubeDownloader\Cache\CacheException: cache directory "/Applications/XAMPP/xamppfiles/htdocs/jekman_yt/src/../cache" is not writable. in /Applications/XAMPP/xamppfiles/htdocs/jekman_yt/src/Cache/FileCache.php:67 Stack trace: #0 /Applications/XAMPP/xamppfiles/htdocs/jekman_yt/src/ServiceProvider.php(76): YoutubeDownloader\Cache\FileCache::createFromDirectory('/Applications/X...') #1 /Applications/XAMPP/xamppfiles/htdocs/jekman_yt/src/Container/SimpleContainer.php(65): YoutubeDownloader\ServiceProvider->YoutubeDownloader\{closure}(Object(YoutubeDownloader\Container\SimpleContainer)) #2 /Applications/XAMPP/xamppfiles/htdocs/jekman_yt/src/Container/SimpleContainer.php(65): Closure->__invoke(Object(YoutubeDownloader\Container\SimpleContainer)) #3 /Applications/XAMPP/xamppfiles/htdocs/jekman_yt/src/ServiceProvider.php(145): YoutubeDownloader\Container\SimpleContainer->get('cache') #4 /Applications/XAMPP/xamppfiles/htdocs/jekman_yt/src/Container/SimpleContainer.php(65): YoutubeDownloader\ServiceProvider-> in /Applications/XAMPP/xamppfiles/htdocs/jekman_yt/src/Cache/FileCache.php on line 67

jeckman commented 5 years ago

The error is: cache directory "/Applications/XAMPP/xamppfiles/htdocs/jekman_yt/src/../cache" is not writable.

YouTube Downloader makes a cache directory, which it needs to have permissions to write to.

How you give it those permissions is dependent on your local setup in XAMPP - this might help if you're MacOS as the /Applications/ suggests: https://stackoverflow.com/questions/9046977/xampp-permissions-on-mac-os-x

adamwoo2444 commented 5 years ago

Thank you so much 👍