tp5 類型錯誤: Argument 1 passed to think\response\Html::__construct() must be an instance of think\Cookie, string given, called in F:\www\dapp\thinkphp\library\think\Response.php on line 74


類型錯誤: Argument 1 passed to think\response\Html::__construct() must be an instance of think\Cookie, string given, called in F:\www\dapp\thinkphp\library\think\Response.php on line 74

 如圖:

 

 

 

解決辦法:

找到並打開:thinkphp\library\think\Response.php 文件

找到:創建Response對象

 

 在class_exists($class) 后面加上 && is_array($data)  即可

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM