blank page instead of Error Page

zigma4000

Member
YetiShare User
Wurlie User
Jun 9, 2013
39
0
6
UAE
www.uploadman.com
Hi,

my website including many websites which using YetiShare , when you enter url of file or any fake url which is not generated for file by script , display blank page instead error file or page not found page and error.

I spoke to Adam he said that's not an issue you can redirect 404 error any where you want by 404 function line in file_download.php file.

I tried and it doesn't work.

for example try this website's link :

https://hoodload.com/3333ddccdcdcd

you will see blank page , no error page and file or page not found error message.


but this one : http://yaa.im/shihihih222w2

you will get error page and file or page not found message . must of YetiShare Based websites show blank page instead of error page , how can I fix this ?
 

dfdssfsfd3806

Member
YetiShare User
Apr 4, 2014
271
0
16
replace ouput404 for


$errorMsg = t("error_can_not_locate_file", "File can not be located, please try again later.");
$errorMsg = t("file_download_error", "Error").': ' . $file->errorMsg;
/* if no file found, redirect to home page */
redirect(getCoreSitePath() . "/error." . SITE_CONFIG_PAGE_EXTENSION . "?e=" . urlencode($errorMsg));