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.

50 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
1answer
245 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
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/...
3
votes
0answers
132 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 ...
2
votes
1answer
112 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 ...
2
votes
0answers
249 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 ...
2
votes
1answer
85 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
165 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
1answer
321 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
26 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
159 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 ...
2
votes
1answer
181 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
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
0answers
158 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
184 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
1answer
390 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 ...
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
542 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
38 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
490 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
557 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
0answers
9 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
13 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 ...
0
votes
1answer
32 views

Magento 2.4 is this possible bypass Elasticsearch?

i have upgrade magento 2.3.4 to 2.4.0 but when i run in compile command and it's showing error Error: Compilation was started. Area configuration aggregation... 5/8 [=================>----------]...
0
votes
0answers
21 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 ...
0
votes
2answers
40 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
23 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 ...
0
votes
1answer
50 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
0answers
97 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
51 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, ...
0
votes
0answers
21 views

MySQL Gone Away Error in Setup:Upgrade:- Avoiding ALTER Queries on Tables which does not have changes

We have been experiencing the issue of My SQL Gone Away while doing the setup:upgrade of Magento. We have been seeing this error on while doing setup:upgrade and the occurrence of this, is happening ...
0
votes
1answer
101 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
33 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
86 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
44 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
34 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
21 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
38 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
98 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
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
153 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
28 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
150 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
382 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
219 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
292 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
380 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
141 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
271 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\...