Hi team,
I am facing smtp issue like this admin pannel & signup. Please any one give the solution
Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid block type: Mageplaza\Smtp\Block\Adminhtml\System\Config\Provider Exception #1 (ReflectionException): Class Mageplaza\Smtp\Block\Adminhtml\System\Config\Provider does not exist
Hello @NavinMdr ,
Please use this SMTP extension without you get any error
https://marketplace.magento.com/kiwicommerce-module-enhanced-smtp.html
Here is a document of configure https://kiwicommerce.co.uk/docs/enhanced-smtp/
--
If my answer is useful, please Accept as Solution & give Kudos
Hello @NavinMdr
It looks like, you haven't installed Mageplaza_Smtp extension properly.
Error is coming from this third party extension only - Mageplaza_Smtp
So kindly remove this extension and run the necessary command and check - error will not showcase to you !
hope it helps !
Hello Manthan Dave,
I already configured in Mageplaza_Smtp in my module list. I try to fix so many ways but not worked.
Hello @NavinMdr
This localized exception only occurs when you have factory classes and other depended classes are not found in the module !
Try to run below command after installing extension and then check !
php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f php bin/magento cache:clean php bin/magento cache:flush
Then check - here di:compile - must need to run - due to having a localized exception issue !
Hi Manthan Dave,
I used php bin/magento setup:di:compile
I got new error blow:
Repositories code generation... 1/7 [====>-----------------------] 14% < 1 sec 56.0 MiBPHP Fatal error: Class 'Hybrid_Provider_Model_OAuth2' not found in /var/www/html/app/code/Sm/SocialLogin/Model/Providers/Instagram.php on line 9
I am not using Instagram my site but showing error.
Hello @NavinMdr
Yes, so now here is the valid reason you are facing error from MagePlaza_SMTP extension
Because your compilation process is not completing and due to that Factory classes of MagePlaza_SMTP is not creating and that's the reason its showing error.
If you are not using Instagram module/functionality - kindly remove that module and then run the given commands
From that app/code directory - remove this - Sm_SocialLogin module
Then run the above given command and it will resolve your error !
Hope it helps !
Hi @NavinMdr ,
Open view/adminhtml/templates/system/config/host.phtml and modify following line:
/** @var \Mageplaza\Smtp\Block\Adminhtml\System\Config\Provider $block */
to
/** @var \Mageplaza\Smtp\Block\Adminhtml\System\Config\Host $block */
Hi Sohel,
I don't the you mention the file path? send the file path i can check
Thank you
Hello Manthan Dave,
I fixed the di compile issue . Still the admin panel email configuration page show empty or same issue coming!