The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. ahoyhere
    Posted 2 years 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).


    ### 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
    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:`


  2. A5hleyRich
    Plugin Author

    Posted 2 years ago #

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


  3. A5hleyRich
    Plugin Author

    Posted 2 years ago #

    Fixed in version 1.3.7.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Delightful Downloads
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.