我已經調整了一個modx網站的進化版本到另一個域,但在另一個域做了配置更改後,其經理正在工作,但主網站意味着前視圖不工作,並給我錯誤。在試圖解析請求的資源在modx進化中得到mysqli錯誤
«鏌鋣解析錯誤» 鏌鋣遇到了以下錯誤: «PHP解析錯誤»
PHP錯誤調試
Error: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead
Error type/ Nr.: - 8192
File: C:\xampp\htdocs\mpelimited\manager\includes\extenders\dbapi.mysql.class.inc.php
Line: 93
Line 93 source: else $this->conn = mysql_connect($host, $uid, $pwd, true);
Parser timing
MySQL: 0.0000 s (0 Requests)
PHP: 0.0250 s
Total: 0.0250 s
下面是截圖 http://prntscr.com/a7udni
我如何解決這個問題在MODx版本1.0.5
請幫我解決這個問題。
解決此通過不使用'mysql_connect' 。你讀過錯誤了嗎?該方法[甚至不存在於PHP 7中](http://php.net/manual/en/function.mysql-query.php)。在那裏回答:「使用mysqli或PDO」。如果這是MODx的限制,則可能需要更新版本。 – tadman
我認爲錯誤信息告訴你如何解決這個問題。看到這個:http://stackoverflow.com/questions/13944956/the-mysql-extension-is-deprecated-and-will-be-removed-in-the-future-use-mysqli – PaulF
如何更新modx而不會丟失任何數據 – dipanshu