Hi
While installing the TinMMW Wiki component on Joomla 1.0.14, I got the error outlined in the subject. The full text read:
warning: shell_exec() has been disabled for security reasons in /path/to/components/com_tinmw/config/index.php on line 1721.
The function in which this lin false is as follows:
Line 721 has been highlighted to demonstrate the offending bit of code. Any, I commented out lines 721 and 722 and the installation went ahead. However, I am not too certain about its stability as a result.
This type of error is "usually" associated with the PHP safe_mode directive being off. However my PHP version is intermediate and if I recall, safe_mode is supposed to be turned off.
Strangely enough, a few weeks ago, I installed the Mambo_Wiki component which contains a quite similar function and that setup was completed without any problems. Its a much older MediWiki version and I was having some issues so I uninstalled it.
Have some PHP settings been changed lately on the free hosting server here lately?
If anyone has a solution to this problem, I would be quite happy for one.
Cheers.
While installing the TinMMW Wiki component on Joomla 1.0.14, I got the error outlined in the subject. The full text read:
warning: shell_exec() has been disabled for security reasons in /path/to/components/com_tinmw/config/index.php on line 1721.
The function in which this lin false is as follows:
Code:
# @param mixed $versioninfo array of details to use when checking version, use false for no version checking
function locate_executable($loc, $names, $versioninfo = false) {
if (!is_array($names))
$names = array($names);
foreach ($names as $name) {
$command = "$loc".DIRECTORY_SEPARATOR."$name";
if (file_exists($command)) {
if (!$versioninfo)
return $command;
[B]line 1720 [/B] $file = str_replace('$1', $command, $versioninfo[0]);
[COLOR=Red][B]line 1721 [/B][/COLOR] if (strstr(`$file`, $versioninfo[1]) !== false)
[B]line 1722 [/B] return $command;
}
}
return false;
}
Line 721 has been highlighted to demonstrate the offending bit of code. Any, I commented out lines 721 and 722 and the installation went ahead. However, I am not too certain about its stability as a result.
This type of error is "usually" associated with the PHP safe_mode directive being off. However my PHP version is intermediate and if I recall, safe_mode is supposed to be turned off.
Strangely enough, a few weeks ago, I installed the Mambo_Wiki component which contains a quite similar function and that setup was completed without any problems. Its a much older MediWiki version and I was having some issues so I uninstalled it.
Have some PHP settings been changed lately on the free hosting server here lately?
If anyone has a solution to this problem, I would be quite happy for one.
Cheers.
Last edited: