CMS Joomla
Pripadne chyby
při pokusu o instalaci nového doplňku se vrátí chybové hlášení:
- JFolder::create: Path not in open_basedir paths
- Unable to create destination
- JFolder::create: Path not in open_basedir paths
- JFolder::create: Path not in open_basedir paths
Oprava
1. na ftp jsem si otevřel cestu “libraries/joomla/filesystem”
2. stáhnul soubor “folder.php”.
3. otevřel jsem soubor folder.php v textovym editoru
4. přešel jsem na řádek 208 (Joomla 1.5)
Kde bylo:
// Iterate through open_basedir paths looking for a match
foreach ($obdArray as $test) {
$test = JPath::clean($test);
if (strpos($path, $test) === 0) {
$obdpath = $test;
$inBaseDir = true;
break;
}
}
if ($inBaseDir == 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')
nyní jsem přepsal následující:
if (strpos($path, $test) === 0) {jsem přepsal na:
if (strpos($path, $test) === 1) {
if ($inBaseDir == false) {jsem přepsal na:
if ($inBaseDir == true) {
6. soubor jsem uložil
7. a nahrál(přepsal stávající) opět zpátky do ”/libraries/joomla/filesystem”
instalace nové komponenty již proběhla úspěšně…
Dekujeme uzivateli White Rhinoceros
