close
Error: the XML response that was returned from the server is invalid.
Received:
You have whitespace in your response.
首先要檢查的是 <?php ....?> 的 <> 前後有沒有空白字元。包含"換行"、"tab"....等字元都算,
如果整支都是 php 程式的話 ?>一定要是檔尾的最後一個字元)
除了被執行的程式之外,include 或 require 的程式也要一併檢查。通常突然出現都是當下更新的程式,全都檢查一遍就可以了。
如果都檢查過沒問題,可以參考 xajax 官方討論(http://community.xajaxproject.org/viewtopic.php?id=1269)的方式
打開 php.ini 的output_buffering 再使用 ob_start 試看看。
自己檢查後確實是因為有多餘的空白出來,才導致錯誤,把空白移除後就好了。
全站熱搜