In the download options, under the output method, try clicking on redirect to file to see if it works,
If it does, that means the script can’t find the file which means the path you entered in the download options is wrong.
I do have “redirect to file” set. Still have the issue.
Which download option are you referring to?
Download Path: /var/www/wordpress/wp-content/files
Download Path URL: http://site.com/wp-content/files
Download Page URL: http://site.com/development/code-repository
Try doing a var_dump($file_path.$file_name); above this line https://github.com/lesterchan/wp-downloadmanager/blob/master/wp-downloadmanager.php#L195 to see what is being printed.
string(50) “/var/www/wordpress/wp-content/files/APIWrapper.zip” File does not exist.
The path and file name are all correct, but it still returns File does not exist.
It was a directory permissions issue. The issue has been resolved. Thank you.