Yet another 500 error due to httaccess reads (4.2)
-
all-404-redirect-to-homepage.php line 85
$filestr = @fread($f, filesize($file));
I had to add a check to line 83 because for some reason I have an empty .htaccess file and the fread function causes a fatal error with length param 0.
if ($f !== false && filesize($file) !== 0) {
E: Uh, I don’t know, perhaps solve it differently in a way where the code is added to the empty .htaccess file, anyway. It is unclear what it means to have an empty .htaccess file lying around. ??
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Yet another 500 error due to httaccess reads (4.2)’ is closed to new replies.