2009年11月9日星期一

Fatal error: Call to undefined function mb_internal_encoding() in /dir/ administrator/components/com_k2/tables/k2category.php on line 46

試用k2 cck  extentsion 發現在增加categories的時候報 類似上述的錯誤, google,發現php編譯的時候少了一個參數 --enable-mbstring

我的腳本

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-gd=/usr/local/gd2 --with-freetype-dir=/usr/local/freetype --with-jpeg-dir=/usr/local/jpeg6 --with-zlib-dir=/usr/local/lib --with-png-dir=/usr/local/libpng2 --with-ttf --enable-soap --with-gd --enable-gd-native-ttf --enable-magic-quotes --enable-mbstring

重新編譯

漫長的等待后,再次測試,ok

没有评论:

发表评论