我/正在使用 Magento。我安装了 ImageRecircle 插件。很可能是问题所在。它出现在日志中。我真的很想弄清楚错误是什么,或者至少找出如何检测它。感谢所有订阅的人。
exception 'Mage_Core_Exception' with message 'Invalid block type: Imagerecycle_Imagerecycle_Block_Core_Text' in TSA-UPGRADE/webroot/app/Mage.php:595
2017-04-03T15:21:24+00:00 ERR (3): Warning: file_exists(): open_basedir restriction in effect. File(/usr/lib/php/Imagerecycle/Imagerecycle/Block/Core/Text.php) is not within the allowed path(s): (/home/vinnybyr:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in /home/vinnybyr/public_html/app/code/core/Mage/Core/functions.php on line 145
2017-04-03T15:21:24+00:00 ERR (3): Warning: include(Enterprise/Cms/Helper/Data.php): failed to open stream: No such file or directory in /home/vinnybyr/public_html/lib/Varien/Autoload.php on line 94
2017-04-03T15:21:24+00:00 ERR (3): Warning: include(Enterprise/Cms/Helper/Data.php): failed to open stream: No such file or directory in /home/vinnybyr/public_html/lib/Varien/Autoload.php on line 94
2017-04-03T15:21:24+00:00 ERR (3): Warning: include(): Failed opening 'Enterprise/Cms/Helper/Data.php' for inclusion (include_path='/home/vinnybyr/public_html/app/code/local:/home/vinnybyr/public_html/app/code/community:/home/vinnybyr/public_html/app/code/core:/home/vinnybyr/public_html/lib:.:/usr/lib/php:/usr/local/lib/php') in /home/vinnybyr/public_html/lib/Varien/Autoload.php on line 94
2017-04-03T15:21:24+00:00 ERR (3): Warning: file_exists(): open_basedir restriction in effect. File(/usr/lib/php/Imagerecycle/Imagerecycle/Block/Core/Text.php) is not within the allowed path(s): (/home/vinnybyr:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in /home/vinnybyr/public_html/app/code/core/Mage/Core/functions.php on line 145
2017-04-03T15:21:25+00:00 ERR (3): Warning: include(Enterprise/Cms/Helper/Data.php): failed to open stream: No such file or directory in /home/vinnybyr/public_html/lib/Varien/Autoload.php on line 94
2017-04-03T15:21:25+00:00 ERR (3): Warning: include(Enterprise/Cms/Helper/Data.php): failed to open stream: No such file or directory in /home/vinnybyr/public_html/lib/Varien/Autoload.php on line 94
2017-04-03T15:21:25+00:00 ERR (3): Warning: include(): Failed
2017-03-24T20:49:42+00:00 ERR (3): exception 'Mage_Core_Exception' with message 'Invalid block type: Imagerecycle_Imagerecycle_Block_Core_Text' in /home/vinnybyr/public_html/app/Mage.php:595
这是堆栈跟踪。
#0 /home/vinnybyr/public_html/app/code/core/Mage/Core/Model/Layout.php(495): Mage::throwException('Invalid block t...')
#1 /home/vinnybyr/public_html/app/code/core/Mage/Core/Model/Layout.php(437): Mage_Core_Model_Layout->_getBlockInstance('core/text', Array)
#2 /home/vinnybyr/public_html/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock('core/text', 'stripe.js')
#3 /home/vinnybyr/public_html/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock('core/text', 'stripe.js')
#4 /home/vinnybyr/public_html/app/code/core/Mage/Core/Model/Layout.php(205): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#5 /home/vinnybyr/public_html/app/code/core/Mage/Core/Model/Layout.php(210): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#6 /home/vinnybyr/public_html/app/code/local/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()
#7 /home/vinnybyr/public_html/app/code/core/Mage/Catalog/controllers/CategoryController.php(148): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#8 /home/vinnybyr/public_html/app/code/local/Mage/Core/Controller/Varien/Action.php(419): Mage_Catalog_CategoryController->viewAction()
#9 /home/vinnybyr/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('view')
#10 /home/vinnybyr/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#11 /home/vinnybyr/public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#12 /home/vinnyb
正如它在布局的第一行中所写的那样,有一个类型不存在的块:
首先检查模块代码中原则上是否存在:
如果它不存在,那么很可能是重写中的拼写错误(并且从跟踪判断,您的模块重写了标准块类
Mage_Core_Block_Text
)。在这种情况下,只需删除config.xml
模块中的重写即可。PS:一般遇到这种情况,你应该联系模块开发者的支持。