J'exécute un serveur Linux avec Ubuntu 16.04
et PHP 7.0.15
avec Magento 2.1.5
.
Lorsque je vais dans le backend Produits -> Ajouter un produit et ajouter un produit sans aucun paramètre spécial, le site Web se brise dans le frontend et affiche l'erreur suivante:
We"re sorry, an error occured while generating this email.
Après avoir vérifié les fichiers de log de magento, j'ai trouvé ces erreurs:
system.log
[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.
debug.log
[2017-03-29 12:37:02] main.DEBUG: cache_invalidate: {"method":"GET","url":"http://MYSHOPURL/","invalidateInfo":{"tags":["interception","CONFIG"],"mode":"matchingTag"},"is_exception":false} []
Des idées sur ce qui pourrait causer ce problème? Ajouter un produit à un logiciel de boutique en ligne ne doit pas être endommagé ^^
Si vous avez besoin d'informations supplémentaires ou de tout autre journal, faites-le moi savoir! Je leur fournirai dès que possible.
Je vous remercie !
Réponses:
1 pour la réponse № 1Après avoir ajouté le produit à partir de l’administrateur, exécutez la commande suivante à partir de la 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