Questions tagged [setup-di-compile]

Denotes questions related to the setup:di-compile command of Magento 2. This command is used to compile the setup.

Filter by
Sorted by
Tagged with
0
votes
2answers
25 views

Error during compilation after upgrade from 2.4.1 to 2.4.2

I have below error while running php bin/magento setup:di:compile Compilation was started. Repositories code generation... 1/9 [==>----------------] 11% < 1 sec 105.0 MiB Interception cache ...
0
votes
0answers
25 views

Magento 2.3.6-p1 compile error AbstractConfigOption.php [duplicate]

Things I've tried: Disabling recent modules Manually deleting all cache files Resetting all file permissions No 3rd party modules ref AbstractConfigOption Disable all 3rd party modules Deleting and ...
0
votes
0answers
9 views

Class Magento\Framework\Mview\TriggerCleaner does not exist on running setup:upgrade error occurs on Magento 2

On running setup:upgrade error occurs and setup upgrade not started Class Magento\Framework\Mview\TriggerCleaner does not exist on di:compile this error occur In ClassReader.php line 43: ...
0
votes
1answer
79 views

ReflectionException Class Mirasvit\Core\Model\ModuleFactory does not exist, when running setup:di:compile or setup:upgrade

I received the following error when I run the command php bin/magento setup:di:compile Error [ReflectionException] Class Mirasvit\Core\Model\ModuleFactory does not exist The extension provider ...
0
votes
0answers
10 views

Allow backorder per website

We created a module to allow backorder per store view rather than default. This module works in Magento 2.3.3 but I tried to implement this to a Magneto 2.3.6 installation also. However, I get this ...
0
votes
1answer
117 views

Getting Error on di:compile in Magento 2.4.2

I have installed Magento 2.4.2 and then installed Claue Theme after setup theme and running command php bin/magento setup:di:compile it will working on 5 from 9 then give an error like Compilation ...
0
votes
1answer
32 views

Incompatible argument type: Required type: string. Actual type: \Magento\Store\Model\StoreManagerInterface;

I have setup a website on local. Magento version is 2.2.4 and php version is 7.0.33 Frontend is working but admin is not working after upgrade and deploy the code. But getting error during compilation:...
2
votes
1answer
1k views

Magento 2.4: Catalog Search index exception: Could not ping search engine: No alive nodes found in your cluster

We have installed Magento 2.4 on our local machine. After installing, we have got the below error when doing the setup:upgrade Could not validate a connection to Elasticsearch. No alive nodes found ...
0
votes
2answers
32 views

Magento 2 - preference override not working for method sendConfirmationRequestEmail of module-newsletter

I try to override the method sendConfirmationRequestEmail from the module-newsletter Module in vendor\magento\module-newsletter\Model\Subscriber.php. Attempt: app\code\Company\Newsletter2Go\etc\di.xml ...
4
votes
3answers
4k views

Magento 2 PHP Fatal error: Class not found when compiling

When I compile I get this error: PHP Fatal error: Class 'Magento\Catalog\Controller\Adminhtml\Category\Image\Upload' not found in /var/www/html/magento/app/code/Plazathemes/Override/Controller/...
1
vote
2answers
125 views

Error during compilation in magento2 .3 Incompatible argument type: Required type:

Webkul\Marketplace\Model\Order\Pdf\Creditmemo Incompatible argument type: Required type: \Magento\Store\Model\App\Emulation. Actual type: \Magento\Framework\Locale\ResolverInterface; File: /var/www/...
0
votes
0answers
29 views

Error When Running setup:di:compile

I am trying to do compilation of Magento 2.2.2 installation and I am getting errors as shown below. Kindly assist in how to resolve it. Thanks in advance. [root@www html]# bin/magento setup:di:compile ...
1
vote
1answer
49 views

Magento 2 error : Incompatible argument type: Required type: \Magento\Framework\Registry. Actual type: array; File:

Code use Magento\CustomerBalance\Helper\Data; use Magento\Framework\App\ObjectManager; use Magento\Framework\Registry; use Magento\Framework\View\Element\Template; use Magento\Framework\View\Element\...
18
votes
6answers
5k views

Magento 2.3.3 Fails on magento setup:di:compile with an error mentioning InvoiceFlexFieldProcessorInterface

I have installed the new Magento 2.3.3 version. After I have run the command: php bin/magento setup:di:compile I have Faced the following error: PHP Fatal error: Interface 'Vertex\Tax\Model\...
0
votes
4answers
212 views

