Questions tagged [compiler]

The Magento Compiler is an outdated solution to reduce filesystem impact caused by PHP class loading. While still included in current Magento releases it is removed in Magento 2. On current systems there are even cases where the Compiler causes harm to general performance of Magento.

Filter by
Sorted by
Tagged with
43
votes
2answers
25k views

When should I use the Magento Compiler

I often see people mention they use the compiler feature of Magento. I do never and wonder, which cases you should use it and how much performance gain you have then. [DISCLAIMER]: As I got an edit ...
23
votes
4answers
25k views

Correct Method of Flushing Caches & Managing the Compiler

I'd like to know if there's any prefered procedure for the following: Flushing of the Magento cache Enabling/Disabling of the Magento Compiler 1. Flushing of the Magento Cache There are a few ...
39
votes
3answers
6k views

What Triggers the Generation of a Factory in Magento 2

Magento 2 contains a number of class files that are either pre-generated, or are generated on the fly. They live in var/generated These generated files include factory classes. From the ...
7
votes
6answers
27k views

Warning: include(File.php) failed in Autoload.php on line 93

I have followed several articles on this, but none solve my problem. Every request on site writes the following entry to the system log. var/log/system.log: 2013-10-09T12:53:50+00:00 ERR (3): ...
5
votes
1answer
3k views

Problems with less variables in _theme.less

I use below media queries in my custom _theme.less like & when (@media-common = true) { } but when I execute this command bin/magento setup:static-content:deploy I get variable @media-common is ...
6
votes
1answer
618 views

Magento 2: Why di compile is not 100%?

When we run php bin/magento setup:di:compile Why all are not will be 100% & 7/7? $ php bin/magento setup:di:compile Compilation was started. %message% 0/7 [>---------------------------] 0% ...
5
votes
3answers
1k views

is it safe to run magento compiler?

I have magento 1.7.3 and have some 3rd party extensions like Fortis theme, easy lightbox, ... my question is : if compiler mode had issues, is it recoverable?
2
votes
2answers
3k views

Compiler is always disabled

I have successfully run the compilation process, but when trying to enable the compilation mode, either through admin panel or through command line, I get no errors, but the state remains always ...
3
votes
2answers
5k views

Zend_Db_Adapter_Exception pdo_mysql extension is not installed

ralfe@ralfe:/opt/lampp/htdocs/amboim$ bin/magento setup:di:compile Compilation was started. Proxies code generation... 0/7 [>---------------------------] 0% 1 sec 42.0 Mi Proxies code generation.....
5
votes
3answers
10k views

Less files in custom modules

How do you use less inside custom module having created code/Vendor/module/view/frontend/web/css/source/custom.less how do I include and compile?
3
votes
1answer
3k views

Magento 2 - What is file Interceptor.php?

When I overrided file controller of catalog/product and ran this command: php bin/mangento setup:di:compile And then this file "Interceptor.php" was generated in magento_root\var\generation\myPool\...
4
votes
1answer
4k views

Magento 2: Error during compilation Incompatible argument type

In Continue with Magento 2: Error during compilation I have below error while running php bin/magento setup:di:compile Errors during compilation: Custom\Module\Model\ResourceModel\...
1
vote
2answers
2k views

Magento 2: Error during compilation

I have below error while running php bin/magento setup:di:compile Errors during compilation: Custom\Module\Block\BuyingListIndex Incorrect dependency in class Custom\Module\...
1
vote
1answer
3k views

Code Compilation Error - Cannot Redeclare Class

So, after some painful debugging (and enabling scream in xdebug), I was able to discover that some pages are returning a fatal error (such as catalog/product/gallery/id/155/image/202/) where Magento ...