[64] ErrorException in common.php line 2

Namespace declaration statement has to be the very first statement in the script

  1. <?php
  2. namespace app\index\controller;
  3. use \think\Controller;
  4. use \think\Db;
  5. class Common extends Controller
  6. {
  7. //得到文章页的关联文章
  8. public function type_wenzhan($where,$id){
  9. return Db::name("tp3_artwenzhan")->alias("a")->join("tp3_fenlei b","a.typeid=b.id")->field("a.*,b.name")->where(array($where=>$id))->select();
  10. }
  11. public function type_wenzhanji($where,$id){

Call Stack

  1. in common.php line 2
  2. at Error::appShutdown()

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

DOCUMENT_ROOT
/usr/home/syu5254450001/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING
gzip
HTTP_CONNECTION
Keep-Alive
HTTP_HOST
www.sz-jlc.org
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
PATH
/bin:/usr/bin
PHPRC
/var/www/php55/hichina_ini/syu5254450001
QUERY_STRING
REDIRECT_STATUS
200
REMOTE_ADDR
54.92.160.119
REMOTE_PORT
47544
REQUEST_METHOD
GET
REQUEST_URI
/
SCRIPT_FILENAME
/usr/home/syu5254450001/htdocs/index.php
SCRIPT_NAME
/index.php
SERVER_ADDR
172.16.81.246
SERVER_ADMIN
webmaster@syu5254450001.my3w.com
SERVER_NAME
www.sz-jlc.org
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
UNIQUE_ID
W8VY8awQUfYAAH-3FK8AAAAQ
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1539660017.3737
REQUEST_TIME
1539660017
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/home/syu5254450001/htdocs/application/
SITE_URL
http://www.sz-jlc.org
Admin_SITE_URL
http://www.sz-jlc.org
THINK_VERSION
5.0.20
THINK_START_TIME
1539660017.3744
THINK_START_MEM
241736
EXT
.php
DS
/
THINK_PATH
/data/home/syu5254450001/htdocs/thinkphp/
LIB_PATH
/data/home/syu5254450001/htdocs/thinkphp/library/
CORE_PATH
/data/home/syu5254450001/htdocs/thinkphp/library/think/
TRAIT_PATH
/data/home/syu5254450001/htdocs/thinkphp/library/traits/
ROOT_PATH
/data/home/syu5254450001/htdocs/
EXTEND_PATH
/data/home/syu5254450001/htdocs/extend/
VENDOR_PATH
/data/home/syu5254450001/htdocs/vendor/
RUNTIME_PATH
/data/home/syu5254450001/htdocs/runtime/
LOG_PATH
/data/home/syu5254450001/htdocs/runtime/log/
CACHE_PATH
/data/home/syu5254450001/htdocs/runtime/cache/
TEMP_PATH
/data/home/syu5254450001/htdocs/runtime/temp/
CONF_PATH
/data/home/syu5254450001/htdocs/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false