解決方法:
1、找到報錯的位置然後看哪個變量是沒有初始化而直接使用的,將這個變量先實例化一個空類。如:
創建內stdClass類的實例,比如$g_attachments->enabled = TRUE;這一句報容這個warning,可以在前面加一句$g_attachments = new stdClass();
$ct = new stdClass();
2、PHP版本問題:
降低版本:環境若是php是5.4版本,可以試一下降爲5.3或更低.