Reputation: 19
I am facing an error in Laravel 6. How can I solve this?
Fatal error: Uncaught RuntimeException: Directory name must not be empty. in D:\Xampp\htdocs\tolet\vendor\symfony\finder\Iterator\RecursiveDirectoryIterator.php:54 Stack trace: #0 D:\Xampp\htdocs\tolet\vendor\symfony\finder\Iterator\RecursiveDirectoryIterator.php(54): RecursiveDirectoryIterator->__construct('', 4096) #1 D:\Xampp\htdocs\tolet\vendor\symfony\finder\Finder.php(669): Symfony\Component\Finder\Iterator\RecursiveDirectoryIterator->__construct('', 4096, false) #2 D:\Xampp\htdocs\tolet\vendor\symfony\finder\Finder.php(571): Symfony\Component\Finder\Finder->searchInDirectory('') #3 D:\Xampp\htdocs\tolet\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\LoadConfiguration.php(76): Symfony\Component\Finder\Finder->getIterator() #4 D:\Xampp\htdocs\tolet\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\LoadConfiguration.php(59): Illuminate\Foundation\Bootstrap\LoadConfiguration->getConfigurationFiles(Object(Illuminate\Foundation\Application)) #5 D:\Xampp\htdocs\tolet\vendor\laravel\framework\src\I in D:\Xampp\htdocs\tolet\vendor\symfony\finder\Iterator\RecursiveDirectoryIterator.php on line 54
Upvotes: 0
Views: 599
Reputation: 76968
The error tells you that a directory name is empty. You will need to make sure that the directory name in use has a value. Check your configuration for directory names and see whether there is any of them not configured. Ask your teammates whether some new configuration items were added that they did not let you know about so far.
But most importantly, debug your code, at the very least log some values while you are working on this at the lines pointed out by the stack trace to find out what's missing. Once you know what's missing, just make sure it will not be missing at the next load.
Upvotes: 0