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() [function.is-readable]: open_basedir restriction in effect. File(C:\Inetpub\vhosts\wptest.whost.com.au\httpdocs/wp-content/plugins/C:\Inetpub\vhosts\wptest.whost.com.au\httpdocs\wp-content\plugins\option-tree/languages/option-tree-en_US.mo) is not within the allowed path(s): (C:\Inetpub\vhosts\wptest.whost.com.au\httpdocs;C:\Windows\Temp) in C:\Inetpub\vhosts\wptest.whost.com.au\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 option-tree-en_US.mo’ is closed to new replies.