Chyba Warning: file_exists(): open_basedir restriction in effect.

Úvodní stránka Fórum podpory WordPressu Problémy s WordPressem Chyba Warning: file_exists(): open_basedir restriction in effect.

Štítky: ,

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á 7 let.

Aktuálně je na stránce zobrazeno 5 příspěvků - 1. až 5. (z celkem 5)
  • Autor
    Příspěvky
  • #32089

    Komplexni-Luke
    Participant

    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
    #32096

    admin
    Keymaster
    Web

    Vypadá to, že na subdoméně test si chcete otevírat soubory z domény vyvoj.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éna test)?

    #32112

    Komplexni-Luke
    Participant

    Dí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)) {

    #32113

    Komplexni-Luke
    Participant

    Pro větší úplnost řádky 1772-1774:

    if (!is_readable($fname)) {
    throw new Exception(‘load error: failed to find ‘.$fname);
    }

    #32122

    Komplexni-Luke
    Participant

    Zdraví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

Aktuálně je na stránce zobrazeno 5 příspěvků - 1. až 5. (z celkem 5)

Pokud chcete odpovědět na toto téma, musíte se nejdříve přihlásit.

WordPress – novinky, návody a zajímavosti