Błędy po przeniesieniu na inny serwer
-
Po przeniesieniu strony na WordPressie na inny serwer pojawił się błąd w samym Worpressie 2.7.1 albo w jego wtyczce contact-form-7.2.0.1.
Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/virtual/custompress.pl/:/usr/share/php/:/tmp/) in /var/www/virtual/custompress.pl/htdocs/wp-includes/functions.php on line 1746 Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/virtual/custompress.pl/:/usr/share/php/:/tmp/) in /var/www/virtual/custompress.pl/htdocs/wp-includes/functions.php on line 1737 Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/virtual/custompress.pl/:/usr/share/php/:/tmp/) in /var/www/virtual/custompress.pl/htdocs/wp-includes/functions.php on line 1746
Myślałem, że to jest coś związane z parametrem ABSPATH definiowanym w pliku wp-config.php.
Było tam:
define('ABSPATH', '/var/www/virtual/custompress.pl/htdocs/');
Zmieniłem to na:
define('ABSPATH', dirname(__FILE__).'/'); require_once(ABSPATH.'wp-settings.php');
Ale nic to nie dało.
Proszę o pomoc. Jestem zielony i nie wiem co właściwie jest zepsute i jak to naprawić. Podejrzewam, że gdzieś jest podana błędna ścieżka do plików WordPressa albo katalogi mają zbyt restrykcyjne uprawnienia dostępu. Pytanie, gdzie zmienić tą ścieżkę i o które pliki/katalogi może chodzić?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- Temat ‘Błędy po przeniesieniu na inny serwer’ jest zamknięty na nowe odpowiedzi.