Support » Plugin: OptionTree » OpenTree Path Issue on IIS – open_basedir restriction

  • Hello,

    This is 1/2 a support request and 1/2 to help others out who may be having the same issue…

    I have a basic WordPress test install here:

    As soon as I enable the Open-Tree plugin it has an error as you can see when you visit the page…
    Warning: is_readable() []: open_basedir restriction in effect. File(C:\Inetpub\vhosts\\httpdocs/wp-content/plugins/C:\Inetpub\vhosts\\httpdocs\wp-content\plugins\option-tree/languages/ is not within the allowed path(s): (C:\Inetpub\vhosts\\httpdocs;C:\Windows\Temp) in C:\Inetpub\vhosts\\httpdocs\wp-includes\l10n.php on line 339

    I’ve been working through this with my host and it appears that what is happening is:
    1. No language is defined so it defaults to en_US as expected
    2. The plugin looks for the existance of the en_US language file as expected.
    3. The language file isn’t found, so it doesn’t apply any translation as expected.

    the error happens because the path has two references to C:\ and also has a mixture of \ and /. This appears to fail when IIS tries to resolve the path. And hence it thinks it’s outside the open_basedir allowed path(s).

    This is part speculation so please correct me if I’m wrong in any of the assumptions above.

    Does anyone know if there is a way to get OpenTree (or WordPress plugins in general) to build the path correctly?


  • The topic ‘OpenTree Path Issue on IIS – open_basedir restriction’ is closed to new replies.