我将Magento 1.9从PHP 5.6升级到PHP 7,并在Ubuntu 18.04上运行。每当我单击添加到购物车选项时,都会出现以下错误:
致命错误:未被捕获的ArgumentCountError:函数Mage_Core_Model_Abstract :: load()的参数太少,第7行的/app/code/local/Uf/Sales/Model/Observer.php中传递了0,在/第7行中至少期望了1 app / code / core / Mage / Core / Model / Abstract.php:222堆栈跟踪:#0 /app/code/local/Uf/Sales/Model/Observer.php(7):Mage_Core_Model_Abstract-> load()#1 /app/code/core/Mage/Core/Model/App.php(1357):Uf_Sales_Model_Observer-> checkoutCartProductAddAfter(Object(Varien_Event_Observer))#2 /app/code/core/Mage/Core/Model/App.php(1330) ):Mage_Core_Model_App-> _ callObserverMethod(Object(Uf_Sales_Model_Observer),'checkoutCartPro ...',Object(Varien_Event_Observer))#3 /app/Mage.php(448):Mage_Core_Model_App-> dispatchEvent('checkout_cart_p ...', #4 /app/code/core/Mage/Checkout/Model/Cart.php(290):Mage :: dispatchEvent('222行/app/code/core/Mage/Core/Model/Abstract.php中的checkout_cart < / p>