2016-02-25 81 views
0

我已經調整了一個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

請幫我解決這個問題。

+0

解決此通過不使用'mysql_connect' 。你讀過錯誤了嗎?該方法[甚至不存在於PHP 7中](http://php.net/manual/en/function.mysql-query.php)。在那裏回答:「使用mysqli或PDO」。如果這是MODx的限制,則可能需要更新版本。 – tadman

+0

我認爲錯誤信息告訴你如何解決這個問題。看到這個:http://stackoverflow.com/questions/13944956/the-mysql-extension-is-deprecated-and-will-be-removed-in-the-future-use-mysqli – PaulF

+0

如何更新modx而不會丟失任何數據 – dipanshu

回答

1

請更新鏌鋣演進1.0.15或即將到來的1.1.0

+0

我如何更新modx。它會影響我的網站以前的工作,塊,片段,正在工作的模塊 – dipanshu

+1

MODX Evolution文檔中有一個詳細的升級條目https://rtfm.modx.com/evolution/1.0/administration/upgrade – Jako