Joomla搜尋出現methods.php on line 138的錯誤

  Joomla預設的搜尋啟用後,可能會在搜尋結果出現「Warning: sprintf() [function.sprintf]: Too few arguments in /home/fulubus/public_html/libraries/joomla/methods.php on line 138」的錯誤訊息,雖然不會影響結果,但頗為礙眼。

  Joomla論壇上有網友提供解決方法,打開joomla目錄下的/language/zh-TW/zh-TW.com_search.ini,搜尋「TOTALRESULTSFOUND=」字串,等號後方會是「總共找到 %s 筆紀錄. 搜尋 <b>%s</b> 使用」,這邊要把其中一個%s拿掉,我是只保留「總共找到 %s 筆紀錄」,如此便不會再出現警告訊息。

 


【相關連結】

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.