Title: [Plugin: OptionTree] openbase_dir incompatible
Last modified: August 19, 2016

---

# [Plugin: OptionTree] openbase_dir incompatible

 *  Resolved [dan_green@ncsu.edu](https://wordpress.org/support/users/dan_greenncsuedu/)
 * (@dan_greenncsuedu)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-optiontree-openbase_dir-incompatible/)
 * For those of us using the security feature **openbase_dir**, the optiontree plugin
   will not function. It is not openbase_dir compliant.
 * **But it can be**. I hope that you’ll fix this in the next version. Here’s details
   on how you can do that (and how we did it for ourselves), starting with the updated
   code, and then an explantion below.
 * Starting around line 794 on class.admin.php:
    [http://pastebin.com/embed_js.php?i=kPbXhHce](http://pastebin.com/embed_js.php?i=kPbXhHce)
 * The issue with open_basedir is that we can’t read a file using file_get_contents
   that’s sitting in the tmp directory. I used the WordPress upload function (adding
   in allowance for XML files since I guess we had that turned off). It pushes the
   file to the upload directory, then reads that. The rest of the code was fine.

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

 *  Plugin Author [Derek Herman](https://wordpress.org/support/users/valendesigns/)
 * (@valendesigns)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-optiontree-openbase_dir-incompatible/#post-1952179)
 * I’ll include it in the next update.
 *  Thread Starter [dan_green@ncsu.edu](https://wordpress.org/support/users/dan_greenncsuedu/)
 * (@dan_greenncsuedu)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-optiontree-openbase_dir-incompatible/#post-1952191)
 * Thanks!
 *  Plugin Author [Derek Herman](https://wordpress.org/support/users/valendesigns/)
 * (@valendesigns)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-optiontree-openbase_dir-incompatible/#post-1952310)
 * This has been updated and will be available later today along with some theme
   integration stuff.

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

The topic ‘[Plugin: OptionTree] openbase_dir incompatible’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/option-tree_363534.svg)
 * [OptionTree](https://wordpress.org/plugins/option-tree/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/option-tree/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/option-tree/)
 * [Active Topics](https://wordpress.org/support/plugin/option-tree/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/option-tree/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/option-tree/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Derek Herman](https://wordpress.org/support/users/valendesigns/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-optiontree-openbase_dir-incompatible/#post-1952310)
 * Status: resolved