I have migrated from from magento 1.9.2.3 to magento 2.3.3. previously my products in admin panel and frontend was not opening, there was some duplicate entries for product id, so i removed the duplicate entries in the database tables. Since then the products on frontend started opening but on the admin panel it is giving 500 error, on further checking the logs i found this in exception.log file.
[2020年01月11日 09:04:06] main.CRITICAL: Path "/home/xxxxx/public_html/var/view_preprocessed/pub/static/" cannot be used with directory "/home/xxxxx/public_html/var/view_preprocessed/pub/static/" {"exception":"[object] (Magento\Framework\Exception\ValidatorException(code: 0): Path "/home/xxxxxxxxxx/public_html/var/view_preprocessed/pub/static/" cannot be used with directory "/home/xxxxxxxx/public_html/var/view_preprocessed/pub/static/" at /home/xxxxxx/public_html/vendor/magento/framework/Filesystem/Directory/PathValidator.php:63)"} []
I have also deleted the folder var_preprocessed and run the php bin/magento static-content:deploy many times and cleared the cache but the problem did not resolve.
What can be the issue and how should I resolve this?
Please help.. Thanks in advance.
1 Answer 1
Can you try to set permission
sudo chmod -R 2775 /var/www/html/var/
-
Hi , I ran this command but now it is saying that CatalogInventory_stock_status is missing from database.varun Srivastava– varun Srivastava2020年02月03日 13:53:33 +00:00Commented Feb 3, 2020 at 13:53
-
But it is there in the databasevarun Srivastava– varun Srivastava2020年02月03日 13:53:51 +00:00Commented Feb 3, 2020 at 13:53
-
Can you paste error? Try reindex also.BartZalas– BartZalas2020年02月03日 13:57:01 +00:00Commented Feb 3, 2020 at 13:57