New answers tagged

0

Log in to your SSH/CLI with admin permissions and navigate to the root of your store. Set permissions to the files: find . -type f -exec chmod 644 {} \; Set permissions to the directories: find . -type d -exec chmod 755 {} \; Set permissions to special directories: find ./var -type d -exec chmod 777 {} \; find ./pub/media -type d -exec chmod 777 {} \; find ./...


0

It is possible that this directory doesn't have the appropriate permissions. Try sudo chmod 777 /var/www/html/magento2/pub/* If that doesn't work, I use this code when all else fails. Try: rm -rf /var/www/html/mage/view_preprocessed/* && rm -rf /var/www/html/mage/pub/static/frontend/* && rm -rf /var/www/html/mage/generated/code/* && ...


0

Add method to your class public function __construct( ...................................................... \Magento\Catalog\Model\ProductFactory $productFactory, \Magento\Catalog\Block\Product\ListProduct $listProductBlock, ...................................................... ) { ...................................................... ...


Top 50 recent answers are included