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
0 answers
26 views

Magento 2.4.4 (PHP 8.1) Error while running setup:di:compile

Repositories code generation... 1/9 [===>------------------------] 11% < 1 sec 77.0 MiBClass "Rsg\Enquiry\Controller\Index\Magento\Framework\View\Element\Template" not found#0 /home/...
user avatar
  • 1
1 vote
1 answer
26 views

Magento 2 setup:di compile error In ErrorHandler.php line 61:

Warning: file_put_contents(root/generated/metadata/primary|global|plugin-list.php): failed to open s tream: No such file or directory in D:\xampp\htdocs\wp7\vendor\magento\framework\Interception\...
user avatar
0 votes
1 answer
228 views

Magento 2.4.4 - issue with setup:di:compile

I recently upgraded my site to Magento 2.4.4 with PHP 8.1 and noticed that when I try to run the command '$ php bin / magento setup: di: compile' the process stops at 1/9 with this error message : 1/...
user avatar
  • 297
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
50 views

DB access during "bin/magento setup:di:compile"

I have a project in which DB access is happening during the DI compilation process. My understanding is that there should be no DB access while running bin/magento setup:di:compile. When I test this ...
user avatar
0 votes
0 answers
26 views

Magento 2 MiBPHP fatal Error

I am working on my Magento 2 and when i run the setup:di:compile commant i am running into the following message ( see screenshot ) I have opened this directory to open the file and check line 20 for ...
user avatar
0 votes
0 answers
40 views

Magento 2.4.3p1: Compilation Error after upgrade from 2.3.3 to 2.4.3-p1

I'm getting this error after upgrading from 2.3.3 to 2.4.3-p1, while running di:compile. Compilation was started. Application code generator... 3/9 [=========>------------------] 33% 23 secs 324....
user avatar
0 votes
1 answer
32 views

Compilation error Magento 2.4.3

what kind of compilation error is this? Can I share with you other info? I have Magento 2.4.3 https://ibb.co/sVFd0Nq
user avatar
0 votes
1 answer
48 views

Install Inventory Manager in 2.4.3 version

I'm trying to install Inventory Manager in my Magento 2.4.3 version after Magento installation. For doing this I download the entire project from here https://github.com/magento/inventory and upload ...
user avatar
0 votes
2 answers
89 views

Magento 2.4.3p1: Compilation error

I am getting this error on compile: Repositories code generation... 1/9 [===>------------------------] 11% < 1 sec 127.0 MiBsyntax error, unexpected 'parent' (T_STRING)#0 /home/737025....
user avatar
0 votes
1 answer
25 views

Magento: Upgrade modules, Compile code, Deploy static content, Flush cache

I am running this gist after changing anything in module code. I need feedback for improving this gist & Magento 2 development. https://gist.github.com/enishant/211212beeadff49aba00c0622a0f33ab
user avatar
  • 101
0 votes
1 answer
40 views

Compilation error in magento 2.4

Class Webkul\Marketplace\Helper\Data does not exist Class Webkul\MobikulMp\Controller\Seller\RewriteUrlPost\Interceptor generation error: The requested class did not generate properly, because the '...
user avatar
  • 361
0 votes
1 answer
390 views

Class ... does not exist In classReader.php line 34 in magento2

Just got a problem while compiling: Compilation was started. Area configuration aggregation... 5/9 [=======>-----] 55% 1 min 326.0 MiB In ClassReader.php line 45: Impossible to process constructor ...
user avatar
0 votes
1 answer
368 views

magento2.4.1 setup:di compile error

I got a small problem when compiling magento,i.e, C:\xampp\htdocs\magento-ce-2.4.1-2020-09-25-04-08-02>php -dmemory_limit=4G bin/magento setup:di:compile Compilation was started. Plugin list ...
user avatar
3 votes
1 answer
3k views

Magento 2 - The requested class did not generate properly, because the 'generated' directory permission is read-only

I got this issue after running bin/magento setup:di:compile $ bin/magento setup:di:compile Compilation was started. Interceptors generation... 4/9 [============>---------------] 44% 16 secs 300.0 ...
user avatar
  • 31
0 votes
2 answers
43 views

php -dmemory_limit=-1 bin/magento setup:di:compile

I am trying to install our live website into the localhost But I have encountered this error while running command php -dmemory_limit=-1 bin/magento setup:di:compile Parse error: syntax error, ...
user avatar
0 votes
2 answers
66 views

Magento 2: Custom module error Class OAuth\Common\Storage\Session does not exist

I have using Magento 2.4.2 enterprise edition and install custom module after run command php bin/magento setup:upgrade and then run command php bin/magento setup:di:compile but facing error while run ...
user avatar
  • 3,179
0 votes
2 answers
796 views

Laminas compile error at update to 2.4.3

I was updating Magento Community from 2.4.2 to 2.4.3 and get this error at compile on 55%: Deprecated Functionality: Class Laminas\Hydrator\Reflection is deprecated, please use Laminas\Hydrator\...
user avatar
0 votes
3 answers
156 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 ...
user avatar
  • 409
0 votes
0 answers
26 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 ...
user avatar
  • 146
1 vote
0 answers
95 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: ...
user avatar
  • 526
0 votes
0 answers
21 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 ...
user avatar
0 votes
1 answer
425 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 ...
user avatar
  • 526
0 votes
1 answer
90 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:...
user avatar
  • 1,967
0 votes
2 answers
231 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 ...
user avatar
  • 2,441
1 vote
2 answers
547 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/...
user avatar
0 votes
1 answer
207 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 ...
user avatar
0 votes
0 answers
72 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 ...
user avatar
1 vote
1 answer
321 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\...
user avatar
  • 15
0 votes
4 answers
309 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 ...
user avatar
  • 4,657
0 votes
0 answers
92 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\...
user avatar
0 votes
0 answers
18 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 ...
user avatar
1 vote
1 answer
1k 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):...
user avatar
  • 95
0 votes
0 answers
31 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?
user avatar
0 votes
1 answer
649 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 ...
user avatar
  • 95
0 votes
1 answer
395 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 [=================>----------] ...
user avatar
  • 5,094
2 votes
1 answer
209 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/...
user avatar
1 vote
1 answer
611 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 ...
user avatar
  • 297
0 votes
1 answer
61 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:...
user avatar
  • 135
0 votes
2 answers
164 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 ...
user avatar
2 votes
1 answer
2k 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 ...
user avatar
  • 480
1 vote
2 answers
254 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\...
user avatar
0 votes
1 answer
21 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 ...
user avatar
0 votes
1 answer
218 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 ...
user avatar
  • 887
0 votes
1 answer
434 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:...
user avatar
  • 548
0 votes
0 answers
729 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.
user avatar
  • 309
0 votes
2 answers
114 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, ...
user avatar
1 vote
1 answer
341 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"...
user avatar
1 vote
0 answers
25 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 ...
user avatar
1 vote
2 answers
125 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\...
user avatar
  • 67