cancel
Showing results for 
Search instead for 
Did you mean: 

LocalizedException

LocalizedException

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
11 REPLIES 11

Re: LocalizedException

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

Re: LocalizedException

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 !

 

if issue solved,Click Kudos & Accept as Solution

Re: LocalizedException

Hello Manthan Dave,

I already configured in Mageplaza_Smtp in my module list. I try to fix so many ways but not worked.

 

Re: LocalizedException

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 !

if issue solved,Click Kudos & Accept as Solution

Re: LocalizedException

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.

 

 

Re: LocalizedException

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 !

 

if issue solved,Click Kudos & Accept as Solution

Re: LocalizedException

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 */

Screenshot 2019-02-18 at 5.32.06 PM.png

-----
If Issue Solved, Click Kudos and Accept As solutions.
Sohel Rana, 7x Magento 2, 2x Magento 1 Certified

Re: LocalizedException

Hi Sohel,

I don't the you mention the file path? send the file path i can check

Thank you

Re: LocalizedException

Hello Manthan Dave,

I fixed the di compile issue . Still the admin panel email configuration page show empty or same issue coming!