Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Magento在后端添加产品后显示错误_Magento_Magento2_Php 7 - Fatal编程技术网

Magento在后端添加产品后显示错误

Magento在后端添加产品后显示错误,magento,magento2,php-7,Magento,Magento2,Php 7,我用ubuntu16.04和php7.0.15用Magento 2.1.5运行Linux服务器 当我进入后端产品->添加产品并添加没有任何特殊设置的产品时,网站会在前端中断并显示以下错误: We're sorry, an error occured while generating this email. 检查magento的日志文件后,我发现以下错误: 系统日志 [2017-03-29 12:05:38] main.INFO: Cache file with merged layout:

我用
ubuntu16.04
php7.0.15
Magento 2.1.5
运行Linux服务器

当我进入后端产品->添加产品并添加没有任何特殊设置的产品时,网站会在前端中断并显示以下错误:

We're sorry, an error occured while generating this email.

检查magento的日志文件后,我发现以下错误:

系统日志

[2017-03-29 12:05:38] main.INFO: Cache file with merged layout: LAYOUT_adminhtml_STORE1_36f1b068ec7ccf4878f9284dd1137afd1 and handles catalog_product_prices: Please correct the XML data and try again.
调试日志

[2017-03-29 12:37:02] main.DEBUG: cache_invalidate: {"method":"GET","url":"http://MYSHOPURL/","invalidateInfo":{"tags":["interception","CONFIG"],"mode":"matchingTag"},"is_exception":false} []
你知道是什么导致了这个问题吗?向webshop软件添加产品不应破坏它^^

如果您需要进一步的信息或任何其他日志,请让我知道!我会尽快提供


谢谢大家!

从admin添加产品后,从CLI运行以下命令

php bin/magento cache:clean
php bin/magento cache:flush
php bin/magento indexer:reindex
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

我已经通过主题支持让它工作了。但如果他们就是这么做的,我希望我不会每次添加新产品时都遇到这个问题。