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
0 votes
1 answer
29 views

"magento/module-new-relic-reporting" not installed after upgrade

So, I did a lot of research and tried a lot of ideas to solve this but without luck. That's why I'm asking. I'm trying to upgrade magento from 2.3.3 to 2.4.4 . I stacked on a problem that "...
user avatar
0 votes
1 answer
82 views

Error during compilation of Magento 2 Incompatible argument type : Required type:

Webkul\VendorPos\Model\ResourceModel\Orders\Grid\Collection Incompatible argument type: Required type: \Magento\Framework\App\Config\ScopeConfigInterface. Actual type: \Magento\Framework\DB\Adapter\...
user avatar
0 votes
1 answer
373 views

Magento Stuck at running command

My Magento command for compile is stuck What should I do and what is the problem??
user avatar
1 vote
3 answers
1k views

Error when static-content:deploy - Magento 2.3

I face the following error when I run a static-content:deploy, but I can not find the problem. In our custom theme we do not have a _extends.less file. So I can not find the problem, why it is ...
user avatar
  • 1,474
0 votes
1 answer
330 views

Incompatible argument type: Required type: \Magento\Customer\Api\AddressRepositoryInterface

During compiling I've got the following compilation error: Incompatible argument type: Required type: \Magento\Customer\Api\AddressRepositoryInterface. Actual type: \Magento\...
user avatar
2 votes
1 answer
389 views

How to disable Compiled Configuration?

I was trying to disable all my caches, then I noticed that one of my Magento 2 installations has a particular cache type called Compiled Config. I don't want to use my installation compiled, I wan't ...
user avatar
0 votes
1 answer
133 views

Magento 2.3.1 : Strange error

I have a strange, useless and a way funny error like Magento know how to do. When executing php bin/magento setup:di:compile: Firebear\ImportExport\Model\Import\Address ...
user avatar
  • 305
2 votes
1 answer
869 views

Overriding Block class causes constructor err in magento 2

I want override a block class, for this I have made entry in di.xml using preference and created a respective file on my custom module block/Rewrite/Product/ListProduct. My file is calling but now ...
user avatar
  • 25
0 votes
2 answers
208 views

Magento 1.9.x - Compiler Error after install Extension