Compile issue: Class AreProductsSalableInterface does not exist

Having issue in setup:di:compile and give below issue Already checked: Magento 2 Setup di Compile Problem Magento Vesion: 2.3.1 Update 1: If i try with command bin/magento setup:di:compile -vvv, it ...
6
votes
3answers
3k views

Reference to undeclared plugin with name 'stockedProductsFilterPlugin' warning in di compile magento 2.3.2

I have recently upgraded my site from Magento 2.2.6 to Magento 2.3.2. During each di compilation it shows a warning like main.INFO: Reference to undeclared plugin with name '...
4
votes
2answers
6k views

Disable setup:di:compile

Maybe this is a very silly question. I can not understand why I must run the command setup:di:compile every time I make changes to custom modules, to see the results when I am in developer mode. Can ...
0
votes
0answers
53 views

When we run di:compile then getting error in magento 2.1.3

When we run command di:compile then we are getting error. we are using magento 2.1.3 sudo php bin/magento setup:di:compile Compilation was started. Area configuration aggregation... 5/7 [==============...
5
votes
4answers
19k views

Uncaught TypeError: Argument 1 passed to […] must be an instance of

I have been having this issue for several weeks now and after looking through similar issues on this site and others, I still can't figure out how to solve this problem. After successfully executing ...
0
votes
0answers
47 views

Am running the command setup:di:compile, I get this error:

php bin/magento setup:di:compile Compilation was started. Area configuration aggregation... 5/8 [========>-----] 62% 34 secs 348.0 MiB In ClassReader.php line 43: Class Magento\Catalog\Model\...
0
votes
1answer
226 views

Magento 2.4 is this possible bypass Elasticsearch?

i have upgraded magento 2.3.4 to 2.4.0 but when I run compile command, it's showing an error Error: Compilation was started. Area configuration aggregation... 5/8 [=================>----------] ...
0
votes
0answers
12 views

Deactivating and reactivating plugins on-the-fly

I am currently developing on a VM with a Ubuntu host machine - it is super slow. I am currently trying to implement a plugin but the magento s:d:c command takes 6 minutes. Within examples for Plugins ...
1
vote
1answer
366 views

Magento 2 di:compile error - Directory not empty

How to solve the following error, The directory "C:/xampp/htdocs/mage/generated/code/Magento/Framework" cannot be deleted Warning!rmdir(C:/xampp/htdocs/mage/generated/code/Magento/Framework):...
0
votes
0answers
14 views

Magento 2.3 Compilation Command Break without any error, how can track the actual error?

When run compile command break automatically, no error found in log file, how can i track the actual error?
0
votes
1answer
127 views

bin/magento setup:di:compile getting 'generated' directory permission is read-only' error

During run bin/magento setup:di:compile getting following error, i gave 777 permission to generated folder still getting error. How to solve the following error, Class Magento\Inventory\Model\Source ...
2
votes
1answer
109 views

Compiling failed

I am trying to compile Magento 2.3.1 and it says Fatal error: Interface 'Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection\SearchResultApplierInterface' not found in /home/customer/www/...
0
votes
2answers
75 views

Receiving this error class XSLTProcessor does not exists

I am receiving this error. I tried with the followings: Changing the file permission in generated folder Tried removing cache and page_cache in var folder Then tried removing generated folder as well ...
0
votes
0answers
60 views

Magento 2.4.1 Compile Problem

After fresh install magento 2.4.1, running the command setup:di:compile gives the error currently working on windows i tried all this on developer mode chmod -R -v 777 generated 1) php bin/magento ...
1
vote
1answer
207 views

Magento 2 setup:di:compile not work

When i try to start command setup:di:compile i see this error: and this is the file FileClassScanner.php: <?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license ...
0
votes
1answer
46 views

Block override issue in Magento2

I am overriding Google analytics block file. Here is my Vendor/Module/etc/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
2answers
1k views

Magento 2 : Issue on setup:di:compile

When I run the command php bin/magento setup:di:compile I am getting an error as below PHP Fatal error: Uncaught Error: Cannot instantiate interface Symfony\Component\Console\Output\...
0
votes
0answers
32 views

Magento to compiling issue | Requested class did not generate properly

Firstly please don't label it as duplicate as I have tried everything suggested in other answers. Issue is that content of generated dir does not generate properly. Because generated dir is never ...
2
votes
3answers
293 views

