1

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

0

Can you try to set permission

sudo chmod -R 2775 /var/www/html/var/

Simillar: https://github.com/magento/magento2/issues/20639

3
  • Hi , I ran this command but now it is saying that CatalogInventory_stock_status is missing from database. Commented Feb 3, 2020 at 13:53
  • But it is there in the database Commented Feb 3, 2020 at 13:53
  • Can you paste error? Try reindex also.
    – BartZalas
    Commented Feb 3, 2020 at 13:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.