Use of undefined constant ture - assumed 'ture' (this will throw an Error in a future version of PHP)如何解決


  今天在安裝一個wordpress模板時提示Use of undefined constant ture - assumed 'ture' (this will throw an Error in a future version of PHP),看提示是需要把true用''包起來,ytkah就試着把

array(
'default' => ture,
),

  改成

array(
'default' => 'ture',
),

  問題解決

  安裝模板的時候有提示php需要7.4版本,但實際使用是7.3,這個應該是php不同版本的使用方法不用引起的,有遇到相似問題的朋友可以試試


免責聲明!

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



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