今天去Snapz Pro X的原廠網站,想要看看Snapz Pro X有沒有新的版本?結果卻看到這樣的畫面:
http://www.ambrosiasw.com/utilities/snapzprox/
« MODx Parse Error »
| MODx encountered the following error while attempting to parse the requested resource: | |||
| « PHP Parse Error » | |||
| PHP error debug | |||
| Error: | Invalid argument supplied for foreach() | ||
| Error type/ Nr.: | Warning - 2 | ||
| File: | /Volumes/webserver/modx/manager/includes/document.parser.class.inc.php | ||
| Line: | 1216 | ||
| Line 1216 source: | foreach ($this->documentMap as $mapEntry) { | ||
| Parser timing | |||
| MySQL: | 0.0035 s | (28 Requests) | |
| PHP: | 0.0159 s | ||
| Total: | 0.0194 s | ||

我不知道這是出了什麼樣的問題。從關鍵字MODx Parse Error以及出錯的PHP檔案名稱modx/manager/includes/document.parser.class.inc.php,在Google搜尋一下,猜想這個網站應該是有安裝MODx網站提供的某個PHP程式模組。
無論如何,網站上不管是使用什麼樣的CMS(內容管理系統)來架設網站,還是安裝什麼樣的模組,都絕對不能顯示PHP error debug的除錯訊息!因為顯示這種訊息,對於一般user根本毫無幫助!不但看不到正常的網頁畫面,或是錯誤訊息的網頁畫面,還會看到原來該網站有安裝什麼樣的檔案,以及檔案的路徑是在webserver磁碟機上!
