Wsparcie » Używanie i konfiguracja WordPressa » Błąd open_basedir restriction

  • Witam. Moja strona generuje taki błąd i hosting mi ją zablokował. Jak go naprawić?
    Kod błędu:

    stderr: PHP Warning:  is_dir() [<a
    href='function.is-dir'>function.is-dir</a>]: open_basedir restriction in
    effect. File(/) is not within the allowed path(s):
    (/home/proartlk/:/tmp:/usr/local/lib/php/:/usr/sbin/:/usr/bin/:/usr/local/bin/:/usr/local/sbin/:/bin/:/sbin/)
    in
    /home/proartlk/domains/zespolprogres.pl/public_html/wp-includes/functions.php
    on line 1497

    Linia 1497:

    // We need to find the permissions of the parent folder that exists and inherit that.
    	$target_parent = dirname( $target );
    	while ( '.' != $target_parent && ! is_dir( $target_parent ) ) {
    		$target_parent = dirname( $target_parent );
    	}

Viewing 1 replies (of 1 total)
  • To nie jest błąd hostingu. Odpytujesz o katalog „/” czyli o coś co leży poza document rootem. Oczywiste jest to, że nie wolno tego przeczytać. Błędem jest natomiast to, że widzisz komunikat błędu, tego na serwerze produkcyjnym być nie powinno.

    Rozwiązanie: popraw kod i nie zapuszczaj się poza katalog główny WP.

    Marcin

Viewing 1 replies (of 1 total)
  • Temat ‘Błąd open_basedir restriction’ jest zamknięty na nowe odpowiedzi.