Warning: Use of undefined constant DEFAULT_CATEGORIES - assumed 'DEFAULT_CATEGORIES' (this will throw an Error in a future version of PHP) in D:\core_2\includes\modules\content\help_info.php on line 60

Warning: Use of undefined constant DEFAULT_CATEGORIES - assumed 'DEFAULT_CATEGORIES' (this will throw an Error in a future version of PHP) in D:\core_2\includes\modules\content\help_info.php on line 60

Warning: Use of undefined constant TEXT_FACEBOOK - assumed 'TEXT_FACEBOOK' (this will throw an Error in a future version of PHP) in D:\core_2\includes\modules\content\help_info.php on line 60
網頁開發,架站 : Warning: Cannot modify header information – headers already sent by -
安東尼之家-logo

Warning: Cannot modify header information – headers already sent by

  • (812)
  • 2015-08-16 11:31:57
  • 2015-08-16 11:32:02

只要調整一下php.ini內的設定值就可以正常了,換句話說,就是系統本身有個設定值預設是未開啟,只要我們將他開啟就可以了。所以找到系統設定檔「php.ini」,建議使用「Notepad++」開啟,找到「output_buffering」並將他後面的值設定為「On」(啟動),當然也可以設定成「4096」或更高的數值(設定緩衝區大小),然後儲存並重新啟動Apache就可以了。

如果你是使用虛擬主機而遇到這樣的問題,建議可以先詢問主機商是否可以啟動這項函數?或者是說看可否透過.htaccess來調整這項設定數值(有些虛擬主機可以這樣調整)。另外,官方有另外一種是透過PHP函式「ob_start()」來解決,就是加在出問題的檔案語法前面,在結束的地方加上「ob_end_flush()」就可以了。您可以參考「剖析PHP中的輸出緩衝」這篇文章,裡面算講的蠻詳細的。

 

有相同問題的朋友

可以試著
開啟includes/buynow/buynow.js
找出234行
buynowClass.updateShoppingCartView();
更改成
//buynowClass.updateShoppingCartView();
將其註解掉
試試能否改善

總共 1 / 1 筆 在此分類