ecshop 解決未定義常數(undefined constant)的方法
2012-01-19
444
相關文章
Notice: Use of undefined constant OS_SHIPPED_PART - assumed 'OS_SHIPPED_PART' in /home/weshop/public_html/languages/zh_tw/admin/order.php on line 29
Warning: Cannot modify header information - headers already sent by (output started at /home/weshop/public_html/languages/zh_tw/admin/order.php:29) in /home/weshop/public_html/includes/cls_template.php on line 58
Warning:.....
.....
後面的錯誤很多
我們只看第一個錯誤題示(通常這是元凶)
大致的意思是:使用了未定義的常數(OS_SHIPPED_PART)
解決方法是:
用文字編輯器打開 includes/inc_constant.php
定義這個常數即可!
點擊圖片可以放大檢視

Warning: Cannot modify header information - headers already sent by (output started at /home/weshop/public_html/languages/zh_tw/admin/order.php:29) in /home/weshop/public_html/includes/cls_template.php on line 58
Warning:.....
.....
後面的錯誤很多
我們只看第一個錯誤題示(通常這是元凶)
大致的意思是:使用了未定義的常數(OS_SHIPPED_PART)
解決方法是:
用文字編輯器打開 includes/inc_constant.php
定義這個常數即可!
點擊圖片可以放大檢視

在PHP7.3裡若是字串沒有加引號,也會被當作是未定義的常數
如果你對ecshop 解決未定義常數(undefined constant)的方法有任何問題請到討論區發帖。