Closed navyndaaa closed 6 years ago
Fatal error: Uncaught YoutubeDownloader\Cache\CacheException: cache directory "/opt/lampp/htdocs/YouTube-Downloader/src/../cache" is not writable. in /opt/lampp/htdocs/YouTube-Downloader/src/Cache/FileCache.php:66 Stack trace: #0 /opt/lampp/htdocs/YouTube-Downloader/src/ServiceProvider.php(75): YoutubeDownloader\Cache\FileCache::createFromDirectory('/opt/lampp/htdo...') #1 /opt/lampp/htdocs/YouTube-Downloader/src/Container/SimpleContainer.php(64): YoutubeDownloader\ServiceProvider->YoutubeDownloader{closure}(Object(YoutubeDownloader\Container\SimpleContainer)) #2 /opt/lampp/htdocs/YouTube-Downloader/src/Container/SimpleContainer.php(64): Closure->__invoke(Object(YoutubeDownloader\Container\SimpleContainer)) #3 /opt/lampp/htdocs/YouTube-Downloader/src/ServiceProvider.php(144): YoutubeDownloader\Container\SimpleContainer->get('YoutubeDownload...') #4 /opt/lampp/htdocs/YouTube-Downloader/src/Container/SimpleContainer.php(64): YoutubeDownloader\ServiceProvider->YoutubeDownloader{closure}(Object(YoutubeDownloader\Container\S in /opt/lampp/htdocs/YouTube-Downloader/src/Cache/FileCache.php on line 66
Chmod 777 the "cache" directory
Thanks @chadul, this should solve the problem.
duplicates #295
Fatal error: Uncaught YoutubeDownloader\Cache\CacheException: cache directory "/opt/lampp/htdocs/YouTube-Downloader/src/../cache" is not writable. in /opt/lampp/htdocs/YouTube-Downloader/src/Cache/FileCache.php:66 Stack trace: #0 /opt/lampp/htdocs/YouTube-Downloader/src/ServiceProvider.php(75): YoutubeDownloader\Cache\FileCache::createFromDirectory('/opt/lampp/htdo...') #1 /opt/lampp/htdocs/YouTube-Downloader/src/Container/SimpleContainer.php(64): YoutubeDownloader\ServiceProvider->YoutubeDownloader{closure}(Object(YoutubeDownloader\Container\SimpleContainer)) #2 /opt/lampp/htdocs/YouTube-Downloader/src/Container/SimpleContainer.php(64): Closure->__invoke(Object(YoutubeDownloader\Container\SimpleContainer)) #3 /opt/lampp/htdocs/YouTube-Downloader/src/ServiceProvider.php(144): YoutubeDownloader\Container\SimpleContainer->get('YoutubeDownload...') #4 /opt/lampp/htdocs/YouTube-Downloader/src/Container/SimpleContainer.php(64): YoutubeDownloader\ServiceProvider->YoutubeDownloader{closure}(Object(YoutubeDownloader\Container\S in /opt/lampp/htdocs/YouTube-Downloader/src/Cache/FileCache.php on line 66