[Resolved] jQueryFileTree.php Undefined variable: root
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: rooterror 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
Max Upload Size: 32.0 MB
Active Theme: Bones (Rename Me!) 1.3
Delightful Downloads 1.3.2
Duplicate Widget 1.0.2
Link Library 220.127.116.11
Post Snippets 2.3.2
Restrict Widgets 1.2.2
WordPress Importer 0.6.1
## Delightful Downloads Information ##
- The topic ‘[Resolved] jQueryFileTree.php Undefined variable: root’ is closed to new replies.