三月 23

在VirtueMart 1.1.3 中,如果修改運送者為中文名稱時,會出現下面錯誤

Warning: Missing argument 2 for vmGet(), called in /var/www/vhosts/all4everyone.de/httpdocs/administrator/components/com_virtuemart/classes/ps_shipping.php on line 113 and defined in /var/www/vhosts/all4everyone.de/httpdocs/administrator/components/com_virtuemart/classes/request.class.php on line 26

解決方法如下

開啟 administrator/components/com_virtuemart/classes/ps_shipping.php

把 113 與 138 這2行中的程式碼
($fields = array( ‘shipping_carrier_name’ => vmGet($d[“shipping_carrier_name”]),)

取代為
$fields = array( ‘shipping_carrier_name’ => vmGet($d, ‘shipping_carrier_name’),

然後存檔,收工

參考資料:
http://forum.virtuemart.net/index.php?action=printpage;topic=50772.0

留下評論

限制時效已用盡。請重新載入驗證碼。