In MediaWiki 1.24 this error occurs at several places (e.g. after uploading an image, but also at a number of other occasions):
Warning: is_executable(): open_basedir restriction in effect. File(/bin/bash) is not within the allowed path(s): (list of the paths...) in /includes/GlobalFunctions.php on line 2809
The code is this:
function wfShellExec( $cmd, &$retval = null, $environ = array(),
...
if ( is_executable( '/bin/bash' ) ) {
.../bin/bash in fact is not in the allowed paths. However, wfShellExec() will work anyway! If the bash is not usable (like in my case), it is working as well (e.g. images are uploaded correctly, thumbnails are created correctly and so on). In this case - apart from the warning - the function is working as well. All this is_executable()-line in its current form is there for seems to be to create this warning...
I see two possible solutions:
- Change this check to something else, which does not throw a warning.
- Or (if that is not possible) at least suppress the error with something like @is_executable().
I prefer the first one, but I do not have the code for that right now. If necessary I can also live with the second one.