Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asset has to implement \Magento\Framework\View\Asset\MergeableInterface. #589

Closed
leeyisoft opened this issue Jun 14, 2014 · 5 comments
Closed
Assignees

Comments

@leeyisoft
Copy link

第一次使用系统环境 Windows NT (Windows 7 Ultimate Edition Service Pack 1) i586
Apache 2.4 Handler Apache Lounge
PHP Version 5.4.7
刚刚按照,感觉运行的好慢,但是可以正常运行;等吃个饭回来之后,就保存了,错误提示:
Asset has to implement \Magento\Framework\View\Asset\MergeableInterface.

Error log record number: 66359205

a:4:{i:0;s:72:"Asset has to implement \Magento\Framework\View\Asset\MergeableInterface.";i:1;s:12895:"#0 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\ObjectManager\Factory\Factory.php(211): Magento\Framework\View\Asset\Merged->__construct(Object(Magento\Framework\Logger), Object(Magento\Framework\View\Asset\MergeStrategy\Checksum), Object(Magento\Framework\View\Asset\Repository), Array)
#1 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\ObjectManager\ObjectManager.php(74): Magento\Framework\ObjectManager\Factory\Factory->create('Magento\Framewo...', Array)
#2 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\View\Asset\MergeService.php(108): Magento\Framework\ObjectManager\ObjectManager->create('Magento\Framewo...', Array)
#3 D:\leeyi\workspace\magento2\var\generation\Magento\Framework\View\Asset\MergeService\Interceptor.php(113): Magento\Framework\View\Asset\MergeService->getMergedAssets(Array, 'js')
#4 D:\leeyi\workspace\magento2\app\code\Magento\Theme\Block\Html\Head.php(177): Magento\Framework\View\Asset\MergeService\Interceptor->getMergedAssets(Array, 'js')
#5 [internal function]: Magento\Theme\Block\Html\Head->getCssJsHtml()
#6 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\View\TemplateEngine\Php.php(100): call_user_func_array(Array, Array)
#7 D:\leeyi\workspace\magento2\app\code\Magento\Backend\view\adminhtml\templates\page\head.phtml(40): Magento\Framework\View\TemplateEngine\Php->__call('getCssJsHtml', Array)
#8 D:\leeyi\workspace\magento2\app\code\Magento\Backend\view\adminhtml\templates\page\head.phtml(40): Magento\Framework\View\TemplateEngine\Php->getCssJsHtml()
#9 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\View\TemplateEngine\Php.php(77): include('D:\leeyi\worksp...')
#10 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\View\Element\Template.php(261): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Backend\Block\Page\Head), 'D:/leeyi/worksp...', Array)
#11 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\View\Element\Template.php(281): Magento\Framework\View\Element\Template->fetchView('D:/leeyi/worksp...')
#12 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\View\Element\AbstractBlock.php(649): Magento\Framework\View\Element\Template->_toHtml()
#13 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\View\Layout.php(1106): Magento\Framework\View\Element\AbstractBlock->toHtml()
#14 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\View\Layout.php(1082): Magento\Framework\View\Layout->_renderBlock('head')
#15 D:\leeyi\workspace\magento2\var\generation\Magento\Framework\View\Layout\Interceptor.php(243): Magento\Framework\View\Layout->renderElement('head', true)
#16 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\View\Element\AbstractBlock.php(489): Magento\Framework\View\Layout\Interceptor->renderElement('head', true)
#17 [internal function]: Magento\Framework\View\Element\AbstractBlock->getChildHtml('head')
#18 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\View\TemplateEngine\Php.php(100): call_user_func_array(Array, Array)
#19 D:\leeyi\workspace\magento2\app\code\Magento\Backend\view\adminhtml\templates\admin\page.phtml(30): Magento\Framework\View\TemplateEngine\Php->__call('getChildHtml', Array)
#20 D:\leeyi\workspace\magento2\app\code\Magento\Backend\view\adminhtml\templates\admin\page.phtml(30): Magento\Framework\View\TemplateEngine\Php->getChildHtml('head')
#21 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\View\TemplateEngine\Php.php(77): include('D:\leeyi\worksp...')
#22 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\View\Element\Template.php(261): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Backend\Block\Page), 'D:/leeyi/worksp...', Array)
#23 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\View\Element\Template.php(281): Magento\Framework\View\Element\Template->fetchView('D:/leeyi/worksp...')
#24 D:\leeyi\workspace\magento2\app\code\Magento\Backend\Block\Template.php(122): Magento\Framework\View\Element\Template->_toHtml()
#25 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\View\Element\AbstractBlock.php(649): Magento\Backend\Block\Template->_toHtml()
#26 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\View\Layout.php(1106): Magento\Framework\View\Element\AbstractBlock->toHtml()
#27 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\View\Layout.php(1082): Magento\Framework\View\Layout->_renderBlock('root')
#28 D:\leeyi\workspace\magento2\var\generation\Magento\Framework\View\Layout\Interceptor.php(243): Magento\Framework\View\Layout->renderElement('root', true)
#29 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\View\Layout.php(1469): Magento\Framework\View\Layout\Interceptor->renderElement('root')
#30 D:\leeyi\workspace\magento2\var\generation\Magento\Framework\View\Layout\Interceptor.php(503): Magento\Framework\View\Layout->getOutput()
#31 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\App\View.php(283): Magento\Framework\View\Layout\Interceptor->getOutput()
#32 D:\leeyi\workspace\magento2\app\code\Magento\Backend\Controller\Adminhtml\Dashboard.php(52): Magento\Framework\App\View->renderLayout()
#33 D:\leeyi\workspace\magento2\var\generation\Magento\Backend\Controller\Adminhtml\Dashboard\Interceptor.php(113): Magento\Backend\Controller\Adminhtml\Dashboard->indexAction()
#34 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\App\Action\Action.php(124): Magento\Backend\Controller\Adminhtml\Dashboard\Interceptor->indexAction()
#35 D:\leeyi\workspace\magento2\app\code\Magento\Backend\App\AbstractAction.php(240): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#36 [internal function]: Magento\Backend\App\AbstractAction->dispatch(Object(Magento\Framework\App\Request\Http))
#37 D:\leeyi\workspace\magento2\var\generation\Magento\Backend\Controller\Adminhtml\Dashboard\Interceptor.php(48): call_user_func_array(Array, Array)
#38 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\Interception\Chain\Chain.php(83): Magento\Backend\Controller\Adminhtml\Dashboard\Interceptor->___callParent('dispatch', Array)
#39 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\Interception\Chain\Chain.php(76): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Backend...', 'dispatch', Object(Magento\Backend\Controller\Adminhtml\Dashboard\Interceptor), Array, 'adminAuthentica...')
#40 D:\leeyi\workspace\magento2\app\code\Magento\Backend\App\Action\Plugin\Authentication.php(113): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain{closure}(Object(Magento\Framework\App\Request\Http))
#41 [internal function]: Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(Object(Magento\Backend\Controller\Adminhtml\Dashboard\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#42 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\Interception\Chain\Chain.php(81): call_user_func_array(Array, Array)
#43 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\Interception\Chain\Chain.php(76): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Backend...', 'dispatch', Object(Magento\Backend\Controller\Adminhtml\Dashboard\Interceptor), Array, 'designLoader')
#44 D:\leeyi\workspace\magento2\app\code\Magento\Core\App\Action\Plugin\Design.php(57): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain{closure}(Object(Magento\Framework\App\Request\Http))
#45 [internal function]: Magento\Core\App\Action\Plugin\Design->aroundDispatch(Object(Magento\Backend\Controller\Adminhtml\Dashboard\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#46 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\Interception\Chain\Chain.php(81): call_user_func_array(Array, Array)
#47 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\Interception\Chain\Chain.php(76): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Backend...', 'dispatch', Object(Magento\Backend\Controller\Adminhtml\Dashboard\Interceptor), Array, 'adminMassaction...')
#48 D:\leeyi\workspace\magento2\app\code\Magento\Backend\App\Action\Plugin\MassactionKey.php(51): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain{closure}(Object(Magento\Framework\App\Request\Http))
#49 [internal function]: Magento\Backend\App\Action\Plugin\MassactionKey->aroundDispatch(Object(Magento\Backend\Controller\Adminhtml\Dashboard\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#50 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\Interception\Chain\Chain.php(81): call_user_func_array(Array, Array)
#51 D:\leeyi\workspace\magento2\var\generation\Magento\Backend\Controller\Adminhtml\Dashboard\Interceptor.php(88): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Backend...', 'dispatch', Object(Magento\Backend\Controller\Adminhtml\Dashboard\Interceptor), Array, 'installInitiali...')
#52 D:\leeyi\workspace\magento2\app\code\Magento\Install\App\Action\Plugin\Install.php(85): Magento\Backend\Controller\Adminhtml\Dashboard\Interceptor->Magento\Backend\Controller\Adminhtml\Dashboard{closure}(Object(Magento\Framework\App\Request\Http))
#53 [internal function]: Magento\Install\App\Action\Plugin\Install->aroundDispatch(Object(Magento\Backend\Controller\Adminhtml\Dashboard\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#54 D:\leeyi\workspace\magento2\var\generation\Magento\Backend\Controller\Adminhtml\Dashboard\Interceptor.php(93): call_user_func_array(Array, Array)
#55 D:\leeyi\workspace\magento2\var\generation\Magento\Backend\Controller\Adminhtml\Dashboard\Interceptor.php(193): Magento\Backend\Controller\Adminhtml\Dashboard\Interceptor->___call('dispatch', Array, Array)
#56 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\App\FrontController.php(62): Magento\Backend\Controller\Adminhtml\Dashboard\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#57 [internal function]: Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#58 D:\leeyi\workspace\magento2\var\generation\Magento\Framework\App\FrontController\Interceptor.php(48): call_user_func_array(Array, Array)
#59 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\Interception\Chain\Chain.php(83): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#60 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\Interception\Chain\Chain.php(76): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'install')
#61 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\Module\FrontController\Plugin\Install.php(79): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain{closure}(Object(Magento\Framework\App\Request\Http))
#62 [internal function]: Magento\Framework\Module\FrontController\Plugin\Install->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#63 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\Interception\Chain\Chain.php(81): call_user_func_array(Array, Array)
#64 D:\leeyi\workspace\magento2\var\generation\Magento\Framework\App\FrontController\Interceptor.php(88): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'dispatchExcepti...')
#65 D:\leeyi\workspace\magento2\app\code\Magento\Store\App\FrontController\Plugin\DispatchExceptionHandler.php(71): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\App\FrontController{closure}(Object(Magento\Framework\App\Request\Http))
#66 [internal function]: Magento\Store\App\FrontController\Plugin\DispatchExceptionHandler->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#67 D:\leeyi\workspace\magento2\var\generation\Magento\Framework\App\FrontController\Interceptor.php(93): call_user_func_array(Array, Array)
#68 D:\leeyi\workspace\magento2\var\generation\Magento\Framework\App\FrontController\Interceptor.php(115): Magento\Framework\App\FrontController\Interceptor->___call('dispatch', Array, Array)
#69 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\App\Http.php(123): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#70 D:\leeyi\workspace\magento2\lib\internal\Magento\Framework\App\EntryPoint\EntryPoint.php(80): Magento\Framework\App\Http->launch()
#71 D:\leeyi\workspace\magento2\index.php(37): Magento\Framework\App\EntryPoint\EntryPoint->run('Magento\Framewo...')
#72 {main}";s:3:"url";s:78:"/index.php/backend/admin/dashboard/index/key/b3b5e837d706646c0a7e2814cb6f84f2/";s:11:"script_name";s:10:"/index.php";}

@leeyisoft
Copy link
Author

我修改 core_config_data 数据表里面的 dev/js/merge_files dev/css/merge_css_files dev/js/minify_files 三个 path 的 value 为 0 让后删除 /var 目录下面的所有目录,问题就不会出现了

@verklov verklov self-assigned this Jun 18, 2014
@verklov
Copy link
Contributor

verklov commented Jun 18, 2014

Hey @leeyisoft, thanks for reporting this issue! Meanwhile could you please provide English equivalents for those non-latin phrases in your report? I am afraid I cannot understand the message completely because of parts of it reported in Chinese. Thank you!

@marcatos
Copy link

Hi @verklov , I've just experienced the same error reported from @leeyisoft trying to activate globally configurations dev/css/merge_css_files, dev/css/merge_js_files, dev/js/minify_files

My local env is an Ubuntu 14.04 with Apache 2.4.7 with mod_php enabled with PHP 5.5.9-1ubuntu4.2 .

attached you can find the report

screenshot from 2014-06-26 12 35 29

@verklov
Copy link
Contributor

verklov commented Jun 26, 2014

@marcatos, one of our teams will definitely look at the issue. Thank you for reporting it! It is really important for us to know the issue represents some common case that should definitely be investigated.

@verklov
Copy link
Contributor

verklov commented Sep 5, 2014

Closing this ticket as duplicate of #584.

@verklov verklov closed this as completed Sep 5, 2014
joanhe pushed a commit that referenced this issue Sep 11, 2015
[Extensibility] Sprint 58 pull request
mmansoor-magento pushed a commit that referenced this issue Nov 28, 2016
[MPI] Bugfixes, updating Zephyr tickets id and ApiAnnotationTest removing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants