cancel
Showing results for 
Search instead for 
Did you mean: 

Gettint this error when trying setup proto theme

Gettint this error when trying setup proto theme

I have purchased porto theme and just move all files through ftp in my project and then run setup:upgrade its run fine but when i run static-content: deploy -f the its showing this error in cli please how i can resolve this issue?

Compilation from source

/home/devedmp/public_html/app/design/frontend/Smartwave/porto/Magento_Catalog/web/js/jquery.zoom.min.js failed Magento\Framework\View\Asset\File\NotFoundException: Unable to resolve the source file for

'frontend/Smartwave/porto_rtl/en_US/Magento_Catalog/js/jquery.zoom.min.js'

in /home/devdemp/public_html/vendor/magento/framework/View/Asset/File.php:160 Stack trace:

1 REPLY 1

Re: Gettint this error when trying setup proto theme

This issue is due to the theme directory or theme vendor name being renamed. Try the below steps to fix this.
1. Change your theme vendor first letter in capital.
2. Change the theme directory name into theme.

app\design\frontend\<Your-Vendor>\<theme-name>\composer.json
app\design\frontend\<Your-Vendor>\<theme-name>\theme.xml (if parent theme is not default magento)
app\design\frontend\<Your-Vendor>\<theme-name>\registration.php

3. Now, delete your current theme entry from the "theme" table, but keep back-up of this table before removing the custom theme entry.
4. Now run the command for setup-upgrade, static content deploy, and cache clear.

rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/* var/session/* var/view_preprocessed/*
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento c:f && php bin/magento c:c

5. Change your store theme from admin.

If issue solved, Click Kudos & Accept as Solution.
LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool