ubuntu discuz 该函数需要 PHP 支持 XML。请联系空间商,确定开启了此项功能 apt-get install php-xml apt-get install php-xml-parser