Magento 2 Setup di Compile Problemmagento 2 setup compile errorwhen setup upgrade after add extention module, error occurMagento model extension experiment, return: “class does not exist”“Class doesn't exist” error on Marketplace Sumission but class is thereMagento 2: Plugin class does not existMagento compile error php bin/magento setup:di:compileReflectionException: Class does not existMagento 2.3: How to solve the message “Unable to send email”?“We can't save the customer” error after Migration - Magento 2.3When to run compile command in Magento?
Grouping into more groups in one iteration
Should I have shared a document with a former employee?
Does unblocking power bar outlets through short extension cords increase fire risk?
Is there a difference between PIO and GPIO pins?
Wordplay addition paradox
Should I use a resistor between the gate driver and MOSFET (gate pin)?
Practical example in using (homotopy) type theory
In this iconic lunar orbit rendezvous photo of John Houbolt, why do arrows #5 and #6 point the "wrong" way?
Did Hitler say this quote about homeschooling?
Why isn't a binary file shown as 0s and 1s?
"Je suis petite, moi?", purpose of the "moi"?
How did Jayne know when to shoot?
How to belay quickly ascending top-rope climbers?
Who determines when road center lines are solid or dashed?
Is Error correction and detection can be done with out adding extra bits?
Term “console” in game consoles
How do you send money when you're not sure it's not a scam?
Applying for jobs with an obvious scar
What was the difference between a Games Console and a Home Computer?
What did Jeremy Hunt mean by "slipped" to miss a vote?
Why are there few or no black super GMs?
Is straight-up writing someone's opinions telling?
Is surviving this (blood loss) scenario possible?
Which modern firearm should a time traveler bring to be easily reproducible for a historic civilization?
Magento 2 Setup di Compile Problem
magento 2 setup compile errorwhen setup upgrade after add extention module, error occurMagento model extension experiment, return: “class does not exist”“Class doesn't exist” error on Marketplace Sumission but class is thereMagento 2: Plugin class does not existMagento compile error php bin/magento setup:di:compileReflectionException: Class does not existMagento 2.3: How to solve the message “Unable to send email”?“We can't save the customer” error after Migration - Magento 2.3When to run compile command in Magento?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
After I upgraded to Magento 2.3, running the command setup:di:compile, I get this error:
Area configuration aggregation... 5/7 [====================>-------] 71% 58
secs 276.0 MiB
In ClassReader.php line 35:
Class MagentoEmailModelSourceVariables does not exist
In ClassReader.php line 29:
Class MagentoEmailModelSourceVariables does not exist
setup:di:compile
I've checked the database setup_module to ensure no mismatch or missing scheme/data versions but all are ok.
magento2 command
add a comment |
After I upgraded to Magento 2.3, running the command setup:di:compile, I get this error:
Area configuration aggregation... 5/7 [====================>-------] 71% 58
secs 276.0 MiB
In ClassReader.php line 35:
Class MagentoEmailModelSourceVariables does not exist
In ClassReader.php line 29:
Class MagentoEmailModelSourceVariables does not exist
setup:di:compile
I've checked the database setup_module to ensure no mismatch or missing scheme/data versions but all are ok.
magento2 command
Have you override this class in custom module ?
– user55548
Dec 15 '18 at 6:00
Thanks but i have disabled all custom modules so it must have something to do with Magento?
– Mehdi Rafiai
Dec 15 '18 at 9:58
add a comment |
After I upgraded to Magento 2.3, running the command setup:di:compile, I get this error:
Area configuration aggregation... 5/7 [====================>-------] 71% 58
secs 276.0 MiB
In ClassReader.php line 35:
Class MagentoEmailModelSourceVariables does not exist
In ClassReader.php line 29:
Class MagentoEmailModelSourceVariables does not exist
setup:di:compile
I've checked the database setup_module to ensure no mismatch or missing scheme/data versions but all are ok.
magento2 command
After I upgraded to Magento 2.3, running the command setup:di:compile, I get this error:
Area configuration aggregation... 5/7 [====================>-------] 71% 58
secs 276.0 MiB
In ClassReader.php line 35:
Class MagentoEmailModelSourceVariables does not exist
In ClassReader.php line 29:
Class MagentoEmailModelSourceVariables does not exist
setup:di:compile
I've checked the database setup_module to ensure no mismatch or missing scheme/data versions but all are ok.
magento2 command
magento2 command
edited Dec 18 '18 at 9:36
Aasim Goriya
3,2661 gold badge11 silver badges43 bronze badges
3,2661 gold badge11 silver badges43 bronze badges
asked Dec 15 '18 at 0:32
Mehdi RafiaiMehdi Rafiai
1261 silver badge18 bronze badges
1261 silver badge18 bronze badges
Have you override this class in custom module ?
– user55548
Dec 15 '18 at 6:00
Thanks but i have disabled all custom modules so it must have something to do with Magento?
– Mehdi Rafiai
Dec 15 '18 at 9:58
add a comment |
Have you override this class in custom module ?
– user55548
Dec 15 '18 at 6:00
Thanks but i have disabled all custom modules so it must have something to do with Magento?
– Mehdi Rafiai
Dec 15 '18 at 9:58
Have you override this class in custom module ?
– user55548
Dec 15 '18 at 6:00
Have you override this class in custom module ?
– user55548
Dec 15 '18 at 6:00
Thanks but i have disabled all custom modules so it must have something to do with Magento?
– Mehdi Rafiai
Dec 15 '18 at 9:58
Thanks but i have disabled all custom modules so it must have something to do with Magento?
– Mehdi Rafiai
Dec 15 '18 at 9:58
add a comment |
6 Answers
6
active
oldest
votes
Search for the missing class in your magento2 code, you can do via linux cli:
grep -rnw '/path/to/magento2-root' -e 'Magento\Email\Model\Source\Variables'
and comment any line calling this class (that was removed from magento2.3)
Finally, this solved the problem and i am now able to run setup:di:compile. Thank you!
– Mehdi Rafiai
Dec 18 '18 at 15:19
How you have fixed?
– Magecode
Mar 27 at 6:04
add a comment |
Dirty Hack
Rename registration.php file of module which is causing problem for compilation.
;)
add a comment |
Have you used any SMTP extension? If yes then please remove that and then try to run the command :
php bin/magento setup:di:compile
If your issue is resolved then install 2.3 compatible SMTP extension.
I've not used any extensions like this, for further testing i removed env.php and config.php so i can reinstall Magento 2.3, i deselected all modules apart from what Magento needs and i still get the same error.
– Mehdi Rafiai
Dec 18 '18 at 9:14
add a comment |
Clear your generated folder and run the compile command.
rm -rf generated/*
Then run the compile command
bin/magento setup:di:compile
Thank you, done that plenty of times alongside var/* cache/* etc. No difference.
– Mehdi Rafiai
Dec 18 '18 at 10:37
Can you check if this class really exists: MagentoEmailModelSourceVariables by going to that path.
– Sourabh Kumar Sharma
Dec 18 '18 at 10:38
I assume the path is generated/code/Magento/Email/Model - if so, there's no Source directory in there.
– Mehdi Rafiai
Dec 18 '18 at 10:48
In magento2.2 the class is there, but it looks like this class was removed from magento2.3.
– gemig_hol
Dec 18 '18 at 11:07
1
Let us continue this discussion in chat.
– gemig_hol
Dec 18 '18 at 14:28
|
show 5 more comments
If you use any custom extensions, check the compatibility with Magento 2.3
All extensions that are not compatible must be removed, for example, Mageplaza smtp was not compatible and Mageworx CEO tool is was also not compatible.
After then run below command: php bin/magent setup:di:compile
Understood, but as per my comments above i have disabled all modules and only left on what Magento needs. Stripped it down and i still get the same error.
– Mehdi Rafiai
Dec 18 '18 at 10:12
add a comment |
I just replaced the class MagentoEmailModelSourceVariables
with MagentoVariableModelSourceVariables
.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f253734%2fmagento-2-setup-di-compile-problem%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
6 Answers
6
active
oldest
votes
6 Answers
6
active
oldest
votes
active
oldest
votes
active
oldest
votes
Search for the missing class in your magento2 code, you can do via linux cli:
grep -rnw '/path/to/magento2-root' -e 'Magento\Email\Model\Source\Variables'
and comment any line calling this class (that was removed from magento2.3)
Finally, this solved the problem and i am now able to run setup:di:compile. Thank you!
– Mehdi Rafiai
Dec 18 '18 at 15:19
How you have fixed?
– Magecode
Mar 27 at 6:04
add a comment |
Search for the missing class in your magento2 code, you can do via linux cli:
grep -rnw '/path/to/magento2-root' -e 'Magento\Email\Model\Source\Variables'
and comment any line calling this class (that was removed from magento2.3)
Finally, this solved the problem and i am now able to run setup:di:compile. Thank you!
– Mehdi Rafiai
Dec 18 '18 at 15:19
How you have fixed?
– Magecode
Mar 27 at 6:04
add a comment |
Search for the missing class in your magento2 code, you can do via linux cli:
grep -rnw '/path/to/magento2-root' -e 'Magento\Email\Model\Source\Variables'
and comment any line calling this class (that was removed from magento2.3)
Search for the missing class in your magento2 code, you can do via linux cli:
grep -rnw '/path/to/magento2-root' -e 'Magento\Email\Model\Source\Variables'
and comment any line calling this class (that was removed from magento2.3)
answered Dec 18 '18 at 15:08
gemig_holgemig_hol
6311 gold badge1 silver badge10 bronze badges
6311 gold badge1 silver badge10 bronze badges
Finally, this solved the problem and i am now able to run setup:di:compile. Thank you!
– Mehdi Rafiai
Dec 18 '18 at 15:19
How you have fixed?
– Magecode
Mar 27 at 6:04
add a comment |
Finally, this solved the problem and i am now able to run setup:di:compile. Thank you!
– Mehdi Rafiai
Dec 18 '18 at 15:19
How you have fixed?
– Magecode
Mar 27 at 6:04
Finally, this solved the problem and i am now able to run setup:di:compile. Thank you!
– Mehdi Rafiai
Dec 18 '18 at 15:19
Finally, this solved the problem and i am now able to run setup:di:compile. Thank you!
– Mehdi Rafiai
Dec 18 '18 at 15:19
How you have fixed?
– Magecode
Mar 27 at 6:04
How you have fixed?
– Magecode
Mar 27 at 6:04
add a comment |
Dirty Hack
Rename registration.php file of module which is causing problem for compilation.
;)
add a comment |
Dirty Hack
Rename registration.php file of module which is causing problem for compilation.
;)
add a comment |
Dirty Hack
Rename registration.php file of module which is causing problem for compilation.
;)
Dirty Hack
Rename registration.php file of module which is causing problem for compilation.
;)
answered Dec 18 '18 at 12:34
VivekVivek
2,0281 gold badge9 silver badges38 bronze badges
2,0281 gold badge9 silver badges38 bronze badges
add a comment |
add a comment |
Have you used any SMTP extension? If yes then please remove that and then try to run the command :
php bin/magento setup:di:compile
If your issue is resolved then install 2.3 compatible SMTP extension.
I've not used any extensions like this, for further testing i removed env.php and config.php so i can reinstall Magento 2.3, i deselected all modules apart from what Magento needs and i still get the same error.
– Mehdi Rafiai
Dec 18 '18 at 9:14
add a comment |
Have you used any SMTP extension? If yes then please remove that and then try to run the command :
php bin/magento setup:di:compile
If your issue is resolved then install 2.3 compatible SMTP extension.
I've not used any extensions like this, for further testing i removed env.php and config.php so i can reinstall Magento 2.3, i deselected all modules apart from what Magento needs and i still get the same error.
– Mehdi Rafiai
Dec 18 '18 at 9:14
add a comment |
Have you used any SMTP extension? If yes then please remove that and then try to run the command :
php bin/magento setup:di:compile
If your issue is resolved then install 2.3 compatible SMTP extension.
Have you used any SMTP extension? If yes then please remove that and then try to run the command :
php bin/magento setup:di:compile
If your issue is resolved then install 2.3 compatible SMTP extension.
edited Dec 18 '18 at 10:32
Arshad M
5601 gold badge6 silver badges13 bronze badges
5601 gold badge6 silver badges13 bronze badges
answered Dec 18 '18 at 9:06
Sneha PanchalSneha Panchal
5454 silver badges26 bronze badges
5454 silver badges26 bronze badges
I've not used any extensions like this, for further testing i removed env.php and config.php so i can reinstall Magento 2.3, i deselected all modules apart from what Magento needs and i still get the same error.
– Mehdi Rafiai
Dec 18 '18 at 9:14
add a comment |
I've not used any extensions like this, for further testing i removed env.php and config.php so i can reinstall Magento 2.3, i deselected all modules apart from what Magento needs and i still get the same error.
– Mehdi Rafiai
Dec 18 '18 at 9:14
I've not used any extensions like this, for further testing i removed env.php and config.php so i can reinstall Magento 2.3, i deselected all modules apart from what Magento needs and i still get the same error.
– Mehdi Rafiai
Dec 18 '18 at 9:14
I've not used any extensions like this, for further testing i removed env.php and config.php so i can reinstall Magento 2.3, i deselected all modules apart from what Magento needs and i still get the same error.
– Mehdi Rafiai
Dec 18 '18 at 9:14
add a comment |
Clear your generated folder and run the compile command.
rm -rf generated/*
Then run the compile command
bin/magento setup:di:compile
Thank you, done that plenty of times alongside var/* cache/* etc. No difference.
– Mehdi Rafiai
Dec 18 '18 at 10:37
Can you check if this class really exists: MagentoEmailModelSourceVariables by going to that path.
– Sourabh Kumar Sharma
Dec 18 '18 at 10:38
I assume the path is generated/code/Magento/Email/Model - if so, there's no Source directory in there.
– Mehdi Rafiai
Dec 18 '18 at 10:48
In magento2.2 the class is there, but it looks like this class was removed from magento2.3.
– gemig_hol
Dec 18 '18 at 11:07
1
Let us continue this discussion in chat.
– gemig_hol
Dec 18 '18 at 14:28
|
show 5 more comments
Clear your generated folder and run the compile command.
rm -rf generated/*
Then run the compile command
bin/magento setup:di:compile
Thank you, done that plenty of times alongside var/* cache/* etc. No difference.
– Mehdi Rafiai
Dec 18 '18 at 10:37
Can you check if this class really exists: MagentoEmailModelSourceVariables by going to that path.
– Sourabh Kumar Sharma
Dec 18 '18 at 10:38
I assume the path is generated/code/Magento/Email/Model - if so, there's no Source directory in there.
– Mehdi Rafiai
Dec 18 '18 at 10:48
In magento2.2 the class is there, but it looks like this class was removed from magento2.3.
– gemig_hol
Dec 18 '18 at 11:07
1
Let us continue this discussion in chat.
– gemig_hol
Dec 18 '18 at 14:28
|
show 5 more comments
Clear your generated folder and run the compile command.
rm -rf generated/*
Then run the compile command
bin/magento setup:di:compile
Clear your generated folder and run the compile command.
rm -rf generated/*
Then run the compile command
bin/magento setup:di:compile
answered Dec 18 '18 at 10:36
Sourabh Kumar SharmaSourabh Kumar Sharma
6693 silver badges16 bronze badges
6693 silver badges16 bronze badges
Thank you, done that plenty of times alongside var/* cache/* etc. No difference.
– Mehdi Rafiai
Dec 18 '18 at 10:37
Can you check if this class really exists: MagentoEmailModelSourceVariables by going to that path.
– Sourabh Kumar Sharma
Dec 18 '18 at 10:38
I assume the path is generated/code/Magento/Email/Model - if so, there's no Source directory in there.
– Mehdi Rafiai
Dec 18 '18 at 10:48
In magento2.2 the class is there, but it looks like this class was removed from magento2.3.
– gemig_hol
Dec 18 '18 at 11:07
1
Let us continue this discussion in chat.
– gemig_hol
Dec 18 '18 at 14:28
|
show 5 more comments
Thank you, done that plenty of times alongside var/* cache/* etc. No difference.
– Mehdi Rafiai
Dec 18 '18 at 10:37
Can you check if this class really exists: MagentoEmailModelSourceVariables by going to that path.
– Sourabh Kumar Sharma
Dec 18 '18 at 10:38
I assume the path is generated/code/Magento/Email/Model - if so, there's no Source directory in there.
– Mehdi Rafiai
Dec 18 '18 at 10:48
In magento2.2 the class is there, but it looks like this class was removed from magento2.3.
– gemig_hol
Dec 18 '18 at 11:07
1
Let us continue this discussion in chat.
– gemig_hol
Dec 18 '18 at 14:28
Thank you, done that plenty of times alongside var/* cache/* etc. No difference.
– Mehdi Rafiai
Dec 18 '18 at 10:37
Thank you, done that plenty of times alongside var/* cache/* etc. No difference.
– Mehdi Rafiai
Dec 18 '18 at 10:37
Can you check if this class really exists: MagentoEmailModelSourceVariables by going to that path.
– Sourabh Kumar Sharma
Dec 18 '18 at 10:38
Can you check if this class really exists: MagentoEmailModelSourceVariables by going to that path.
– Sourabh Kumar Sharma
Dec 18 '18 at 10:38
I assume the path is generated/code/Magento/Email/Model - if so, there's no Source directory in there.
– Mehdi Rafiai
Dec 18 '18 at 10:48
I assume the path is generated/code/Magento/Email/Model - if so, there's no Source directory in there.
– Mehdi Rafiai
Dec 18 '18 at 10:48
In magento2.2 the class is there, but it looks like this class was removed from magento2.3.
– gemig_hol
Dec 18 '18 at 11:07
In magento2.2 the class is there, but it looks like this class was removed from magento2.3.
– gemig_hol
Dec 18 '18 at 11:07
1
1
Let us continue this discussion in chat.
– gemig_hol
Dec 18 '18 at 14:28
Let us continue this discussion in chat.
– gemig_hol
Dec 18 '18 at 14:28
|
show 5 more comments
If you use any custom extensions, check the compatibility with Magento 2.3
All extensions that are not compatible must be removed, for example, Mageplaza smtp was not compatible and Mageworx CEO tool is was also not compatible.
After then run below command: php bin/magent setup:di:compile
Understood, but as per my comments above i have disabled all modules and only left on what Magento needs. Stripped it down and i still get the same error.
– Mehdi Rafiai
Dec 18 '18 at 10:12
add a comment |
If you use any custom extensions, check the compatibility with Magento 2.3
All extensions that are not compatible must be removed, for example, Mageplaza smtp was not compatible and Mageworx CEO tool is was also not compatible.
After then run below command: php bin/magent setup:di:compile
Understood, but as per my comments above i have disabled all modules and only left on what Magento needs. Stripped it down and i still get the same error.
– Mehdi Rafiai
Dec 18 '18 at 10:12
add a comment |
If you use any custom extensions, check the compatibility with Magento 2.3
All extensions that are not compatible must be removed, for example, Mageplaza smtp was not compatible and Mageworx CEO tool is was also not compatible.
After then run below command: php bin/magent setup:di:compile
If you use any custom extensions, check the compatibility with Magento 2.3
All extensions that are not compatible must be removed, for example, Mageplaza smtp was not compatible and Mageworx CEO tool is was also not compatible.
After then run below command: php bin/magent setup:di:compile
edited Dec 18 '18 at 10:45
Sourabh Kumar Sharma
6693 silver badges16 bronze badges
6693 silver badges16 bronze badges
answered Dec 18 '18 at 10:00
Prakash PatelPrakash Patel
1,2317 silver badges18 bronze badges
1,2317 silver badges18 bronze badges
Understood, but as per my comments above i have disabled all modules and only left on what Magento needs. Stripped it down and i still get the same error.
– Mehdi Rafiai
Dec 18 '18 at 10:12
add a comment |
Understood, but as per my comments above i have disabled all modules and only left on what Magento needs. Stripped it down and i still get the same error.
– Mehdi Rafiai
Dec 18 '18 at 10:12
Understood, but as per my comments above i have disabled all modules and only left on what Magento needs. Stripped it down and i still get the same error.
– Mehdi Rafiai
Dec 18 '18 at 10:12
Understood, but as per my comments above i have disabled all modules and only left on what Magento needs. Stripped it down and i still get the same error.
– Mehdi Rafiai
Dec 18 '18 at 10:12
add a comment |
I just replaced the class MagentoEmailModelSourceVariables
with MagentoVariableModelSourceVariables
.
add a comment |
I just replaced the class MagentoEmailModelSourceVariables
with MagentoVariableModelSourceVariables
.
add a comment |
I just replaced the class MagentoEmailModelSourceVariables
with MagentoVariableModelSourceVariables
.
I just replaced the class MagentoEmailModelSourceVariables
with MagentoVariableModelSourceVariables
.
answered Jul 9 at 20:20
angelwallyangelwally
1013 bronze badges
1013 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f253734%2fmagento-2-setup-di-compile-problem%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Have you override this class in custom module ?
– user55548
Dec 15 '18 at 6:00
Thanks but i have disabled all custom modules so it must have something to do with Magento?
– Mehdi Rafiai
Dec 15 '18 at 9:58