致命错误:Magento找不到类'Zend_Log_Formatter_Simple'

时间:2014-07-17 08:07:26

标签: magento

尝试为特定模块实现块时出现此错误。我把它放在堆栈跟踪中:

Fatal error: Class 'Zend_Log_Formatter_Simple' not found in /users/christophe/dev/------/public/www/app/code/community/Bms/Recrutement/Block/Annonce.php on line 20

Call Stack:
0.0012     692544   1. {main}() /users/christophe/dev/------/public/www/index.php:0
5.0145    1334240   2. Mage::run() /users/christophe/dev/------/public/www/index.php:96
5.0351    3083736   3. Mage_Core_Model_App->run() /users/christophe/dev/------/public/www/app/Mage.php:683
26.9640   17422296   4. Mage_Core_Controller_Varien_Front->dispatch() /users/christophe/dev/------/public/www/app/code/core/Mage/Core/Model/App.php:354
26.9974   19462280   5. Mage_Core_Controller_Varien_Router_Standard->match() /users/christophe/dev/------/public/www/app/code/core/Mage/Core/Controller/Varien/Front.php:176
27.0049   20055160   6. Mage_Core_Controller_Varien_Action->dispatch() /users/christophe/dev/------/public/www/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php:250
27.4144   28301984   7. Bms_Recrutement_IndexController->annonceAction() /users/christophe/dev/------/public/www/app/code/core/Mage/Core/Controller/Varien/Action.php:419
27.4144   28301984   8. Mage_Core_Controller_Varien_Action->loadLayout() /users/christophe/dev/------/public/www/app/code/community/Bms/Recrutement/controllers/IndexController.php:30
27.7507   28773096   9. Mage_Core_Controller_Varien_Action->generateLayoutBlocks() /users/christophe/dev/------/public/www/app/code/core/Mage/Core/Controller/Varien/Action.php:269
27.7509   28777880  10. Mage_Core_Model_Layout->generateBlocks() /users/christophe/dev/------/public/www/app/code/core/Mage/Core/Controller/Varien/Action.php:344
27.9351   37337024  11. Mage_Core_Model_Layout->generateBlocks() /users/christophe/dev/------/public/www/app/code/core/Mage/Core/Model/Layout.php:210
27.9351   37338856  12. Mage_Core_Model_Layout->_generateBlock() /users/christophe/dev/------/public/www/app/code/core/Mage/Core/Model/Layout.php:205
27.9352   37341256  13. Mage_Core_Model_Layout->addBlock() /users/christophe/dev/------/public/www/app/code/core/Mage/Core/Model/Layout.php:239
27.9352   37341256  14. Mage_Core_Model_Layout->createBlock() /users/christophe/dev/------/public/www/app/code/core/Mage/Core/Model/Layout.php:472
27.9352   37341568  15. Mage_Core_Model_Layout->_getBlockInstance() /users/christophe/dev/------/public/www/app/code/core/Mage/Core/Model/Layout.php:437
27.9356   37342840  16. Varien_Autoload->autoload() /users/christophe/dev/------/public/www/app/code/core/Mage/Core/Model/Layout.php:0
27.9369   37401728  17. mageCoreErrorHandler() /users/christophe/dev/------/public/www/app/code/core/Mage/Core/Model/Layout.php:98
27.9369   37402272  18. Mage::log() /users/christophe/dev/------/public/www/app/code/core/Mage/Core/functions.php:247

这是我使用的课程:

class Bms_Recrutement_Block_Annonce extends Mage_Core_Block_Template {
    public function getUrl() {
        $data = $this->getRequest()->getParams();
        var_dump($data);
        return 'http://some_url';
    }
}

最后是.phtml

<iframe src="<?php echo $this->getUrl() ?>" style="width:100%; height : 490px;"></iframe>

我不知道它可以来自哪里。如果您有答案或任何提示,我将很高兴得到它。

提前致谢。

1 个答案:

答案 0 :(得分:1)

我发现了我的错误!

getUrl()已经是在父类中设置并在别处使用的函数。我将它重命名为getIframeUrl(),一切正常。