VTIGER CRM 5.4 出現大量Deprecated 訊息
在 GoDaddy 的hosting 上嘗試安裝 VTIGER CRM 5.4.0 ,由index page 開始出現大量有關語法Deprecated 的Error訊息,大至如下:
"Deprecated: Function session_unregister() is deprecated in /home/................./vtigercrm/modules/Users/Authenticate.php on line 71"
如果從上Google,會找到很多教你如何修改php.ini 的文章,普遍是加以下entries:
error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATEDdisplay_errors = Onlog_errors = Off
相信很多用家使用3rd Party 的web hosting都未必可以順利更新並成功測試 php.ini or php5.ini 的運作情況,雖然可以使用 phpinfo()
放下performance的考慮,我會先在 .htacccess 改動設定作測試,今次我在在 .htaccess 頂行加了:
AddHandler x-httpd-php5 .php
成功解決了眼前問題!
相關的功能和安全性詳細資料不在此討論了。