1. Skip to Menu
  2. Skip to Content
  3. Skip to Footer>

新增Virtuemart運送者時出現錯誤訊息

PDF 列印 E-mail

VirtueMart 1.1.3版本在新增運送者時會出現下列錯誤訊息:

Warning: Missing argument 2 for vmGet(), called in /home/joycat/public_html/shop/administrator/components/com_virtuemart/classes/ps_shipping.php on line 113 and defined in /home/joycat/public_html/shop/administrator/components/com_virtuemart/classes/request.class.php on line 26

那是因為ps_shipping.php檔案的程式碼出錯,將程式碼修改如下,即可正常運作。

  1. 編輯ps_shipping.php檔案
    檔案路徑:administrator/components/com_virtuemart/classes/ps_shipping.php
  2. 修改錯誤的程式碼:
    line 113 and 138 的程式碼:$fields = array( 'shipping_carrier_name' => vmGet($d["shipping_carrier_name"]),
    修改為:$fields = array( 'shipping_carrier_name' => vmGet($d, 'shipping_carrier_name'),

下載正確的ps_shipping.php檔案

 



歡迎在你的社群中分享這篇文章