[0] ParseError 在Index.php 第10 行
語法錯誤,意外的':',期望',' 或')'
##at call_user_func_array( Middleware.php 第206 行中的[object(LoadLangPack), 'handle'], [object(Request), object(Closure), null]) 在Middleware->think\{closure}(object ( Request)) 在CheckRequestCache.php 第53 行at CheckRequestCache->handle(object(Request), object(Closure), null)at call_user_func_array([object(CheckRequestCache), ' middleware.php 第 206 行中的 [object(Request), object(Closure), null])at Middleware->think\{closure}(object(Request))在Middleware.php 第150 行的call_user_func(object(Closure), object(Request)) 處
at Middleware->dispatch(object(Request)) in Route.php line 755
at Route->dispatch(object(Request), object(Closure)) in Http.php line 187
http.php 第139 行中的Http->runWithRequest(object(Request))
index.php 第20 行中的Http->run()
環境變量
GET Data
/index/index
#POST Dataempty
Filesempty
Cookies
PHPSESSID a334386e8ff32d2936321947462947469
#pgv_pvi 4820957184 pgv_si s5068664832 thinkphp_show_page_trace 收到PATH C: \Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C: \WINDOWS \System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) 管理引擎元件\DAL;C:\Program Files\Intel\Intel(R) 管理引擎元件\DAL ;C :\Program Files (x86)\Intel\Intel(R) 管理引擎元件\IPT;C:\Program Files\Intel\Intel(R) 管理引擎元件\IPT;C:\Program Files\Intel\WiFi\ bin\ ;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\WINDOWS\System32\OpenSSH\;C:\Users\gznet\AppData\Local\Microsoft\WindowsApps ##SYSTEMROOT C: \WINDOWS
COMSPEC C:\WINDOWS\system32\cmd.exe
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS.JSE.EXE;. .WSF;.WSH;.MSC
WINDIR C:\WINDOWS
PHP_FCGI_MAX_REQUESTS 1000 10001/>php-> /
_FCGI_SHUTDOWN_EVENT_ 2240
SCRIPT_NAME /index.php
REQUEST_URI
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_QUERY_STRING /
REMOTE_PORT 50480
SCRIPT_FILENAME D:/myphp_www/PHPTutorial/WWW/tp6/public/index.php
#SERVER_ADMIN admin@tp6/public/index.php
SERVER_ADMIN admin@php. /tp6/public
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT D:/myphp_www/PHPTut##DOCUMENT_ROOT D:/myphp_www/PHPTutc/DOCUMENT_ROOT / 0.0.1
SERVER_PORT 80
SERVER_ADDR 127.0.0.1
#SERVER_NAME tp6.io
SERVER_SOFTWARE Apache/2.4.23 (Win32) OpenSSL/1.0.2j_mod_fcgid/2.3.9 #> \WINDOWS
HTTP_COOKIE PHPSESSID=a334386e8fff32d2936329a874461407; pgv_pvi=4820957184; pgv_si=s5068664832; thinkphp_show_page_trace=0|0
HTTP_ACCEPT_LANGUAGE zh-CN,zh;q=0.9
HTTP_ACCEPT_ENCODING 系統xhtml xml,application/xml ;q=0.9,image/webp,image/apng,*/*;q=0.8
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.364; 72.0.3626.121 Safari/537.36
HTTP_UPGRADE_INSECURE_REQUESTS 1
HTTP_CACHE_CONTROL
HTTP_HOST tp6.io REDIRECT_STATUS 200 FCGI_ROLE RESPONDER PHP_SELF /index.php##PHP_SELF /index.php
##REREP_SELF REQUEST_TIME 1558856696 環境變數空白# #ThinkPHP ConstantsemptyThinkPHP V6.0.0RC1 { 十年磨一劍-為API開發設計的性能框架}致命錯誤:未捕獲錯誤:調用成員函數save() 在D:\myphp_www\PHPTutorial\WWW\tp6\vendor\topthink\framework\src\think\Response.php:156 中為null 堆疊追蹤:#0 D:\myphp_www\PHPTutorial\WWW\tp6\ven \ topthink\framework\src\think\initializer\Error.php(55): think\Response->send() #1 [內部函數]: think\initializer\Error->appException(Object(Error)) #2 { main} 在D:\myphp_www\PHPTutorial\WWW\tp6\vendor\topthink\framework\src\think\Response.php 中拋出,位於第156 行
致命錯誤:未捕獲錯誤:呼叫成員函數save( )在D:\myphp_www\PHPTutorial\WWW\tp6\vendor\topthink\framework\src\think\Response.php:156 中為null 堆疊追蹤:#0 D:\myphp_www\PHPTutorial\WWW\tp6\WWW\tp6\ vendor\topthink\ Framework\src\think\initializer\Error.php(55): think\Response->send() #1 D:\myphp_www\PHPTutorial\WWW\tp6\vendor\topthink\framework\src\PHPTutorial\WWW\tp6\vendor\topthink\framework\src\think\ initializer\Error .php(88): think\initializer\Error->appException(Object(think\exception\ErrorException)) #2 [內部函數]: think\initializer\Error->appShutdown() #3 {main} 拋出D:\myphp_www\PHPTutorial\WWW\tp6\vendor\topthink\framework\src\think\Response.php on line 156
#
dump(Db::query('SELECT * FROM `user`'));這樣就可以了,教程上的版本太老了
有字元寫錯,認真檢查下程式碼