Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed bug for js/css minify #494

Closed
wants to merge 1 commit into from

4 participants

@Mackovey

PHP Fatal error: Cannot instantiate interface Magento\View\Asset\MergeStrategyInterface in /srv/www/magento2.home/pub/lib/Magento/ObjectManager/Factory/Factory.php on line 172

@verklov verklov self-assigned this
@verklov

@Mackovey , thank you for your contribution! We will place a ticket into the product backlog and notify you once it is fixed.

@joejack22

I can confirm the same issue when changing the javascript and css to merge and minify.

Fatal error: Cannot instantiate interface Magento\View\Asset\MergeStrategyInterface in /x/x/public_html/lib/Magento/ObjectManager/Factory/Factory.php on line 136

@joejack22

I just updated to the latest version (dev70) and the above issue does not happen anymore. However, a new error has taken it's place when enabling these features.

TypeError: 'undefined' is not a function (evaluating '$('details').details()')

@ihor-sviziev

I have similar issue with @joejack22 in admin on all pages in build 2.0.0.0-dev72 when I enable JS merge & minify + css merge.

@verklov

@Mackovey, as we can see, #465 was resolved in dev73. Thus, we are closing this pull request. Thank you again for your contribution!

@verklov verklov closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 6, 2014
  1. @Mackovey

    Fixed bug for js/css minify

    Mackovey authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  app/etc/di.xml
View
1  app/etc/di.xml
@@ -39,6 +39,7 @@
<preference for="Magento\View\DesignInterface" type="Magento\Core\Model\View\Design\Proxy" />
<preference for="Magento\View\Design\ThemeInterface" type="Magento\Core\Model\Theme" />
<preference for="Magento\View\ConfigInterface" type="Magento\View\Config" />
+ <preference for="Magento\View\Asset\MergeStrategyInterface" type="Magento\View\Asset\MergeStrategy\Direct" />
<preference for="Magento\Core\Model\LocaleInterface" type="Magento\Core\Model\Locale" />
<preference for="Magento\UrlInterface" type="Magento\Url" />
<preference for="Magento\Data\Collection\Db\FetchStrategyInterface" type="Magento\Data\Collection\Db\FetchStrategy\Query" />
Something went wrong with that request. Please try again.