Open darogan opened 7 years ago
@ewels I have uncovered an issue with the getSize function in files.php (ln 191). Its giving the following error for some files:
PHP Fatal error: Uncaught RuntimeException: SplFileInfo::getSize(): stat failed for XXXX
The files look fine and open as expected on Linux, so I don't know why certain files are failing.
I fixed the error by swapping out $size = $file->getSize(); for $size = filesize($file);
$size = $file->getSize();
$size = filesize($file);
I'll submit a PR when I have some more time
Strange, thanks @darogan! I look forward to the PR.
@ewels I have uncovered an issue with the getSize function in files.php (ln 191). Its giving the following error for some files:
PHP Fatal error: Uncaught RuntimeException: SplFileInfo::getSize(): stat failed for XXXX
The files look fine and open as expected on Linux, so I don't know why certain files are failing.
I fixed the error by swapping out
$size = $file->getSize();
for$size = filesize($file);
I'll submit a PR when I have some more time