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.

40 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
1answer
223 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
1k 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
2answers
209 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 ...
2
votes
1answer
66 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
140 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
259 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
25 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
144 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
0answers
106 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
166 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
102 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
25 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
511 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
185 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
161 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
479 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
551 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
37 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
0answers
19 views

magento 2.2.1 Cannot declare class Hybrid_Autoload, because the name is already in use

i have porto theme allready installed when i am installation new theme after run upgrade or compile command then below type error showing Cannot declare class Hybrid_Autoload, because the name is ...
0
votes
0answers
24 views

Magento2.3.4 Compilation Error: MiBPHP Fatal error

I'm trying to upgrade an existing Magento 2.2.4 installation to 2.3.4. The initial step performed was to update to 2.3.0 first, which went fine and without any errors, but when I'm trying to update ...
0
votes
1answer
14 views

Magento Stuck at running command

My Magento command for compile is stuck What should I do and what is the problem??
0
votes
1answer
32 views

Is it good practice to edit custom extension's code after compilation

I get lots of adjustment requests (feature add, issue fix, etc) every day from one of my client. Their site is in production mode and they want the changes to take effect immediately. I believe ...
0
votes
1answer
20 views

Important div tag commented out when on production mode

We noticed that some of our page layout has been broken. Did some debugging and found out that when in production mode there are some errors with the tags. Specifically: <!--?php <?php <?...
0
votes
1answer
28 views

Magento2 : Error when running setup:di:compile

I create a custom model and di.xml was written up, however when I try to run setup:di:compile, it said the "generated/code/Magento/MediaStorage/Model/File/Storage/Response/Interceptor.php" file can'...
0
votes
0answers
60 views

Magento 2.3 Class does not exist on error Compilation

When I tried to do the compilation via php bin/magento setup:di:compile, I got the following error. I installed Landofcoder's SMS notification extension. I was thinking the issue is arising due to ...
0
votes
0answers
162 views

Magento 2 : Class Magento\ServicesConnector\Api\ConfigInterface does not exist

When I'm setting up the Magento system, facing error as Class Magento\ServicesConnector\Api\ConfigInterface does not exist during setup:di:compile Does anyone have Magento_ServicesConnector ...
0
votes
0answers
47 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
120 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
54 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
340 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
27 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
145 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
348 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
204 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
259 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
342 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
129 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
253 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\...