Magento 1.5.1结帐方法“"未在“"中定义 [英] Magento 1.5.1 checkout Method "" is not defined in ""

查看:56
本文介绍了Magento 1.5.1结帐方法“"未在“"中定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行具有我创建的自定义主题的Magento 1.5.1(之所以使用它,是因为它是与Lightspeed POS兼容的最新版本).我正在运行Lightspeed POS连接器,并且已经手动安装了Virtual Merchant加载项.我的服务器由hostmonster托管.

I'm running Magento 1.5.1 (which I am using because it is the latest version that works with Lightspeed POS) with a custom theme that I created. I am running the Lightspeed POS Connector and I have manually installed the Virtual Merchant add-on. My server is share hosted by hostmonster.

当我尝试结帐时,出现错误Method "" is not defined in ""的警报.

When I try to checkout I get an alert with the error Method "" is not defined in "".

Firebug给了我以下内容:

Firebug gives me the following:

POST https://odd-style.com/magento/index.php/checkout/onepage/saveOrder/ 200 OK
{"success":false,"error":true,"error_messages":"Method \"\" is not defined in \"\""}

我的magento例外日志给我:

My magento exception log give me:

2012-06-06T01:20:46+00:00 ERR (3): 
exception 'Mage_Core_Exception' with message 'Method "" is not defined in ""' in /home4/oddnycco/public_html/magento/app/Mage.php:550
Stack trace:

#0 /home4/oddnycco/public_html/magento/app/code/core/Mage/Core/Model/App.php(1274): Mage::throwException('Method "" is no...')
#1 /home4/oddnycco/public_html/magento/app/code/core/Mage/Core/Model/App.php(1253): Mage_Core_Model_App->_callObserverMethod(false, '', Object(Varien_Event_Observer))
#2 /home4/oddnycco/public_html/magento/app/Mage.php(416): Mage_Core_Model_App->dispatchEvent('checkout_type_o...', Array)
#3 /home4/oddnycco/public_html/magento/app/code/core/Mage/Sales/Model/Service/Quote.php(180): Mage::dispatchEvent('checkout_type_o...', Array)
#4 /home4/oddnycco/public_html/magento/app/code/core/Mage/Sales/Model/Service/Quote.php(238): Mage_Sales_Model_Service_Quote->submitOrder()
#5 /home4/oddnycco/public_html/magento/app/code/core/Mage/Checkout/Model/Type/Onepage.php(742): Mage_Sales_Model_Service_Quote->submitAll()
#6 /home4/oddnycco/public_html/magento/app/code/core/Mage/Checkout/controllers/OnepageController.php(499): Mage_Checkout_Model_Type_Onepage->saveOrder()
#7 /home4/oddnycco/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(420): Mage_Checkout_OnepageController->saveOrderAction()
#8 /home4/oddnycco/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(253): Mage_Core_Controller_Varien_Action->dispatch('saveOrder')
#9 /home4/oddnycco/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#10 /home4/oddnycco/public_html/magento/app/code/core/Mage/Core/Model/App.php(340): Mage_Core_Controller_Varien_Front->dispatch()
#11 /home4/oddnycco/public_html/magento/app/Mage.php(627): Mage_Core_Model_App->run(Array)
#12 /home4/oddnycco/public_html/magento/index.php(80): Mage::run('', 'store')
#13 {main}

到目前为止,我已经尝试过本书中每种类型的缓存清除.我已将我的php内存限制的大小增加到256MB.我查看了堆栈跟踪中引用的所有文件,我只能说$ method和$ object都是因为传递为".我真的不明白为什么,也没有关于如何解决它的任何想法. :/

I have so far tried every type of cache clearing in the book. I've increased the size of my php memory limit to 256MB. I've looked at all the files referenced in the stack trace and all I can tell is that both $method and $object are because passed as "". I don't really understand why and I don't have any more ideas on how to fix it. :/

在此先感谢任何人的帮助!

Thanks in advance for anyone's help!

推荐答案

似乎您在Magento安装中的某个地方定义了事件观察器(我想在第3个第三方模块之一中). 从我的角度来看,似乎为该事件注册了一个空方法.

Seems as if you have an event observer defined somewhere in your Magento installation (I suppose in one of the 3rd-party-modules). From my point of view it looks like there is an empty method registered for the event.

为正在监听事件"checkout_type_onepage_save_order"的观察者检查模块的config.xml(您可以轻松地为该字符串grep您的app/code/community和app/code/local文件夹).尝试禁用该模块(通过app/etc/modules/Module_Name.xml),然后尝试再次签出.

Check the config.xml's of your modules for an observer that is listening on the event 'checkout_type_onepage_save_order' (you can easily grep your app/code/community and app/code/local folder for this string). Try disabling the module (via app/etc/modules/Module_Name.xml) and then try to checkout again.

这篇关于Magento 1.5.1结帐方法“"未在“"中定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