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.

32 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
1answer
149 views

Magento-2.1 : Warning: Missing argument 2 for OAuth\Common\Consumer\Credentials::__construct()

I have used below code, it's working in Magento-2.2 but not working in Magento-2.1 after code compilation. public function __construct( \OAuth\Common\Consumer\CredentialsFactory $...
4
votes
3answers
3k 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/...
3
votes
0answers
278 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 '...
2
votes
1answer
40 views

Out of memory when compiling Magento 2 - increasing memory doesn't work

When compiling Magento 2, I'm getting the error: Fatal error: Out of memory (allocated 294125568) (tried to allocate 32 bytes) in /vendor/zendframework/zend-code/src/Scanner/FileScanner.php on ...
2
votes
1answer
78 views

How I can solve the di:compile error in Magento 2?

When I run setup:di:compile I got error Errors during compilation: Vendor\CustomRegistration\Model\Customer\DataProvider Incompatible argument type: Required type: bool. Actual type: \Vendor\...
2
votes
0answers
190 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 ...
2
votes
0answers
24 views

Magento 2 : Most of the Links are not working after upgrade and compile in magento 2

Most of the Links are not working after upgrade and compile in magento 2.1 Like wish list, Add to Compare, edit/Delete product on cart page, Compare menu etc. Is there any solution ? The href ...
2
votes
0answers
98 views

Ignore specific path when running setup:di:compile in Magento 2.2.2

Is there a additional command to add to setup:di:compile command to ignore a specific path compilation? In Magento 2 this could be done with additional parameter --exclude-pattern, but in Magento 2.2 ...
1
vote
1answer
46 views

Why I still need to run setup:di:compile in developer mode?

Quick Intro I'm working on a payment module and using Magento 2.3.2 (irrelevant). As stated in many places, we don't need to run setup:di:compile when in developer mode (which is my scenario). As ...
1
vote
0answers
39 views

Magento 2 Problem with arguments in di.xml

The problem is this: I have a module, which passes arguments from di.xml to a class. Deploy mode is a developer. When I make changes in any arbitrary module or install a new module, and subsequently ...
1
vote
0answers
116 views

Generation Error for Source Class

I'm trying to compile etc. after recently upgrading to Magento 2.3.1. I use this command: $ php -dmemory_limit=-1 bin/magento setup:di:compile which returns this error: Source class "\Magento\...
1
vote
0answers
57 views

Magento2: impossible run command in terminal setup:di:compile

Impossible run command: php bin/magento setup:di:compile return error: [@s1 public_html]$ php bin/magento setup:di:compile PHP Fatal error: Uncaught Error: Cannot use object of type ...
1
vote
1answer
24 views

Magetno 2 What happen with App, when we put the site down

I have live site and mobile App and I need to upload one module on site. What happen with the mobile App, when I upgrade and compile magento site. Is mobile app will work at the same time when ...
1
vote
0answers
379 views

“Fatal error: Uncaught TypeError: Argument 1 passed to […]::__construct() must be an instance of […]” after (re-)compile

So I've inherited this weirdly behaving (and horribly tinkered) shop containing some external product and customer import scripts. One of these scripts ('importcustomer_fields.php', located in the ...
1
vote
0answers
37 views

Disable di:compile PHP Comments check in Magento 2.2.2

I Upgraded to Magento 2.2.2 and now di:compile checks if @params comments for constructors are correct. I have many modules where the comments are incorrect but the params are correct, so I want to ...
1
vote
0answers
183 views

uncaught error class magento/indexer/model/config/reader

I have been facing this issue since ui upgraded my magento site form 2.0.7 to 2.1.5. When trying to run magento setup:upgarde command to install extension it gives uncaught error class magento/indexer/...
1
vote
0answers
146 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?
1
vote
0answers
460 views

Problem compiling!!! setup-di-compile yields segmentation error Magento 2.1.3

