Download Function not working -- Blank Page

trevorefreeman3720

New Member
YetiShare User
Mar 9, 2014
2
0
0
So I have been using The PHP File Hosting Script and it has been working for awhile, but now it displays a blank white screen and loads nothing when I try to download a file. When I try to view source nothing is appearing. I have tried already to Chmod 777 every file directory, and also tried some things in Apache. I have complied both apache and php from source.

-> I know my mod rewrite is enabled tried going from .php and .html and I clearly see it is enabled in my httpd.conf and apache -m command list that it's running.
-> My ht access base rule has also already been updated to reflect the /upload/ directory
-> I have already used www.optimalupload.com/upload/check_host.php and everything in php seems to be working and enabled.
-> My logs are reporting that nothing is wrong

Seems like the problem is after I upload a file when I tried to rewrite it and create a URL for the file something goes wrong as the url does not pull up the file. I was able to manually download a file by removing the ht access in the files directory and clicking a folder directly to download.

Could this be something I have to add to my php.ini to allow the downloading function to work? I have included my php.ini and httpd.conf.


my httpd.conf and php.ini are located under my website here www.optimalupload.com/help/

Any help would be appreciated!
website: www.optimalupload.com/upload/
 

ysmods

New Member
Jan 29, 2013
860
1
0
UK
www.ysmods.com
It looks like you've missed something when editing the files to remove the default free/paid user table, because the download link should contain a "hash"

Eg: http://localhost/fhs/rq?pt=ePKZPTBJjSYr6fbOegAb4A%3D%3D

Your links do not have the hash: http://www.optimalupload.com/upload/t6

The Javascript in the default code on my test site on the download page using "view source":
Code:
function display()
    {
        $('.btn-free').hide();
        $('.download-timer').show();
        if (seconds == 0)
        {
            $('.download-timer').html("<a href='http://localhost/fhs/rq?pt=ePKZPTBJjSYr6fbOegAb4A%3D%3D'>download now</a>");
        }
        else
        {
            $('.download-timer-seconds').html(seconds);
        }
        seconds--;
    }
The code on your download page:
Code:
function display()
    {
        $('.btn-free').hide();
        $('.download-timer').show();
        if (seconds == 0)
        {
            $('.download-timer').html("<a href='http://www.optimalupload.com/upload/t6'>download now</a>");
        }
        else
        {
            $('.download-timer-seconds').html(seconds);
        }
        seconds--;
    }