js files are automatically deleted - adminhtml/web/js/components/use-parent-settings
سؤال
In my M 2.2.6 I can not enter the Category section of dashboard, the spining is turn around.
When I check the console, some of JS has 404 error
In - adminhtml/web/js/components/use-parent-settings -
select.js
single-checkbox.js
textarea.js
toggle-disabled-mixin.js
I add it manual via SFTP then run
bin/magento setup:static-content:deploy -f
Problem temporarily resolved, but after one day, I can not enter the category section on dashboard again. and again.
On the other hand I can not set to production to run
bin/magento deploy:mode:set production
It gives an error like
The directory "/srv/public_html/pub/static/adminhtml/Magento/backend/tr_TR/Magento_Catalog/js/components/use-parent-settings/toggle-disabled-mixin.js" cannot be deleted Warning!rmdir(/srv/public_html/pub/static/adminhtml/Magento/backend/tr_TR/Magento_Catalog/js/components/use-parent-settings/toggle-disabled-mixin.js): Not a directory
As it appears that the symlinks are part of your deployment system, will need to fix the links to point to the appropriate place/file but I can not handle.
Any Suggestions?
المحلول
Try to run command in this sequence
php bin/magento deploy:mode:set developer
php bin/magento deploy:mode:set production --skip-compilation
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:clean
php bin/magento cache:flush
php bin/magento setup:static-content:deploy -f en_GB tr_TR
After running this commands you'll not get any issues then.
Hope this will work for you!