Magento2 Error: Sorry, an error occurred while creating this email

I get the error below on the local magento 2 system:

Sorry, an error occurred while creating this message.

He does not show me sample data installed in the directory. Please help me solve this problem.

Hello,

Rakesh Kumar

+4
source share
7 answers

The first thing you need to do is go to the .htaccess file. Uncomment

SetEnv MAGE_MODE developer

The error message is 90% of the time misleading and most likely you have a xml parsing problem. In any case, enabling the developer environment and clearing the cache will result in an error.

. , sendmail , , , , ​​ , , . , , .

sendmail , , - , , , . , , .

+1

. MySql . , .

php ./bin/magento deploy:mode:set developer
+1

pub/media/catalog/product/

+1
  • php bin/magento deploy:mode:set developer

  • php bin/magento cache:flush

: \C:/xampp/htdocs/Magento/pub/media/catalog/product\cache\f073062f50e48eb0f0998593e568d857/m/b. .

  1. , Magento 2: .

  2. ,

+1

php-gd.

(magento_root/var/log/exception.log):

main.CRITICAL: "" " PHP" gd " ". /var/www/html/magento 2/vendor/magento/framework/Image/Adapter/Gd2.php:620

php-gd Ubuntu :

sudo apt-get install php-gd

php5.6, :

sudo apt-get install php5.6-gd

0

. . , "".

For the actual error, you must enable developer mode and enable the display of errors in app/bootstrap.phpand check for error logs. It can be any error, for example php or mysql.

ini_set('display_errors', 1);

thanks

0
source

Please check /var/log/exception.log. This is a problem because your product is not loading. so check your database or download your sample database again. Let me know what the error is in exception.log

0
source

Source: https://habr.com/ru/post/1628436/


All Articles