2022 Developer Survey is open! Take survey.

Questions tagged [compilation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Errors during compilation

Errors during compilation: Custom\Grid\Model\ResourceModel\Grid\Grid\Collection Incompatible argument type: Required type: \Magento\Framework\DB\Adapter\AdapterInterface. Actual type: \Custom\Grid\...
user avatar
  • 35
0 votes
1 answer
74 views

Warning: array_replace_recursive(): Expected parameter 2 to be an array,

When I am running this command in the magento 2.4 : sudo bin/magento s:up && sudo bin/magento s:di:c && sudo bin/magento c:f I got this error I tied many things but don't work. Warning:...
user avatar
0 votes
0 answers
79 views

LinkedProductSelectBuilderComposite::build($productId) error in Magento 2.4.2?

I installed Magento 2.4.2 using CLI and after I have done some work on it I wanted to compile. I got this error: Fatal error: Declaration of Magento\ConfigurableProduct\Model\ResourceModel\Product\...
user avatar
3 votes
2 answers
3k views

Warning: file_put_contents in plugin-list.php and PluginListGenerator.php in Magento 2.4.2 during compilation

While compilation the Magento 2.4.2 experienced following error Warning: file_put_contents(ProjectName/generated/metadata/primary|global|plugin-list.php): failed to open stream: No such file or ...
user avatar
1 vote
2 answers
504 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
79 views

Error during compilation of Magento 2 Incompatible argument type : Required type:

Webkul\VendorPos\Model\ResourceModel\Orders\Grid\Collection Incompatible argument type: Required type: \Magento\Framework\App\Config\ScopeConfigInterface. Actual type: \Magento\Framework\DB\Adapter\...
user avatar
0 votes
0 answers
25 views

M2.3.5 | compilation error: Incompatible argument type "ResolverInterface-Emulation"

I found similar questions but not my argument, can someone please find what error is this? Errors during compilation: Emagicone\Mobassistantconnector\Helper\PdfInvoice ...
user avatar
0 votes
1 answer
37 views

Magento 2 compile css error during upgrade

I have made some changes in CSS and upgrade as usually, it gives that error but suddenly hide from and no prob will come on CSS deploying but now it struck and I have no idea why. I tried to recompile ...
user avatar
0 votes
1 answer
326 views

Enabling client side less compilation breaks everything, getting 404 errors and couldn't go back to server side compilation mode

Once I enabled client-side less compilation, the entire page breaks. getting 404 errors for less files. I'm on developer mode. tried clearing var/cache, var/view_preprocessed, var/page_cache, pub/...
user avatar
1 vote
2 answers
1k views

Magento2 - Running di:compile stops at 57% in magento 2.3.2

Class Magento\Framework\Mail\EmailMessageInterfaceFactory does not exist Class Vendor\Extension\Model\Mail\TransportBuilder\Interceptor generation error: The requested class did not generate ...
user avatar
0 votes
2 answers
510 views

Magento 2 compilation problems

I'm having some problems running di:compile, when running it stops at 57% with one error in braintree an braintreegraphql. Those modules are both disabled, but the problem is still there. I«m running ...
user avatar
1 vote
0 answers
227 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 ...
user avatar
  • 33
0 votes
0 answers
165 views

Compilation error, how to debug

When building Magento, a lot seems to fail when expected to work. One computer may succeed in building, while another throws a few errors. This may be because of the difference in PHP, but the ones I ...
user avatar
  • 101
0 votes
2 answers
2k views

Magento 2.3.2 Error while Compilation

I am having this issue after updating Magento from 2.3 to 2.3.2 Fatal error: Declaration of Magento\QuoteGraphQl\Model\Cart\SetShippingAddressOnCart::execute(Magento\Framework\GraphQl\Query\...
user avatar
  • 902
0 votes
1 answer
475 views

Magento 2: Class ParadoxLabs\TokenBase\Model\CardFactory does not exist

When tried to run the compile command I got this error. I run the cache flush, set the permission for var, generated folders but no luck. I don't have this custom module on my project (ParadoxLabs\...
user avatar
0 votes
3 answers
148 views

Error while running di:compile command

Getting ReflectionException] Class PayPal\Api\PayoutSenderBatchHeader does not exist error while running php bin/magento setup:di:compile command
user avatar
  • 61
2 votes
1 answer
388 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\...
user avatar
  • 1,037
1 vote
1 answer
1k views

Compilation from source on static-content deploy in magento 2.3.0 when upgraded from magento 2.2.2

Hello i had upgraded magento 2.2.2 to 2.3.0 and i am getting following error when i do setup:static-content:deploy Compilation from source: /home/xxxxxxxx/public_html/xxxx/xxxxxx/vendor/magento/theme-...
user avatar
0 votes
1 answer
32 views

where does magento2 store extension files after compilation

I need to know where does magento2 store extension files after compilation as i am making changes in extension i need to always run commands, if i don't want to run commands for some time as we can ...
user avatar
  • 3,426
1 vote
2 answers
2k views

When I set client side less compilation shows me error

Hello I am new in developing in Magento, I have Magento CE. When I set the Front End development workflow to type client side less compilation shows me an error Fatal error: Uncaught TypeError: ...
user avatar
0 votes
1 answer
55 views

Unable to Compile in magento2

i'm unable to compile in magento2 if i run the Compile command always give the result like below [dsdfsd@srv2 www]$ php bin/magento setup:di:compile Compilation was started. Proxies code generation......
user avatar
  • 502
2 votes
1 answer
427 views

Compilation error due to final class Vault in Magento version before 2.2.0

I am writing a plugin on class Magento\Payment\Model\MethodInterface: <type name=“Magento\Payment\Model\MethodInterface”> <plugin name=“mageworx_ordereditor_change_title_print_order” ...
user avatar
1 vote
4 answers
3k views

Magento2 : How to compile SCSS to CSS in Ubuntu

Any one have idea How to compile SCSS to CSS in Magento2
user avatar
0 votes
0 answers
37 views

Admin panel is down due to compilation issues. Admin panel is down with 500 error

One of my website admin panel is down usually. Once i disable the compilation it works normally but after few hours site goes down and in mentioned file first line changed by its own. /var/www/html/...
user avatar
  • 1,656
0 votes
2 answers
45 views

Magento 1.7 : All PAge White after start Compilation

After start Compilation i got white screen. IF i will disable compilation website working good. I don't want to disable compilation so please don't suggest this type of answer. Thanks
user avatar
  • 1,473
0 votes
2 answers
207 views

Magento 1.9.x - Compiler Error after install Extension

I tried a new extension for Magento Community (https://github.com/integer-net/solr-magento1) , after is produce many errors I deleted all the files. Now, its cause error when Magento-Compiler is ...
user avatar
  • 11
0 votes
2 answers
35 views

Magento2: How to compile custom payment module

I am new to magento, currently working on a custom payment module created by another Developer. I am facting hard time to understand module. This module has A drop-down List before placing order, ...
user avatar
1 vote
2 answers
1k views

Error during compilation after upgrade in magento 2.2.3

Got error during compilation after upgrade in magento 2.2.3 Interception cache generation... 6/7 [========================>---] 85% 42 secs 342.0 MiBErrors during compilation: Magento\...
user avatar
  • 1,175
2 votes
3 answers
1k views

Incompatible argument type error in Magento 2.2.2

I have installed Magento 2.2.2. Running php bin/magento setup:di:compile result in this error: Magento\Backend\Model\View\Layout\GeneratorPool Incompatible argument type: Required type: \Magento\...
user avatar
0 votes
2 answers
640 views

HTTP ERROR 500 in checkout when compilation is on and user is logged

I recently updated my Magento to 1.9.3.8. Now, I have a HTTP ERROR 500 in a specific case. I got an error when the following three conditions are met: URL : base_url/checkout/cart OR base_url/...
user avatar
  • 1
3 votes
0 answers
472 views

Magento is not working after compilation

Initially, observers are not worked & I found that compilation is enabled.So I have used these steps to disable compilation.But no use.After using the third step.The site itself not working. How ...
user avatar
  • 293
0 votes
1 answer
138 views

Magento optimisation : Compilation and Use Flat Catalog Product Features

I would like to improve the performance of my Magento website. After checking online, it seems that I can: - Set Use Flat Catalog Product to YES - Enable the Compilation Tool I will do a Cpanel ...
user avatar
0 votes
0 answers
432 views

Magento1 compilation breaks shopping cart

Using Magento version 1.9.3.1 on a live store setup. When compilation is enabled, the shopping cart gives a blank screen. The actual checkout page loads fine, but the shopping cart is blank More info ...
user avatar
  • 1,013
0 votes
1 answer
304 views

2.2 theme compilation error [closed]

Hi since updating to magento 2.2 I am getting a theme compilation error. I have contacted the developer but they are in India and take a few days to reply so hoping I can get help here quicker. Thanks ...
user avatar
  • 11
0 votes
2 answers
447 views

Compile error in theme after updating to 2.1.8

I have just updated from 2.1.7 to 2.1.8 but when I run: php bin/magento setup:di:compile I get an erroe which is: [Exception] Warning: Declaration of Plazathemes\Override\Controller\...
user avatar
  • 11
0 votes
1 answer
39 views

Magento Mail Up Extension Compilation Problem

when I active the compilation on magento I've this error with Mailup. Any ideas on how to make it work with compilation? Fatal error: require_once(): Failed opening required '/home/mydomain/...
user avatar
  • 123
2 votes
2 answers
3k views

Magento\Customer\Model\Customer::__construct() must be an instance of Magento\Framework\Model\Context

I have create a module and its working fine when compilation is disabled. Its getting below error when after compilation run. PHP Fatal error: Uncaught TypeError: Argument 1 passed to Magento\...
user avatar
2 votes
2 answers
2k views

Fatal error in magento 2 compilation

After running compilation code php bin/magento setup:di:compile I'am getting the following error Fatal error: Cannot use 'Void' as class name as it is reserved in /va r/www/html/m2/vendor/...
user avatar
  • 694
1 vote
2 answers
5k views

Using a different PHP version to compile Magento project

I have a site running Magento-CE-2.1.5 in a ubuntu server. I have 2 PHP versions running alongside: PHP 7.0.18 PHP 7.1.6. Each time i try to setup Magento it shows PHP version 7.0.18 but the ...
user avatar
10 votes
2 answers
4k views

What is Compilation in Magento and its use? [duplicate]

I want to know the use of compilation in Magento. How it is helpful in my project and its benefit after enabling it.
user avatar
1 vote
2 answers
1k views

How to set frontend compilation via the database

How do you set the front-end workflow option via the DB rather than the admin? This is the setting I'm referring to: Stores > Configuration > ADVANCED > Developer > Front-end ...
user avatar
  • 15.2k
4 votes
2 answers
571 views

Magento 1 compile vs Magento 2 compile

We can disable Compilation in Magento 1 in the admin. But there is no settings in Magento 2 in the admin. Also compile is something different compare with m1. Its depending on the mode (default,...
user avatar
1 vote
0 answers
76 views

why Magento2 serves LESS files when I'm in server-side-less-compilation modus?

I have changed my admin-config LESS compilation modus to: Client side less compilation. Now I have changed it back to: Server side less compilation. But my admin panel and webstore still serve less ...
user avatar
0 votes
1 answer
1k views

Magento 2 - Server side vs client side compilation (Pros and Cons)?

What do I need to know to compare Server side and client side compilation mode on my Magento 2 store? This config is on Store > Configuration > Advanced > Developer > Frontend Development Workflow.
user avatar
0 votes
1 answer
1k views

Magento’s Compilation on 1.9.2.4

A quite simple question maybe, but should I enable Magento’s Compilation on my 1.9.2.4 install? Will it improve the speed of my Magento store with 90.000+ products?
user avatar
  • 1,474
5 votes
1 answer
779 views

How to compile gallery and calendar css with grunt?

I have put gallery.less and calendar.css in web\mage\gallery and web\mage respectively in my custom theme, But they are not compile with grunt. How can i compile these files with grunt like other ...
user avatar
2 votes
1 answer
706 views

Change background color Magento 2 header panel and compile less on Staging server

In /app/design/frontend/MyThemeName/my-theme/web/css/source/_theme.less I added @header-panel__background-color: @color-green-green1; To change the background color of the header panel (I have a ...
user avatar
  • 417
2 votes
2 answers
1k views

Error While Compiling Magento 2 admin page module

I'm getting error while compiling the Magento 2 admin module. The error which I'm getting is Fatal error: Class Tutorial\SimpleNews\Controller\Adminhtml\News contains 1 abstract method and must ...
user avatar
1 vote
2 answers
410 views

OptionInterfacePersistor error when compiling magento in production mode

I'm trying to run php bin/magento setup:di:compile-multi-tenant on a Magento CE 2.0.10 with sample data installed. I don't have anything else in this Magento installation. I use php 7.0.8. [Magento\...
user avatar
  • 3,222
3 votes
1 answer
7k views

What I do if setup:di:compile fails?

I'm trying to understand what particular impact may have a problem I'm facing with when deploying a Magento 2 project. I run a set of commands in order to update the website and refresh/reindex/...
user avatar