• Resolved [email protected]

    (@dan_greenncsuedu)


    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:
    https://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)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: OptionTree] openbase_dir incompatible’ is closed to new replies.