php bin/magento setup:di:compile Compilation was started. Proxies code generation... 0/7 [>---------------------------] 0% 1 sec 18.0 MiProxies code generation... 1/7 [====>--------------------...
1
vote
0answers
544 views

Why does setup:di:compile fail on PHP 7 but not on PHP 5.6?

Running: Ubuntu 16.04 LTS (also happens on Debian Stretch) Magento 2.1.1 PHP 7.0.8-0ubuntu0.16.04.3 (cli) ( NTS ) Magento installed and DB set up etc. I run: rm -rf var/di/* var/generation/* var/...
0
votes
1answer
29 views

Magento 2.3 performance drop after running php bin/magento setup:di:compile

While working on a development instance I installed the stripe payment module and then ran php bin/magento setup:di:compile I hadn't previously done this on this install and it's been running for ...
0
votes
0answers
45 views

Magento2: setup:di:compile issue

Got the error below when I run the setup:di:compile command [Magento\Framework\Exception\LocalizedException] Source class "\Magento\Framework\EntityManager\OperationInterface" for "Magento\...
0
votes
2answers
79 views

During setup:di:compile getting error:- Source class “\PHPExcel_IO” for “PHPExcel_IOFactory” generation does not exist

When i'm running "setup:di:compile" or setting mode to "production" from "default" then getting following error:- Please help me to resolve this problem immediately. ------Update@Start--------------...
0
votes
0answers
45 views

fatal error on compile command

Today i had installed Fresh magento installation., When i tried to run the compile command, i got below error. Fatal error: Declaration of Magento\Checkout\Helper\Data\Proxy::sendPaymentFailedEmail(...
0
votes
1answer
171 views

Not able to compile complete in Magento2

I am running compile command php bin/magento setup:di:compile Compilation was started. Repositories code generation... 1/7 [====>-----------------------] 14% < 1 sec 54.0 MiB You have new mail ...
0
votes
1answer
26 views

folder writen issue come on website after updating setup of magento 2

Its come many time after upgrading setup Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/home/soft/public_html//var/cache/" is not writable in /home/soft/public_html//vendor/magento/...
0
votes
2answers
124 views

How to Remove Runtime Exception during Setup:di:compile command in magento 2.1.12?

[RuntimeException] Source class "\Magento\CatalogRule\Api\Data\RuleLabelInterface" for "Magent o\CatalogRule\Api\Data\RuleLabelInterfaceFactory" generation does not exist .
0
votes
1answer
277 views

Magento 2: showing error when running command setup:di:compile

I am getting this error when running setup:di:compile command, Plese help this is the error in SSH showing Compilation was started. Area configuration aggregation... 5/7 [====================>-...
0
votes
1answer
155 views

Magento Vagrant installation does not generate classes

I have switched to windows for a new project, and just setup Magento 2 using this vagrant box: https://github.com/paliarush/magento2-vagrant-for-developers I have it working, it is displaying ...
0
votes
1answer
183 views

magento setup:di:compile crashes: Warning: array_replace_recursive(): Argument #1 is not an array in Writer.php on line 135

I uninstalled a module with command: magento module:disable Dotdigitalgroup_Email and once I run: magento setup:di:compile I get this error message: Warning: array_replace_recursive(): Argument #...
0
votes
0answers
250 views

setup:di:compile - Warning: Narrowing occurred during type inference

I'm getting this error when running php -f bin/magento setup:di:compile Warning: Narrowing occurred during type inference Does anyone know how to fix it? php -f bin/magento setup:di:compile -...
0
votes
1answer
110 views

Technical Review Failed on: deploy:mode:set production

I recently submitted a module to the Magento Marketplace for Technical review; it got rejected with the following error: Command returned non-zero exit code: php -f /var/www/html/bin/magento ...
0
votes
1answer
225 views

Magento 2 - What is the happen when run setup:di:complie

When I run this command: php bin/mangento setup:di:compile It will throw the Error Exception below: [ErrorException] Magento\Catalog\Controller\Adminhtml\Product\Initialization\Helper\...