WordPress.org

Ready to get started?Download WordPress

Forums

Delightful Downloads
[resolved] jQueryFileTree.php Undefined variable: root (3 posts)

  1. ahoyhere
    Member
    Posted 7 months ago #

    I installed DD just 30 minutes ago or so, in a brand spanking new WP 3.8 (installed 2 days ago), on my local development setup. Details at the bottom.

    When I was in the New Download page, and I'd click "Select Existing," the error: Undefined variable: root error was printed over & over & over for all the different lines where $root is called in jQueryFileTree.php (there are a bunch). I hunted around and couldn't find where it was defined… and it isn't.

    Uploading a file worked so far as the actual uploading of the file, but then when I used the short code, it said Not Found.

    I checked out the code and fixed it with this line:

    $root = urldecode($_POST['dir']);

    And replaced all the instances of $root . $_POST['dir'] with simply $root. Voila, no more errors, and now the short codes work.

    I'm new to WordPress so I first tried to use wp_upload_dir() but apparently it's not accessible inside this library file (undefined).

    `Details:

    ### Delightful Downloads ###

    ## Server Information ##

    Server: Apache/2.2.25 (Unix) mod_ssl/2.2.25 OpenSSL/0.9.8y DAV/2 PHP/5.2.17
    PHP Version: 5.2.17
    MySQL Version: 5.5.33

    PHP Memory Limit: 256M
    PHP Time Limit: 30
    PHP Max Post Size: 32M
    PHP Max Upload Size: 32M

    ## WordPress Information ##

    WordPress Version: 3.8
    Multisite: No
    Max Upload Size: 32.0 MB

    Site Address: http://localhost
    WordPress Address: http://localhost
    Download Address: http://localhost/?ddownload=1

    Active Theme: Bones (Rename Me!) 1.3

    Active Plugins:

    Delightful Downloads 1.3.2
    Duplicate Widget 1.0.2
    Link Library 5.8.0.8
    Markdown 1.0.2
    Post Snippets 2.3.2
    Restrict Widgets 1.2.2
    WordPress Importer 0.6.1

    ## Delightful Downloads Information ##

    Version: 1.3.2
    Prior Version:`

    http://wordpress.org/plugins/delightful-downloads/

  2. A5hleyRich
    Member
    Plugin Author

    Posted 7 months ago #

    Thanks for reporting the issue. I'll look into it.

    Ashley

  3. A5hleyRich
    Member
    Plugin Author

    Posted 4 months ago #

    Fixed in version 1.3.7.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.