{"id":6780,"date":"2011-05-07T14:18:53","date_gmt":"2011-05-07T13:18:53","guid":{"rendered":"https:\/\/pl.wordpress.org\/support\/topic\/bledy-po-przeniesieniu-na-inny-serwer\/"},"modified":"2016-08-05T21:43:48","modified_gmt":"2016-08-05T21:43:48","slug":"bledy-po-przeniesieniu-na-inny-serwer","status":"closed","type":"topic","link":"https:\/\/pl.wordpress.org\/support\/topic\/bledy-po-przeniesieniu-na-inny-serwer\/","title":{"rendered":"B\u0142\u0119dy po przeniesieniu na inny serwer"},"content":{"rendered":"<p>Po przeniesieniu strony na WordPressie na inny serwer pojawi\u0142 si\u0119 b\u0142\u0105d w samym Worpressie 2.7.1 albo w jego wtyczce contact-form-7.2.0.1.<\/p>\n<pre><code>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\n\nWarning: 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\n\nWarning: 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<\/code><\/pre>\n<p>My\u015bla\u0142em, \u017ce to jest co\u015b zwi\u0105zane z parametrem ABSPATH definiowanym w pliku wp-config.php. <\/p>\n<p>By\u0142o tam: <\/p>\n<p><code>define(&#039;ABSPATH&#039;, &#039;\/var\/www\/virtual\/custompress.pl\/htdocs\/&#039;);<\/code><\/p>\n<p>Zmieni\u0142em to na: <\/p>\n<pre><code>define(&#039;ABSPATH&#039;, dirname(__FILE__).&#039;\/&#039;);\nrequire_once(ABSPATH.&#039;wp-settings.php&#039;);<\/code><\/pre>\n<p>Ale nic to nie da\u0142o. <\/p>\n<p>Prosz\u0119 o pomoc. Jestem zielony i nie wiem co w\u0142a\u015bciwie jest zepsute i jak to naprawi\u0107. Podejrzewam, \u017ce gdzie\u015b jest podana b\u0142\u0119dna \u015bcie\u017cka do plik\u00f3w WordPressa albo katalogi maj\u0105 zbyt restrykcyjne uprawnienia dost\u0119pu. Pytanie, gdzie zmieni\u0107 t\u0105 \u015bcie\u017ck\u0119 i o kt\u00f3re pliki\/katalogi mo\u017ce chodzi\u0107?<\/p>\n","protected":false},"template":"","class_list":["post-6780","topic","type-topic","status-closed","hentry","topic-tag-bledy","topic-tag-contact-form-7","topic-tag-zmiana-serwera"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pl.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pl.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/pl.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/pl.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6780\/revisions"}],"wp:attachment":[{"href":"https:\/\/pl.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}