自定义模块的Magento错误

时间:2015-03-24 00:29:37

标签: magento

当我尝试创建Magento自定义模块时,我收到以下错误。

我已按照本教程,但无法查看我的错误,有人可以帮忙吗?

http://www.smashingmagazine.com/2012/03/01/basics-creating-magento-module/

2015-03-23T23:57:01+00:00 ERR (3): Warning: include(Mage\Company\ScheduledPriceDrop\Model\Observer.php): failed to open stream: No such file or directory  in C:\Work\@Company\Project1\src\trunk\public_html\lib\Varien\Autoload.php on line 94
2015-03-23T23:57:01+00:00 ERR (3): Warning: include(): Failed opening 'Mage\Company\ScheduledPriceDrop\Model\Observer.php' for inclusion (include_path='C:\Work\@Company\Project1\src\trunk\public_html\app\code\local;C:\Work\@Company\Project1\src\trunk\public_html\app\code\community;C:\Work\@Company\Project1\src\trunk\public_html\app\code\core;C:\Work\@Company\Project1\src\trunk\public_html\lib;.;C:\php\pear')  in C:\Work\@Company\Project1\src\trunk\public_html\lib\Varien\Autoload.php on line 94
2015-03-23T23:57:01+00:00 ERR (3): Warning: include(Mage\Company\ScheduledPriceDrop\Model\Observer.php): failed to open stream: No such file or directory  in C:\Work\@Company\Project1\src\trunk\public_html\lib\Varien\Autoload.php on line 94
2015-03-23T23:57:01+00:00 ERR (3): Warning: include(): Failed opening 'Mage\Company\ScheduledPriceDrop\Model\Observer.php' for inclusion (include_path='C:\Work\@Company\Project1\src\trunk\public_html\app\code\local;C:\Work\@Company\Project1\src\trunk\public_html\app\code\community;C:\Work\@Company\Project1\src\trunk\public_html\app\code\core;C:\Work\@Company\Project1\src\trunk\public_html\lib;.;C:\php\pear')  in C:\Work\@Company\Project1\src\trunk\public_html\lib\Varien\Autoload.php on line 94
2015-03-23T23:57:01+00:00 ERR (3): Recoverable Error: Object of class Mage_Cron_Model_Schedule could not be converted to string  in C:\Work\@Company\Project1\src\trunk\public_html\lib\Varien\Db\Adapter\Pdo\Mysql.php on line 2869

2 个答案:

答案 0 :(得分:1)

此模块中存在错误Company \ ScheduledPriceDrop禁用它。您需要更正此模块中的错误。

答案 1 :(得分:1)

根据您的日志,执行在您的模块中找不到 observer.php

  

公司\ ScheduledPriceDrop \模型\ Observer.php

实际上它似乎是在核心中搜索这个观察者文件,如果它在本地域中找不到它,则会发生这种情况。

如果不是这种情况,则必须提供代码。

希望这会有所帮助。