Forums

[Plugin: Download AutoStats] Only works through index.php?download=... (6 posts)

  1. Dauntless
    Member
    Posted 7 months ago #

    Hi,

    The file is only added to the database if I call it through mysite.com/index.php?download=myfile.ext . If I call it through mysite.com/downloads/myfile.ext, it is offered as a download (so that part works), but it isn't added to the database.

    Greets,
    Dauntless

  2. Txanny
    Member
    Posted 7 months ago #

    I've checked this in the current version and it works for me. Perhaps something in your site is a case I've not tested.

    Please tell me if your WordPress is at your domain root, the folder where the files reside and the shortcut to download them. I mean the directory structure, not the exact names.

    Perhaps could be some error with the counter. I will check this as checking at the source it looks to me that something is wrong with the counter.

  3. Dauntless
    Member
    Posted 7 months ago #

    My website is on mydomain.com, my wordpress installation files are at mydomain.com/V5 . I use a .htaccess file:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    The files are located in mydomain.com/files and my settings are:
    Folder of uploaded files: ../files
    Url for the download: mydomain.com/download
    Auto-add: Yes

    Thanks!

  4. Txanny
    Member
    Posted 7 months ago #

    I think the problem could be with the paths.
    On settings page you should have something like that:

    Folder of uploaded files: /files -> relative to ABSPATH.
    URL : /download -> Note this does not include domain names, just folder names.

    Perhaps the problem is that you have your WordPress installation files on a subfolder wile the blog is on a parent folder. I've not tested in this case and will do it to check if this is the mistake.

    I will follow this to find were it fails and to solve it.

    Thanks for reporting this!

  5. Txanny
    Member
    Posted 7 months ago #

    Hello!

    I've checked exactly the with the same configuration as you. Found a small bug, but I think it's not related to that.

    With thew 1.1.4 version, and configured like below, it works for me:

    Folder of uploaded files: ../files
    URL for the download: download
    Auto-add: Yes

    Hope this works now.

    BTW This plugin is going to be completely rewritten for the next 2.0 version to get a better integration with WP 2.7 and a more flexible way to manage the files.

  6. Dauntless
    Member
    Posted 7 months ago #

    Hi,

    Don't know how or why, but it seems to be working now ... Really weird :S

    (I was debugging download.php and when I was done it was working, but in the end I didn't change anything (well, I changed it back and it still worked))

    Thanks for your time though!

Reply

You must log in to post.

About this Topic