由於某種原因,當我嘗試手動執行/cron.php文件時,出現上述錯誤。Mage_Cron_Model_Schedule類的對象無法轉換爲字符串
這裏是我的一個模塊,我認爲config.xml中造成問題
<?xml version="1.0" encoding="UTF-8"?>
<!-- The root node for Magento module configuration -->
<config>
<!--
The module's node contains basic
information about each Magento module
-->
<modules>
<!--
This must exactly match the namespace and module's folder
names, with directory separators replaced by underscores
-->
<Company_ScheduledPriceDrop>
<!-- The version of our module, starting at 0.0.1 -->
<version>0.0.1</version>
</Company_ScheduledPriceDrop>
</modules>
<crontab>
<jobs>
<Company_ScheduledPriceDrop>
<schedule>
<cron_expr>*/5 * * * *</cron_expr>
</schedule>
<run>
<model>Company_ScheduledPriceDrop/observer::setPrice</model>
</run>
</Company_ScheduledPriceDrop>
</jobs>
</crontab>
</config>
這裏是被稱爲觀察者文件
<?php
class Company_ScheduledPriceDrop_Model_Observer extends Mage_Core_Model_Abstract
{
public function setPrice()
{
Mage::log("WORKS!");
}
}
我不知道是什麼錯誤的意思是,任何人都可以幫忙嗎?