Magento 2.3.1 - Cant Save Edits to Product. Nothing Happens
-
27-02-2021 - |
문제
I am on Magento 2.3.1, with php 7.1
When I edit an existing product, and then click save. Nothing happens when I push save. Its like its not registering. I clicked the other save option (Save & Close), (Save & New), and still nothing happens!
This is happening on two seperate versions of Magento 2.3.1
Any ideas?
해결책
Two things will made this.
- Directory and File permission issue
- Cache issue
Warning: file_put_contents blic_html/var/cache//mage-tags/mage---0eb_REFLECTION): failed to open stream: Permission denied public_html/vendor/colinmollenhour/cache-backend-file/File.php on line 693
This error will come only when the directory has a permissions issue.
So Kindly set Magento recommended permissions to directories and files.
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
find var pub/static pub/media generated/ app/etc -type f -exec chmod g+w {} \;
find var pub/static pub/media generated/ app/etc -type d -exec chmod g+ws {} \;
chown -R :<web server group> .
chmod u+x bin/magento
After run permission command you need to run below commands :
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
Hope it helps!