I tried a new extension for Magento Community (https://github.com/integer-net/solr-magento1) , after is produce many errors I deleted all the files. Now, its cause error when Magento-Compiler is ...
user avatar
  • 11
4 votes
1 answer
2k views

Magento2 change to production mode

i want to change from developer to production, but i can't because i get an error that exec function is disabled and my host will not enable it. What are the actions taking place when you type bin/...
user avatar
4 votes
1 answer
667 views

1.9.3.7 to 1.9.3.8 Upgrade Broke Cart & Checkout for Logged in Customers After Compilation

We just upgraded from 1.9.3.7 to 1.9.3.8 and getting a blank page when trying to access the cart or add products to it. This happens for logged in customers only and only when compilation is turned on....
user avatar
  • 51
1 vote
0 answers
57 views

Magento 1, compiler gives 500 on disabled products

We have a pretty weird issue, if we enable the php compiler disabled products will return a 500 page. If we enable php errors using php_ini it returns a 200 but the page contains nothing. In the logs ...
user avatar
0 votes
1 answer
76 views

After trying to install an extension I cannot open website [duplicate]

I tried to install the Inchoo Social Connect extension. I enabled compiler and merged all the files from zip with my current files in httpdocs. This is how the website looks like now : I have ...
user avatar
  • 1
0 votes
1 answer
95 views

No line number in error?

I'm trying to run bin/magento setup:di:compile and I'm getting this error: [Symfony\Component\Debug\Exception\FatalThrowableError] Parse error: syntax error, unexpected '}' There is no line ...
user avatar
  • 101
1 vote
1 answer
272 views

Magento 2: Di Compile SER Files

When we run php bin/magento setup:di:compile It will generate below files in \magento\var\di folder adminhtml.ser crontab.ser frontend.ser global.ser setup.ser webapi_rest.ser webapi_soap.ser I ...
user avatar
  • 9,473
0 votes
1 answer
168 views

When to run magento:setup:compile?

If this question has been answered elsewhere I will delete this one. From a good look around, there doesn't seem to be a solid answer. When I am developing an extension for Magento 2(.1), do I have ...
user avatar
6 votes
1 answer
883 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% ...
user avatar
  • 9,473
3 votes
2 answers
7k 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.....
user avatar
  • 153
3 votes
2 answers
727 views

Magento 2 compile less files on staging server

I have a local repo with my Magento 2 development environment. I use grunt watch to compile my local less files. I push my edited less file with Git to my Beanstalk remote Develop branch I deploy (...
user avatar
  • 417
1 vote
2 answers
411 views

OptionInterfacePersistor error when compiling magento in production mode

I'm trying to run php bin/magento setup:di:compile-multi-tenant on a Magento CE 2.0.10 with sample data installed. I don't have anything else in this Magento installation. I use php 7.0.8. [Magento\...
user avatar
  • 3,242
5 votes
1 answer
7k 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\...
user avatar
  • 9,473
1 vote
2 answers
3k 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\...
user avatar
  • 9,473
1 vote
0 answers
260 views

Magento enabling compilation error : need permanent solution

i was tried to enable compilation and got error. And admin & frontend was not accessable. its happens with me many time on different site. and then i disable compiler from code. i made comment ...
user avatar
0 votes
2 answers
2k views

PHP Fatal error: Class 'Aschroder_SMTPPro_Model_Mysql4_Setup' not found

I have a similar problem. My compiler was turned on and I did the installation. Now, getting error 500 and log file shows this error [21-Sep-2016 01:25:37 UTC] PHP Fatal error: Class '...
user avatar
  • 1
0 votes
2 answers
552 views

setup:di:compile in the different modes

I'm trying to understand how compilation works in Magento 2 with regards to default mode, developer mode, and production mode. The docs state that auto compilation is enabled in developer mode, which ...
user avatar
5 votes
1 answer
954 views

magento2 what exactly purpose of Factory class?

From this documentation Factories are special objects that have only one purpose: to create an instance of one non-injectable class or interface non-injectable object are Objects that cannot be ...
user avatar
  • 731
3 votes
0 answers
544 views

Magento 2 setup:di:compile exclude folders [duplicate]

Is it possible to exclude folders for a Magento 2 extension to be able to support Magento 2 compile command? Currently setup:di:compile throws errors that parent classes not found as they are loaded ...
user avatar
1 vote
1 answer
447 views

Compiler Enabled on admin, Disabled on cli

My Magento's 1.9.2.1 Admin panel shows: Compiler Status: Enabled Compilation State: Compiled Collected Files Count: 7947 Compiled Scopes Count: 4 If I click on Disable, it says that it's now ...
user avatar
  • 93
1 vote
1 answer
2k views

unable to disable Compiler in Magento 1.9

Okay, it's a long story, so sit tight. First, I cannot disable compiler for some reason. I click disable and it refreshes, saying Enabled still. So I used the command line and disabled it, and got ...
user avatar
  • 373
6 votes
2 answers
5k 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 ...
user avatar
  • 887
5 votes
1 answer
333 views

Magento 2 - I would like to understand the mechanism of running the "setup:di:compile" command

I would like to understand the mechanism of running the setup:di:compile command in Magento 2. Example: Step 1: it is checking... Step 2: it is generating... ... Anybody can explain it to me?
user avatar
  • 3,516
0 votes
1 answer
44 views

Magento 2 - Why has difference between machine when run di:compile?

In magento2, Why has difference between machine when run setup:di:compile ? In machine A: In machine B: How to config: when we compile it does not do "interception cache generation..." ? (I would ...
user avatar
  • 3,516
3 votes
1 answer
4k 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\...
user avatar
  • 3,516
14 votes
4 answers
20k 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?
user avatar
  • 887
9 votes
3 answers
4k views

Magento compilation hangs!

running bin/magento setup:di:compile hangs at 14% forever. Already allocated 1G RAM and incrased execution time 18000 running again with bin/magento setup:di:compile -vvv after 20 minutes ...
user avatar
  • 887
0 votes
2 answers
157 views

Force magento compiler to only compile the 4 basic scopes (default.php/catalog.php/checkout.php/cms.php)

Magento 1.9.0.1 SUPEE-6788 SUPEE-7405 Hi Since i've installed the latest patches of magento, instead of the 4 basic scopes default.php/catalog.php/checkout.php/cms.php, i've got 13 default/cms/...
user avatar
3 votes
1 answer
9k views

Magento 2 : Compiler gives Class Not Found error

I was trying to install Multi-Vendor Marketplace extension from Webkul. I followed these steps: Copied the files to appropriate locations. Ran php bin/magento setup:upgrade from root folder. At this ...
user avatar
3 votes
2 answers
764 views

how to compile single LESS file in magento2

I am working on magento2 theming part. Here we have some predefined and my custom LESS file. Whenever we compile LESS file, it generates two css file -- styles-l.css, styles-m.css . But we do not know ...
user avatar
0 votes
2 answers
209 views

How to setup a new custom module in Magento2

I added a new module to config.php, then I ran php -f bin/magento setup:upgrade This is what I got:"Please re-run Magento compile command" And the module I added gets deleted from config.php Anyone ...
user avatar
  • 1
1 vote
1 answer
573 views

Products are disappearing from admin and frontend

A client is having the issue of multiple products that have just disappeared from Magento, and they are having to re-enter all of the data. I ruled out CSV issues because they have never used this ...
user avatar
1 vote
1 answer
2k views

Magento compiler broken. Compiler doesnt work even via SSH

I deleted the includes/src folder to disable the compiler mode. Then the site broke and all we can see is the following. Warning: include_once(Varien/Autoload.php): failed to open stream: No ...
user avatar
0 votes
1 answer
571 views

Should we keep Magento compiler enabled or disabled? [duplicate]

I am currently using Magento EE 1.14.2.1 and memcache is also enabled on the server. So the question is whether it's worth keeping Magento compiler enabled? I have read online that the compiler can ...
user avatar
0 votes
1 answer
71 views

what are the steps to install magento module/extension,

what are the steps to install magento module/extension, what is the state of compiler? on or off and is compiler should be on after module/ extension installation ?
user avatar
1 vote
1 answer
1k views

Mage registry key "_singleton/ambase/feed" already exists

One of the extension from Amasty was already installed in my website. I've installed another extension OPC and now I'm getting the error Mage registry key "_singleton/ambase/feed" already exists. I'...
user avatar
  • 6,697
0 votes
1 answer
40 views

Magento Compiler with multi websites

I have an instance of magento and i want to put two differents websites, so i have it : **Website 1 - Store 1 - View 1** **Website 2 - Store 2 - View 2** When i put compiler on, it works on Website ...
user avatar
39 votes
3 answers
7k 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 ...
user avatar
  • 43.7k
1 vote
1 answer
27 views

In Compilation what task performed by magento

I bought many extension from somewhere.In whole document they mentioned compilation process. Basically I want to know that magento compilation , what the mean of that and what task being done by ...
user avatar
  • 1,125
1 vote
1 answer
2k views

Magento Upgrade: Fatal error: Class 'Magento_Db_Adapter_Pdo_Mysql' not found in /home/xxxxx/public_html/includes/src/__default.php on line 29298

I just updated my magento installation from 1.7 to the latest version via FTP and now when I try to access the website or the backend I get the error Fatal error: Class '...
user avatar
  • 99
0 votes
1 answer
158 views

Which [varien] object is required to successfully run getCompilerStatus()?

I'm attempting to programmatically determine if Magento's compilation status is enabled or disabled. I found the function getCompilerStatus() in app/design/adminhtml/default/default/template/compiler/...
user avatar
  • 1,439
2 votes
3 answers
5k views

Fatal error message

I manage my website with magento but I tried to connect to my page and I have the following message ; Fatal error: Class 'Mage_ConfigurableSwatches_Helper_Data' not found in /home/jmellman/...
user avatar