
Zitat von
Mogwai
Ich habe diesen Fehler auch - seit der Version 1.5.6
Einzige Lösung, die bei mir zum Erfolg führt ist
diese hier. Die Ordnerrechte sind auf 755 und Dateien auf 644 und dennoch geht es bei mir nicht anders.
Ich habe also am Server eine "adaptierte" folder.php. Will ich was installieren, benenne ich die originale folder.php um und meine adaptierte wird zur folder.php. Sofort nach der Installation wird wieder alles rückgängig gemacht.
Alle anderen Lösungsversuche scheiterten.
Ich habe die Modifikation der folder.php abgeändert
und die Reaktion VIRTUAL_DOCUMENT_ROOT eingebaut. (funktioniert für funpic)
PHP-Code:
// If open_basedir is set we need to get the open_basedir that the path is in
if ($obd != null)
{
if (JPATH_ISWIN) {
$obdSeparator = ";";
} else {
$obdSeparator = ":";
}
// Create the array of open_basedir paths
$obdArray = explode($obdSeparator, $obd);
$inOBD = false;
// Iterate through open_basedir paths looking for a match
if (($obd === "VIRTUAL_DOCUMENT_ROOT")) { // || !is_dir($obd)) {
if (strpos($path, $_SERVER["DOCUMENT_ROOT"]) === 0) {
$obdpath = $_SERVER["DOCUMENT_ROOT"];
$inOBD = true;
}
}else{
foreach ($obdArray as $test) {
$test = JPath::clean($test);
if (strpos($path, $test) === 0) {
$obdpath = $test;
$inOBD = true;
break;
}
}
}
if ($inOBD == false) {
// Return false for JFolder::create because the path to be created is not in open_basedir
JError::raiseWarning('SOME_ERROR_CODE', 'JFolder::create: '.JText::_('Path not in open_basedir paths'));
return false;
}
}
//Edit: In diesem Fall wird das warscheinlich nichts bringen, da die Fehlermeldung eine andere ist. Schau dir mal den Pfad an, wenn du die folgende Zeile in folder.php änderst:
PHP-Code:
JError::raiseWarning('SOME_ERROR_CODE', 'JFolder::create: '.JText::_('Could not create directory'), 'Path: '.$path);
in
PHP-Code:
JError::raiseWarning('SOME_ERROR_CODE', 'JFolder::create: '.JText::_('Could not create directory') . 'Path: '.$path, 'Path: '.$path);
möglicherweise stimmt der nicht
und dann kontrolliere alle Schreibrechte.
Lesezeichen