Я просто загрузил один из моих сайтов wordpress из живого, чтобы настроить локально. теперь, когда я иду на домашнюю страницу, я вижу странных персонажей,
Warning: require_once(framework/framework.php): failed to open stream: No such file or directory in òœ/www/humar/wp-content/plugins/custom-coming-soon-page/index.php on line 20 Call Stack: 0.0000 314816 1. {main}() /var/www/humar/wp-admin/index.php:0 0.0002 324296 2. require_once('çßœ/www/humar/wp-admin/admin.php') /var/www/humar/wp-admin/index.php:10 0.0003 324584 3. require_once('ƒ„œ/www/humar/wp-load.php') cØœÀçi:30 0.0005 325156 4. require_once('W‡œ/www/humar/wp-config.php') :30 0.0006 326684 5. require_once('œ/www/humar/wp-settings.php') W‡œ/www/humar/wp-config.php:90 0.0304 2295464 6. include_once('òœ/www/humar/wp-content/plugins/custom-coming-soon-page/index.php') EÝ:190 Fatal error: require_once(): Failed opening required 'framework/framework.php' (include_path='.:/usr/share/php:/usr/share/pear:/usr/share/ZF/library:/usr/share/ZF/extras/library') in òœ/www/humar/wp-content/plugins/custom-coming-soon-page/index.php on line 20 Call Stack: 0.0000 314816 1. {main}() /var/www/humar/wp-admin/index.php:0 0.0002 324296 2. require_once('çßœ/www/humar/wp-admin/admin.php') /var/www/humar/wp-admin/index.php:10 0.0003 324584 3. require_once('ƒ„œ/www/humar/wp-load.php') cØœÀçi:30 0.0005 325156 4. require_once('W‡œ/www/humar/wp-config.php') :30 0.0006 326684 5. require_once('œ/www/humar/wp-settings.php') W‡œ/www/humar/wp-config.php:90 0.0304 2295464 6. include_once('òœ/www/humar/wp-content/plugins/custom-coming-soon-page/index.php') EÝ:190
var dump моего $ _Server и $ _ENV с локальной и серверной машины:
сервер
array(26) { ["DOCUMENT_ROOT"]=> string(26) "/home/mysite1/public_html" ["GATEWAY_INTERFACE"]=> string(7) "CGI/1.1" ["HTTP_ACCEPT"]=> string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" ["HTTP_ACCEPT_ENCODING"]=> string(13) "gzip, deflate" ["HTTP_ACCEPT_LANGUAGE"]=> string(14) "en-us,en;q=0.5" ["HTTP_CONNECTION"]=> string(10) "keep-alive" ["HTTP_COOKIE"]=> string(245) "" ["HTTP_HOST"]=> string(15) "mysite.com" ["HTTP_USER_AGENT"]=> string(74) "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:10.0) Gecko/20100101 Firefox/10.0" ["PATH"]=> string(13) "/bin:/usr/bin" ["QUERY_STRING"]=> string(0) "" ["REDIRECT_STATUS"]=> string(3) "200" ["REMOTE_ADDR"]=> string(14) "120.211.169.138" ["REMOTE_PORT"]=> string(5) "43397" ["REQUEST_METHOD"]=> string(3) "GET" ["REQUEST_URI"]=> string(8) "/env.php" ["SCRIPT_FILENAME"]=> string(34) "/home/mysite1/public_html/env.php" ["SCRIPT_NAME"]=> string(8) "/env.php" ["SERVER_ADDR"]=> string(13) "" ["SERVER_ADMIN"]=> string(25) "webmaster@mysite.com" ["SERVER_NAME"]=> string(15) "mysite.com" ["SERVER_PORT"]=> string(2) "80" ["SERVER_PROTOCOL"]=> string(8) "HTTP/1.1" ["SERVER_SIGNATURE"]=> string(0) "" ["SERVER_SOFTWARE"]=> string(6) "Apache" ["UNIQUE_ID"]=> string(24) "T14tb63sWlIAADSScZQAAAAO" }
$ _SERVER
array(30) { ["DOCUMENT_ROOT"]=> string(26) "/home/mysite1/public_html" ["GATEWAY_INTERFACE"]=> string(7) "CGI/1.1" ["HTTP_ACCEPT"]=> string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" ["HTTP_ACCEPT_ENCODING"]=> string(13) "gzip, deflate" ["HTTP_ACCEPT_LANGUAGE"]=> string(14) "en-us,en;q=0.5" ["HTTP_CONNECTION"]=> string(10) "keep-alive" ["HTTP_COOKIE"]=> string(245) "" ["HTTP_HOST"]=> string(15) "mysite.com" ["HTTP_USER_AGENT"]=> string(74) "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:10.0) Gecko/20100101 Firefox/10.0" ["PATH"]=> string(13) "/bin:/usr/bin" ["QUERY_STRING"]=> string(0) "" ["REDIRECT_STATUS"]=> string(3) "200" ["REMOTE_ADDR"]=> string(14) "120.211.169.138" ["REMOTE_PORT"]=> string(5) "43397" ["REQUEST_METHOD"]=> string(3) "GET" ["REQUEST_URI"]=> string(8) "/env.php" ["SCRIPT_FILENAME"]=> string(34) "/home/mysite1/public_html/env.php" ["SCRIPT_NAME"]=> string(8) "/env.php" ["SERVER_ADDR"]=> string(13) "" ["SERVER_ADMIN"]=> string(25) "webmaster@mysite.com" ["SERVER_NAME"]=> string(15) "mysite.com" ["SERVER_PORT"]=> string(2) "80" ["SERVER_PROTOCOL"]=> string(8) "HTTP/1.1" ["SERVER_SIGNATURE"]=> string(0) "" ["SERVER_SOFTWARE"]=> string(6) "Apache" ["UNIQUE_ID"]=> string(24) "T14tb63sWlIAADSScZQAAAAO" ["PHP_SELF"]=> string(8) "/env.php" ["REQUEST_TIME"]=> int(1331572079) ["argv"]=> array(0) { } ["argc"]=> int(0) }
Местный
$ _ENV
array(0) { }
$ _SERVER
array(26) { ["HTTP_HOST"]=> string(9) "localhost" ["HTTP_USER_AGENT"]=> string(74) "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:10.0) Gecko/20100101 Firefox/10.0" ["HTTP_ACCEPT"]=> string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" ["HTTP_ACCEPT_LANGUAGE"]=> string(14) "en-us,en;q=0.5" ["HTTP_ACCEPT_ENCODING"]=> string(13) "gzip, deflate" ["HTTP_CONNECTION"]=> string(10) "keep-alive" ["HTTP_CACHE_CONTROL"]=> string(9) "max-age=0" ["PATH"]=> string(28) "/usr/local/bin:/usr/bin:/bin" ["SERVER_SIGNATURE"]=> string(70) " Apache/2.2.14 (Ubuntu) Server at localhost Port 80 " ["SERVER_SOFTWARE"]=> string(22) "Apache/2.2.14 (Ubuntu)" ["SERVER_NAME"]=> string(9) "localhost" ["SERVER_ADDR"]=> string(9) "127.0.0.1" ["SERVER_PORT"]=> string(2) "80" ["REMOTE_ADDR"]=> string(9) "127.0.0.1" ["DOCUMENT_ROOT"]=> string(8) "/var/www" ["SERVER_ADMIN"]=> string(19) "webmaster@localhost" ["SCRIPT_FILENAME"]=> string(28) "/var/www/mysite/env.php" ["REMOTE_PORT"]=> string(5) "58712" ["GATEWAY_INTERFACE"]=> string(7) "CGI/1.1" ["SERVER_PROTOCOL"]=> string(8) "HTTP/1.1" ["REQUEST_METHOD"]=> string(3) "GET" ["QUERY_STRING"]=> string(0) "" ["REQUEST_URI"]=> string(16) "/mysite/env" ["SCRIPT_NAME"]=> string(20) "/mysite/env.php" ["PHP_SELF"]=> string(20) "/mysite/env.php" ["REQUEST_TIME"]=> int(1331572869) }
Взгляни на:
/var/www/humar/wp-admin/index.php
/var/www/humar/wp-admin/wp-config.php
/var/www/humar/wp-content/plugins/custom-coming-soon-page/index.php
чтобы увидеть, есть ли там какие-либо неожиданные персонажи.
framework/framework.php
не является файлом из стандартного дистрибутива WordPress, поэтому я предполагаю, что он может иметь отношение к настраиваемому плагину, который вы получили там.