Úvodní stránka › Fórum podpory WordPressu › Problémy s WordPressem › Chyba Warning: file_exists(): open_basedir restriction in effect.
Štítky: chyba, převod webu
Zvolené téma obsahuje celkem 4 odpovědi. Do diskuze (2 účastníci) se naposledy zapojil uživatel Komplexni-Luke a poslední změna je stará 6 let, 2 měsíce.
-
AutorPříspěvky
-
11. dubna 2017 (9:43) #32089
Zdravím,
rozumí prosím někdo této chybě a jak jí napravit? Chyba se objevuje při převodu celého webu (plugin Duplicator) na Wedos.
Warning: file_exists(): open_basedir restriction in effect. File(/data/web/virtuals/157276/virtual/www/domains/vyvoj.fotbalbazar.cz/wp-content/themes/businessfinder2/design/css/base.less) is not within the allowed path(s): (/data/web/virtuals/160988/virtual) in /data/web/virtuals/160988/virtual/www/subdom/test/wp-content/themes/businessfinder2/ait-theme/@framework/libs/AitLess.inc on line 1840 Warning: is_readable(): open_basedir restriction in effect. File(/data/web/virtuals/157276/virtual/www/domains/vyvoj.fotbalbazar.cz/wp-content/themes/businessfinder2/design/css/base.less) is not within the allowed path(s): (/data/web/virtuals/160988/virtual) in /data/web/virtuals/160988/virtual/www/subdom/test/wp-content/themes/businessfinder2/ait-theme/@framework/libs/AitLess.inc on line 1772 Warning: file_exists(): open_basedir restriction in effect. File(/data/web/virtuals/157276/virtual/www/domains/vyvoj.fotbalbazar.cz/wp-content/themes/businessfinder2/design/css/style.less) is not within the allowed path(s): (/data/web/virtuals/160988/virtual) in /data/web/virtuals/160988/virtual/www/subdom/test/wp-content/themes/businessfinder2/ait-theme/@framework/libs/AitLess.inc on line 1840 Warning: is_readable(): open_basedir restriction in effect. File(/data/web/virtuals/157276/virtual/www/domains/vyvoj.fotbalbazar.cz/wp-content/themes/businessfinder2/design/css/style.less) is not within the allowed path(s): (/data/web/virtuals/160988/virtual) in /data/web/virtuals/160988/virtual/www/subdom/test/wp-content/themes/businessfinder2/ait-theme/@framework/libs/AitLess.inc on line 1772 Warning: file_exists(): open_basedir restriction in effect. File(/data/web/virtuals/157276/virtual/www/domains/vyvoj.fotbalbazar.cz/wp-content/themes/businessfinder2/design/css/preloading.less) is not within the allowed path(s): (/data/web/virtuals/160988/virtual) in /data/web/virtuals/160988/virtual/www/subdom/test/wp-content/themes/businessfinder2/ait-theme/@framework/libs/AitLess.inc on line 1840
11. dubna 2017 (11:25) #32096Vypadá to, že na subdoméně
test
si chcete otevírat soubory z doményvyvoj.fotbalbazar.cz
?Co je v souboru
/data/web/virtuals/160988/virtual/www/subdom/test/wp-content/themes/businessfinder2/ait-theme/@framework/libs/AitLess.inc
na řádku 1840 (subdoménatest
)?11. dubna 2017 (20:54) #32112Díky za odpověď.
Ano, chci převést web ze subdomény vyvoj.fotbalbazar.cz na jinou subdoménu (která je součástí jiné domény).
Tohle jsou řádky 1830-1847
if (is_string($in)) {
$root = $in;
} elseif (is_array($in) and isset($in[‘root’])) {
if ($force or ! isset($in[‘files’])) {
// If we are forcing a recompile or if for some reason the
// structure does not contain any file information we should
// specify the root to trigger a rebuild.
$root = $in[‘root’];
} elseif (isset($in[‘files’]) and is_array($in[‘files’])) {
foreach ($in[‘files’] as $fname => $ftime ) {
if (!file_exists($fname) or filemtime($fname) > $ftime) {
// One of the files we knew about previously has changed
// so we should look at our incoming root again.
$root = $in[‘root’];
break;
}
}
}Tohle konkrétně pak řádek 1840:
if (!file_exists($fname) or filemtime($fname) > $ftime) {
A tohle je řádek 1772, který taky ukazuje chybu:
if (!is_readable($fname)) {
11. dubna 2017 (21:07) #32113Pro větší úplnost řádky 1772-1774:
if (!is_readable($fname)) {
throw new Exception(‘load error: failed to find ‘.$fname);
}12. dubna 2017 (8:08) #32122Zdravím,
tak už jsem to vyřešil. Jedná se o nějakou zvláštnost šablony. Aktivoval jsem jinou šablonu a poté tuto šablonu aktivoval znovu a chyba zmizela a celý web funguje v pořádku. Jedná se o šablonu BusinessFinder+ . Tak kdyby se s tím někdo setkal a potřeboval to vyřešit, tak to má aspoň tady už napsané :) .
Díky za toto fórum a za pomoc.
Ať se všem tady skvěle daří!
Luke
-
AutorPříspěvky
Pokud chcete odpovědět na toto téma, musíte se nejdříve přihlásit.