i cant run this command “php bin/magento setup:di:compile” it stops @ 14%
i have a magento2 – Dedicated Server and when i run di:compile i seee the below error
php bin/magento setup:di:compile
Compilation was started.
Repositories code generation…
1/7 [====>———————–] 14%
once it reach 14% is just stops?
i tried many ways to solve it, cleared the cache and rebuild the deployment but with no use, i even removed the cache manually in var/ and generated/
3
Answers
You could try to run the command with some extra parameters, like this:
php -dmemory_limit=5G bin/magento setup:di:compile
The compiling could be stopped by exhausted allow memory size. If not, could you please remove the log files in var/log, run the command again and post the outcome of the logs here?
Repositories code generation… 1/7 [====>———————–] 14%
I will stop running and shows
PHP Fatal error: Allowed memory size of 14256 bytes exhausted
In Our Case, There was special character get added in PHP file before php tag like Y#tE!t<?php.
what was wrong with us that we open vendor file through FTP and close it and its get updated with some special character(One reason due to Not used IDE or proper text-editor).