Magento 2: Command returned non-zero exit code during submission on marketplace

I have submitted a module to the marketplace, I have tested it by all cases. I have switched to production mode but I am not getting any errors. However, I am getting a failure on submission with the ...
6
votes
2answers
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 ...
1
vote
2answers
175 views

Class NewRelic\Monolog\Enricher\Handler does not exist

I just reinstalled magento using composer install Then I tried to run this command php bin/magento setup:upgrade and also tried running other setup commands. I got the following error: Class NewRelic\...
0
votes
1answer
19 views

Magento directing all link for pages and admin to old domain except the homepage

I have done all magento things which were supposed update the core_config data table setup:di:compile setup configured base_url through command line and also done with n98 My site home page is only ...
0
votes
1answer
131 views

temando module-shipping-m2 error

Disable the temando module-shipping-m2 then i got error magento 2.2.6 -bash-4.2$ /opt/plesk/php/7.1/bin/php bin/magento setup:di:compile Compilation was started. Proxies code generation... 0/7 ...
0
votes
1answer
313 views

Magento2: Class 'MongoDB\Driver\Manager' not found

On running di:compile command I am getting the following error: Fatal error: Uncaught Error: Class 'MongoDB\Driver\Manager' not found in /var/www/html/monotaro/vendor/mongodb/mongodb/src/Client.php:...
0
votes
0answers
368 views

Magento 2 commands automatically killed

I am running commands setup:di:compile and cache: clean it's running for while, but after sometime it got killed in magento2.3.2. Please let me know the exact issue for this.
0
votes
2answers
55 views

Magento 2.3.2 compilation error

I have a website in Magento 2.3.2. This morning the website was in production mode. I added a custom module (I don't think is related to this problem) run bin/magento setup:upgrade, bin/magento c:f, ...
1
vote
1answer
111 views

Why I'm receiving an error messages Class does not exist when running DI compile?

Why am I receiving error messages "Class does not exist" when running DI compile? I removed some modules using the node replace in my composer.json, as you can see below. "replace"...
3
votes
1answer
375 views

Vertex generation doesn't exist …?

Magento 2.2.4, php7. I' ve been having this error when I try to switch to production and when i try to di:compile; Source class \Vertex for \Vertex\Mapper generation does not exist. No errors in ...
1
vote
2answers
169 views

Any Drawback on running setup:upgrade, di:compile, static deploy everytime code level edit on Magento 2

Is it ok to run the following set of commands by default everytime I make a code level edit (layout edits, module creation, extension update) php bin/magento setup:upgrade php bin/magento setup:di:...
1
vote
0answers
21 views

DI compilation error when referenced module is not installed

I have a module that integrates with other modules from other developers. These other modules may or may not be installed, it is different for each user. As an example, the MSG_InstantSearch module ...
1
vote
2answers
95 views

After upgrade from 2.3.4 to 2.3.5 got compilation error with module

I am trying couple of hours to figure out what is wrong with this constructor and have no idea namespace Aitoc\ProductFileAttachments\Block\Product; use Aitoc\ProductFileAttachments\Model\...
3
votes
2answers
557 views

DI compile step fails after update to 2.3.5

Using Magento Cloud, the DI compile step keeps failing after upgrading from 2.3.3 to 2.3.5 via composer and pushing the changes up. The error is the same every time I've tried, which is: PHP Fatal ...
2
votes
1answer
199 views

Magento Multi-tenant compliation

What exactly is a multi-tenant compiler in Magento as referred in this link: http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-compiler.html?
0
votes
1answer
178 views

Magento 2.3 Warning: Declaration of MGS\Amp\Block\Html\Topmenu

I am getting this error: Warning: Declaration of MGS\Amp\Block\Html\Topmenu::_getHtml(Magento\Framework\Data\Tree\Node $menuTree, $childrenWrapClass, $limit, array $colBrakes = Array) should be ...
0
votes
2answers
27 views

Magento 2 - Incompatible argument type, even though constructor parent call matches extended class

I try to extend this class from my own module, because I need to inject another dependency to the constructor and add a few new methods: vendor\aheadworks\module-wbtab\Block\Wbtab\ProductList.php ...
0
votes
1answer
457 views

Magento 2.3.5 Incompatible argument type errors during compilation

I'm trying to compile after upgrade to magento 2.3.5-p1 and I get this error: public_html$ php bin/magento setup:di:compile The directory "/public_html/generated/code/Magento" cannot be deleted ...