• Resolved phorsaken

    (@phorsaken)


    I have set everything up correctly so far as I can tell. I have added a few files and put them all in the same category and created a page with the shortcode [download category=”1″] to show all the files in that category.
    I can see the files when added files for download so I assume the path is correct. The file size is set to auto but always reads zero in the list. When clicking on a file to download I see a white page that only says “File does not exist.” Any ideas?

    WordPress is installed to /var/www/htdocs

    downloads dir is /var/www/htdocs/downloads

    all directories are owned and writable by apache

    _______________________________________________________

    Download Options:

    Download Path: /var/www/htdocs/downloads

    Download path URL: http://slackbox.net/downloads

    Download page URL: http://slackbox.net/downloads
    (Should this be a link to my page with the shortcode in it?)

    https://ww.wp.xz.cn/plugins/wp-downloadmanager/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Lester Chan

    (@gamerz)

    Hmm I am getting forbidden

    Forbidden
    
    You don't have permission to access /downloads/ on this server.

    Can you directly access the file via URL in your browser without using the plugin in the first place?

    Thread Starter phorsaken

    (@phorsaken)

    Yes, I can access the files directly. The forbidden error is because I have Indexes turned off on my server, there are no directory listings.

    Thread Starter phorsaken

    (@phorsaken)

    The only entry is in my access log..

    “GET /?dl_id=1 HTTP/1.1” 404 20

    So it looks like it’s generating a 404 error.

    Download Nice Permalink IS set to “no” and it is set to use File ID also per the instructions.

    Plugin Author Lester Chan

    (@gamerz)

    Weird, can you try regenerate the permalink in WordPress? Just go to Settings -> Permalinks and save again.

    Thread Starter phorsaken

    (@phorsaken)

    I have done that, though it doesn’t seem to make a difference.

    I may see the problem though I’m not sure.
    The instructions note to change the pages permalink from the default to “downloads” however on my installation I do not have the option to change the permalink for a single page, I can only change permalinks for the entire site.

    Thread Starter phorsaken

    (@phorsaken)

    I can see the problem now.

    It is indeed a problem with my permalink settings. Changing the permalink settings to “Post Name” has indeed allowed me to change the permalink for my individual page. I also have a configuration problem in my httpd.conf where the .htaccess was not allowed to override any settings namely FileInfo which if I read correctly is needed along with mod_rewrite to make the pretty permalinks.

    It’s not working just yet, but I have things to work on. When I find a solution I’ll post back here for anyone else in the future.

    Thread Starter phorsaken

    (@phorsaken)

    Trying different scenarios, I have found that the problem is in the length of the filename (including directory).

    /var/www/htdocs/downloads/slackware-10.0/slackware-10.0-install-d1.iso
    This will download just fine

    /var/www/htdocs/downloads/slackware-14.0/slackware-14.0-install-dvd.iso
    This will NOT download

    I’ve looked at filename length limits for my system, it’s 255 characters and
    PHP so far as I could find does not limit the length.

    Back to square one again. Would this be a limitation of the plugin or do I have an issue with Apache/PHP?

    Plugin Author Lester Chan

    (@gamerz)

    I am not sure, but the plugin stores the filename as TEXT in the DB which is about 65k chars.

    Thread Starter phorsaken

    (@phorsaken)

    Ok, got it figured out.

    It is a file size issue. The first iso mentioned above is around 600MB,
    the second file (DVD) is around 2.3GB.

    Thank you for taking the time to answer questions and ruling a few things out.

    Thread Starter phorsaken

    (@phorsaken)

    .

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘File does not exist. Error’ is closed to new replies.