Di compile problem

Hello
Happy new year
I try to run below command bit face problem.Would you please help me.I don’t know what should I do to solve this problem/
php bin/magento setup:di:compile


Thank you and best regards,

Looks like a coding issue with a module called “Acommerce”. Potentially a bug in the code that is stopping the compilation continuing. You’ll want to forward this to the developers of the module to debug. Chances are if you are experiencing this issue then others are too.

Thank a lot
It was city drop down extension that I remove it and di compile is ok now. but I face some problem after removing this extension.
I remove cache,deploy static content but still I have problem
I have white checkout page and when in back end select all customer section face this page

I don’t know exactly what should I do ?
Thank you so much for you help

this is error content

{"0":"Class Acommerce\\Address\\Model\\ResourceModel\\Address\\Attribute\\Source\\City does not exist","1":"<pre>
#1 Magento\\Framework\\Code\\Reader\\ClassReader->getConstructor('Acommerce\\Addres...') called at [vendor\/magento\/framework\/ObjectManager\/Definition\/Runtime.php:49]\n
#2 Magento\\Framework\\ObjectManager\\Definition\\Runtime->getParameters('Acommerce\\Addres...') called at [vendor\/magento\/framework\/ObjectManager\/Factory\/Compiled.php:100]\n#3 Magento\\Framework\\ObjectManager\\Factory\\Compiled->create('Acommerce\\Addres...', array()) called at [vendor\/magento\/framework\/ObjectManager\/ObjectManager.php:56]\n
#4 Magento\\Framework\\ObjectManager\\ObjectManager->create('Acommerce\\Addres...', array()) called at [vendor\/magento\/framework\/Validator\/UniversalFactory.php:36]\n
#5 Magento\\Framework\\Validator\\UniversalFactory->create('Acommerce\\Addres...') called at [vendor\/magento\/module-eav\/Model\/Entity\/Attribute\/AbstractAttribute.php:642]\n
#6 Magento\\Eav\\Model\\Entity\\Attribute\\AbstractAttribute->getSource() called at [vendor\/magento\/module-customer\/Model\/AttributeMetadataConverter.php:68]\n
#7 Magento\\Customer\\Model\\AttributeMetadataConverter->createMetadataAttribute(&Magento\\Customer\\Model\\Attribute\\Interceptor#000000007cabab3400000000364f5e09#) called at [vendor\/magento\/module-customer\/Model\/Metadata\/AddressMetadata.php:77]\n
#8 Magento\\Customer\\Model\\Metadata\\AddressMetadata->getAttributeMetadata('city_id') called at [vendor\/magento\/module-customer\/Model\/Metadata\/AddressMetadata.php:109]\n
#9 Magento\\Customer\\Model\\Metadata\\AddressMetadata->getAllAttributesMetadata() called at [vendor\/magento\/module-customer\/Model\/Metadata\/CachedMetadata.php:85]\n
#10 Magento\\Customer\\Model\\Metadata\\CachedMetadata->getAllAttributesMetadata() called at [vendor\/magento\/module-customer\/Ui\/Component\/Listing\/AttributeRepository.php:90]\n
#11 Magento\\Customer\\Ui\\Component\\Listing\\AttributeRepository->getList() called at [vendor\/magento\/module-customer\/Ui\/Component\/Listing\/Columns.php:102]\n
#12 Magento\\Customer\\Ui\\Component\\Listing\\Columns->prepare() called at [vendor\/magento\/framework\/View\/Layout\/Generator\/UiComponent.php:164]\n
#13 Magento\\Framework\\View\\Layout\\Generator\\UiComponent->prepareComponent(&Magento\\Customer\\Ui\\Component\\Listing\\Columns#000000007caba42600000000364f5e09#) called at [vendor\/magento\/framework\/View\/Layout\/Generator\/UiComponent.php:161]\n
#14 Magento\\Framework\\View\\Layout\\Generator\\UiComponent->prepareComponent(&Magento\\Ui\\Component\\Listing#000000007caba42900000000364f5e09#) called at [vendor\/magento\/framework\/View\/Layout\/Generator\/UiComponent.php:142]\n
#15 Magento\\Framework\\View\\Layout\\Generator\\UiComponent->generateComponent(&Magento\\Framework\\View\\Layout\\Data\\Structure#000000007caba16200000000364f5e09#, 'customer_listing', array('attributes' => array('group' => '', 'component' => '', 'aclResource' => '', 'visibilityCondit...' => array())), &Magento\\Framework\\View\\Layout\\Interceptor#000000007caba0ce00000000364f5e09#) called at [vendor\/magento\/framework\/View\/Layout\/Generator\/UiComponent.php:103]\n
#16 Magento\\Framework\\View\\Layout\\Generator\\UiComponent->process(&Magento\\Framework\\View\\Layout\\Reader\\Context#000000007caba5d100000000364f5e09#, &Magento\\Framework\\View\\Layout\\Generator\\Context#000000007caba5cf00000000364f5e09#) called at [vendor\/magento\/framework\/View\/Layout\/GeneratorPool.php:81]\n
#17 Magento\\Framework\\View\\Layout\\GeneratorPool->process(&Magento\\Framework\\View\\Layout\\Reader\\Context#000000007caba5d100000000364f5e09#, &Magento\\Framework\\View\\Layout\\Generator\\Context#000000007caba5cf00000000364f5e09#) called at [vendor\/magento\/framework\/View\/Layout.php:343]\n
#18 Magento\\Framework\\View\\Layout->generateElements() called at [generated\/code\/Magento\/Framework\/View\/Layout\/Interceptor.php:89]\n
#19 Magento\\Framework\\View\\Layout\\Interceptor->generateElements() called at [vendor\/magento\/framework\/View\/Layout\/Builder.php:129]\n
#20 Magento\\Framework\\View\\Layout\\Builder->generateLayoutBlocks() called at [vendor\/magento\/framework\/View\/Page\/Builder.php:55]\n
#21 Magento\\Framework\\View\\Page\\Builder->generateLayoutBlocks() called at [vendor\/magento\/framework\/View\/Layout\/Builder.php:65]\n
#22 Magento\\Framework\\View\\Layout\\Builder->build() called at [vendor\/magento\/framework\/View\/Layout.php:253]\n#23 Magento\\Framework\\View\\Layout->build() called at [vendor\/magento\/framework\/View\/Layout.php:875]\n#24 Magento\\Framework\\View\\Layout->getBlock('menu') called at [generated\/code\/Magento\/Framework\/View\/Layout\/Interceptor.php:414]\n#25 Magento\\Framework\\View\\Layout\\Interceptor->getBlock('menu') called at [vendor\/magento\/module-backend\/Model\/View\/Result\/Page.php:26]\n#26 Magento\\Backend\\Model\\View\\Result\\Page->setActiveMenu('Magento_Customer...') called at [vendor\/magento\/module-customer\/Controller\/Adminhtml\/Index\/Index.php:28]\n#27 Magento\\Customer\\Controller\\Adminhtml\\Index\\Index->execute() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:58]\n#28 Magento\\Customer\\Controller\\Adminhtml\\Index\\Index\\Interceptor->___callParent('execute', array()) called at [vendor\/magento\/framework\/Interception\/Interceptor.php:138]\n#29 Magento\\Customer\\Controller\\Adminhtml\\Index\\Index\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#30 Magento\\Customer\\Controller\\Adminhtml\\Index\\Index\\Interceptor->___callPlugins('execute', array(), array(array('Df\\Framework\\Plu...'))) called at [generated\/code\/Magento\/Customer\/Controller\/Adminhtml\/Index\/Index\/Interceptor.php:26]\n#31 Magento\\Customer\\Controller\\Adminhtml\\Index\\Index\\Interceptor->execute() called at [vendor\/magento\/framework\/App\/Action\/Action.php:108]\n#32 Magento\\Framework\\App\\Action\\Action->dispatch(&Magento\\Framework\\App\\Request\\Http#000000007caba3dc00000000364f5e09#) called at [vendor\/magento\/module-backend\/App\/AbstractAction.php:231]\n#33 Magento\\Backend\\App\\AbstractAction->dispatch(&Magento\\Framework\\App\\Request\\Http#000000007caba3dc00000000364f5e09#) called at [vendor\/magento\/framework\/Interception\/Interceptor.php:58]\n#34 Magento\\Customer\\Controller\\Adminhtml\\Index\\Index\\Interceptor->___callParent('dispatch', array(&Magento\\Framework\\App\\Request\\Http#000000007caba3dc00000000364f5e09#)) called at [vendor\/magento\/framework\/Interception\/Interceptor.php:138]\n#35 Magento\\Customer\\Controller\\Adminhtml\\Index\\Index\\Interceptor->Magento\\Framework\\Interception\\{closure}(&Magento\\Framework\\App\\Request\\Http#000000007caba3dc00000000364f5e09#) called at [vendor\/magento\/module-backend\/App\/Action\/Plugin\/Authentication.php:143]\n#36 Magento\\Backend\\App\\Action\\Plugin\\Authentication->aroundDispatch(&Magento\\Customer\\Controller\\Adminhtml\\Index\\Index\\Interceptor#000000007caba7d800000000364f5e09#, &Closure#000000007caba7da00000000364f5e09#, &Magento\\Framework\\App\\Request\\Http#000000007caba3dc00000000364f5e09#) called at [vendor\/magento\/framework\/Interception\/Interceptor.php:135]\n#37 Magento\\Customer\\Controller\\Adminhtml\\Index\\Index\\Interceptor->Magento\\Framework\\Interception\\{closure}(&Magento\\Framework\\App\\Request\\Http#000000007caba3dc00000000364f5e09#) called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#38 Magento\\Customer\\Controller\\Adminhtml\\Index\\Index\\Interceptor->___callPlugins('dispatch', array(&Magento\\Framework\\App\\Request\\Http#000000007caba3dc00000000364f5e09#), NULL) called at [generated\/code\/Magento\/Customer\/Controller\/Adminhtml\/Index\/Index\/Interceptor.php:39]\n#39 Magento\\Customer\\Controller\\Adminhtml\\Index\\Index\\Interceptor->dispatch(&Magento\\Framework\\App\\Request\\Http#000000007caba3dc00000000364f5e09#) called at [vendor\/magento\/framework\/App\/FrontController.php:159]\n#40 Magento\\Framework\\App\\FrontController->processRequest(&Magento\\Framework\\App\\Request\\Http#000000007caba3dc00000000364f5e09#, &Magento\\Customer\\Controller\\Adminhtml\\Index\\Index\\Interceptor#000000007caba7d800000000364f5e09#) called at [vendor\/magento\/framework\/App\/FrontController.php:98]\n#41 Magento\\Framework\\App\\FrontController->dispatch(&Magento\\Framework\\App\\Request\\Http#000000007caba3dc00000000364f5e09#) called at [vendor\/magento\/framework\/Interception\/Interceptor.php:58]\n#42 Magento\\Framework\\App\\FrontController\\Interceptor->___callParent('dispatch', array(&Magento\\Framework\\App\\Request\\Http#000000007caba3dc00000000364f5e09#)) called at [vendor\/magento\/framework\/Interception\/Interceptor.php:138]\n#43 Magento\\Framework\\App\\FrontController\\Interceptor->Magento\\Framework\\Interception\\{closure}(&Magento\\Framework\\App\\Request\\Http#000000007caba3dc00000000364f5e09#) called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#44 Magento\\Framework\\App\\FrontController\\Interceptor->___callPlugins('dispatch', array(&Magento\\Framework\\App\\Request\\Http#000000007caba3dc00000000364f5e09#), array(array('default_store_se...', 'page_cache_from_...', 'storeCookieValid...', 'install', 'configHash'))) called at [generated\/code\/Magento\/Framework\/App\/FrontController\/Interceptor.php:26]\n#45 Magento\\Framework\\App\\FrontController\\Interceptor->dispatch(&Magento\\Framework\\App\\Request\\Http#000000007caba3dc00000000364f5e09#) called at [vendor\/magento\/framework\/App\/Http.php:137]\n#46 Magento\\Framework\\App\\Http->launch() called at [generated\/code\/Magento\/Framework\/App\/Http\/Interceptor.php:24]\n#47 Magento\\Framework\\App\\Http\\Interceptor->launch() called at [vendor\/magento\/framework\/App\/Bootstrap.php:261]\n#48 Magento\\Framework\\App\\Bootstrap->run(&Magento\\Framework\\App\\Http\\Interceptor#000000007caba31100000000364f5e09#) called at [index.php:39]\n<\/pre>","url":"\/admin_r6z7pg\/customer\/index\/index\/key\/e205b9a2e64d4fdbf23adbcde5bc4984affca9af4150fa668842ab0a66fc225e\/","script_name":"\/index.php"}

What method did you use to remove Acommerce? Did you just delete the folder or did you disable it?

Hi, this is how I remove module.
php bin/magento module:disable Acommerce_Address --clear-static-content
php bin/magento setup:upgrade
rm -rf app/code/Acommerce

Try running these commands from the Magento root directory:

rm -rf var/cache/* var/page_cache/* generated/code/*
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy
bin/magento cache:clean
bin/magento cache:flush

thank you so much
but still error remains
Can I overwrite Magento files to fix this problem ?

Never edit Magento core files. If you put your store in Developer Mode and recreate the error, it should provide more information on the screen about the error that took place. When you do this, copy and paste the error in a post.

1 exception(s):
Exception #0 (ReflectionException): Class Acommerce\Address\Model\ResourceModel\Address\Attribute\Source\City does not exist

Exception #0 (ReflectionException): Class Acommerce\Address\Model\ResourceModel\Address\Attribute\Source\City does not exist
#1 Magento\Framework\Code\Reader\ClassReader->getConstructor('Acommerce\Addres...') called at [vendor/magento/framework/ObjectManager/Definition/Runtime.php:49]
#2 Magento\Framework\ObjectManager\Definition\Runtime->getParameters('Acommerce\Addres...') called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:100]
#3 Magento\Framework\ObjectManager\Factory\Compiled->create('Acommerce\Addres...', array()) called at [vendor/magento/framework/ObjectManager/ObjectManager.php:56]
#4 Magento\Framework\ObjectManager\ObjectManager->create('Acommerce\Addres...', array()) called at [vendor/magento/framework/Validator/UniversalFactory.php:36]
#5 Magento\Framework\Validator\UniversalFactory->create('Acommerce\Addres...') called at [vendor/magento/module-eav/Model/Entity/Attribute/AbstractAttribute.php:642]
#6 Magento\Eav\Model\Entity\Attribute\AbstractAttribute->getSource() called at [vendor/magento/module-customer/Model/AttributeMetadataConverter.php:68]
#7 Magento\Customer\Model\AttributeMetadataConverter->createMetadataAttribute(&Magento\Customer\Model\Attribute\Interceptor#00000000678dac350000000051313182#) called at [vendor/magento/module-customer/Model/Metadata/AddressMetadata.php:77]
#8 Magento\Customer\Model\Metadata\AddressMetadata->getAttributeMetadata('city_id') called at [vendor/magento/module-customer/Model/Metadata/AddressMetadata.php:109]
#9 Magento\Customer\Model\Metadata\AddressMetadata->getAllAttributesMetadata() called at [vendor/magento/module-customer/Model/Metadata/CachedMetadata.php:85]
#10 Magento\Customer\Model\Metadata\CachedMetadata->getAllAttributesMetadata() called at [vendor/magento/module-customer/Ui/Component/Listing/AttributeRepository.php:90]
#11 Magento\Customer\Ui\Component\Listing\AttributeRepository->getList() called at [vendor/magento/module-customer/Ui/Component/Listing/Columns.php:102]
#12 Magento\Customer\Ui\Component\Listing\Columns->prepare() called at [vendor/magento/framework/View/Layout/Generator/UiComponent.php:164]
#13 Magento\Framework\View\Layout\Generator\UiComponent->prepareComponent(&Magento\Customer\Ui\Component\Listing\Columns#00000000678da31b0000000051313182#) called at [vendor/magento/framework/View/Layout/Generator/UiComponent.php:161]
#14 Magento\Framework\View\Layout\Generator\UiComponent->prepareComponent(&Magento\Ui\Component\Listing#00000000678da31c0000000051313182#) called at [vendor/magento/framework/View/Layout/Generator/UiComponent.php:142]
#15 Magento\Framework\View\Layout\Generator\UiComponent->generateComponent(&Magento\Framework\View\Layout\Data\Structure#00000000678da65b0000000051313182#, 'customer_listing', array('attributes' => array('group' => '', 'component' => '', 'aclResource' => '', 'visibilityCondit...' => array())), &Magento\Framework\View\Layout\Interceptor#00000000678da7cc0000000051313182#) called at [vendor/magento/framework/View/Layout/Generator/UiComponent.php:103]
#16 Magento\Framework\View\Layout\Generator\UiComponent->process(&Magento\Framework\View\Layout\Reader\Context#00000000678da2c90000000051313182#, &Magento\Framework\View\Layout\Generator\Context#00000000678da2d70000000051313182#) called at [vendor/magento/framework/View/Layout/GeneratorPool.php:81]
#17 Magento\Framework\View\Layout\GeneratorPool->process(&Magento\Framework\View\Layout\Reader\Context#00000000678da2c90000000051313182#, &Magento\Framework\View\Layout\Generator\Context#00000000678da2d70000000051313182#) called at [vendor/magento/framework/View/Layout.php:343]
#18 Magento\Framework\View\Layout->generateElements() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:89]
#19 Magento\Framework\View\Layout\Interceptor->generateElements() called at [vendor/magento/framework/View/Layout/Builder.php:129]
#20 Magento\Framework\View\Layout\Builder->generateLayoutBlocks() called at [vendor/magento/framework/View/Page/Builder.php:55]
#21 Magento\Framework\View\Page\Builder->generateLayoutBlocks() called at [vendor/magento/framework/View/Layout/Builder.php:65]
#22 Magento\Framework\View\Layout\Builder->build() called at [vendor/magento/framework/View/Layout.php:253]
#23 Magento\Framework\View\Layout->build() called at [vendor/magento/framework/View/Layout.php:875]
#24 Magento\Framework\View\Layout->getBlock('menu') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:414]
#25 Magento\Framework\View\Layout\Interceptor->getBlock('menu') called at [vendor/magento/module-backend/Model/View/Result/Page.php:26]
#26 Magento\Backend\Model\View\Result\Page->setActiveMenu('Magento_Customer...') called at [vendor/magento/module-customer/Controller/Adminhtml/Index/Index.php:28]
#27 Magento\Customer\Controller\Adminhtml\Index\Index->execute() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#28 Magento\Customer\Controller\Adminhtml\Index\Index\Interceptor->___callParent('execute', array()) called at [vendor/magento/framework/Interception/Interceptor.php:138]
#29 Magento\Customer\Controller\Adminhtml\Index\Index\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#30 Magento\Customer\Controller\Adminhtml\Index\Index\Interceptor->___callPlugins('execute', array(), array(array('Df\Framework\Plu...'))) called at [generated/code/Magento/Customer/Controller/Adminhtml/Index/Index/Interceptor.php:26]
#31 Magento\Customer\Controller\Adminhtml\Index\Index\Interceptor->execute() called at [vendor/magento/framework/App/Action/Action.php:108]
#32 Magento\Framework\App\Action\Action->dispatch(&Magento\Framework\App\Request\Http#00000000678da4e50000000051313182#) called at [vendor/magento/module-backend/App/AbstractAction.php:231]
#33 Magento\Backend\App\AbstractAction->dispatch(&Magento\Framework\App\Request\Http#00000000678da4e50000000051313182#) called at [vendor/magento/framework/Interception/Interceptor.php:58]
#34 Magento\Customer\Controller\Adminhtml\Index\Index\Interceptor->___callParent('dispatch', array(&Magento\Framework\App\Request\Http#00000000678da4e50000000051313182#)) called at [vendor/magento/framework/Interception/Interceptor.php:138]
#35 Magento\Customer\Controller\Adminhtml\Index\Index\Interceptor->Magento\Framework\Interception\{closure}(&Magento\Framework\App\Request\Http#00000000678da4e50000000051313182#) called at [vendor/magento/module-backend/App/Action/Plugin/Authentication.php:143]
#36 Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(&Magento\Customer\Controller\Adminhtml\Index\Index\Interceptor#00000000678da0e60000000051313182#, &Closure#00000000678da0f80000000051313182#, &Magento\Framework\App\Request\Http#00000000678da4e50000000051313182#) called at [vendor/magento/framework/Interception/Interceptor.php:135]
#37 Magento\Customer\Controller\Adminhtml\Index\Index\Interceptor->Magento\Framework\Interception\{closure}(&Magento\Framework\App\Request\Http#00000000678da4e50000000051313182#) called at [vendor/magento/framework/Interception/Interceptor.php:153]
#38 Magento\Customer\Controller\Adminhtml\Index\Index\Interceptor->___callPlugins('dispatch', array(&Magento\Framework\App\Request\Http#00000000678da4e50000000051313182#), NULL) called at [generated/code/Magento/Customer/Controller/Adminhtml/Index/Index/Interceptor.php:39]
#39 Magento\Customer\Controller\Adminhtml\Index\Index\Interceptor->dispatch(&Magento\Framework\App\Request\Http#00000000678da4e50000000051313182#) called at [vendor/magento/framework/App/FrontController.php:159]
#40 Magento\Framework\App\FrontController->processRequest(&Magento\Framework\App\Request\Http#00000000678da4e50000000051313182#, &Magento\Customer\Controller\Adminhtml\Index\Index\Interceptor#00000000678da0e60000000051313182#) called at [vendor/magento/framework/App/FrontController.php:98]
#41 Magento\Framework\App\FrontController->dispatch(&Magento\Framework\App\Request\Http#00000000678da4e50000000051313182#) called at [vendor/magento/framework/Interception/Interceptor.php:58]
#42 Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', array(&Magento\Framework\App\Request\Http#00000000678da4e50000000051313182#)) called at [vendor/magento/framework/Interception/Interceptor.php:138]
#43 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(&Magento\Framework\App\Request\Http#00000000678da4e50000000051313182#) called at [vendor/magento/framework/Interception/Interceptor.php:153]
#44 Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', array(&Magento\Framework\App\Request\Http#00000000678da4e50000000051313182#), array(array('default_store_se...', 'page_cache_from_...', 'storeCookieValid...', 'install', 'configHash'))) called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:26]
#45 Magento\Framework\App\FrontController\Interceptor->dispatch(&Magento\Framework\App\Request\Http#00000000678da4e50000000051313182#) called at [vendor/magento/framework/App/Http.php:137]
#46 Magento\Framework\App\Http->launch() called at [generated/code/Magento/Framework/App/Http/Interceptor.php:24]
#47 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.php:261]
#48 Magento\Framework\App\Bootstrap->run(&Magento\Framework\App\Http\Interceptor#00000000678da4280000000051313182#) called at [index.php:39]

Looks like Acommerce didn’t uninstall properly and is expecting to find an Address Attribute. You’ll need to “uninstall” the module (not just disable it), which should clean up the database. Try running:

bin/magento module:uninstall -r Acommerce_Address

Note: Remember to backup your store first

after run command
Acommerce_Address is not an installed composer package

What I would do is:

  1. Reinstall module
  2. Run the uninstall command (instead of disable/delete)
  3. Complete the steps I mentioned earlier (rm -rf ... etc…)

More about uninstalling modules can be found here.

I check this command just work for modules that installed by composer but I install it Manuel by copy and paste to app/code/ folder , so How can I uninstall it ?