堆栈跟踪中require_once()路径中的奇怪字符

时间:2012-03-09 23:18:22

标签: php

我刚刚从live下载了一个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

来自本地和服务器机器的$ _Server和$ _ENV的var转储:
服务器

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)
}

1 个答案:

答案 0 :(得分:2)

看看:

  • /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标准发行版的文件,因此我认为它可能与您到达的即将到来的页面插件有关。