I'm running my project very successfully built on phpmaker 2024 x 6 months - on new ubuntu server VM. Everything works great, but a couple times a day we get this error: /var/www/[mydomain].com/patient_chart/vendor/symfony/finder/Finder.php(649): The "" directory does not exist.
I believe it is a temp log directory.
This is at random times. If hit refresh, the correct page shows and the error is cleared. I don't see error in apache error log.
Any ideas what could cause this? I posted many months ago, but never found a solution. Looking at the code in finder.php,
foreach ((array) $dirs as $dir) {
if (is_dir($dir)) {
$resolvedDirs[] = [$this->normalizeDir($dir)];
} elseif ($glob = glob($dir, (\defined('GLOB_BRACE') ? \GLOB_BRACE : 0) | \GLOB_ONLYDIR | \GLOB_NOSORT)) {
sort($glob);
$resolvedDirs[] = array_map($this->normalizeDir(...), $glob);
} else {
throw new DirectoryNotFoundException(sprintf('The "%s" directory does not exist.', $dir));
}
}
It is the throw new directorynotfound line at the bottom that is line 649. Could I just comment this out?