- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Compilation error after upgrading to version 2.3.3
Hi guys. after upgrading our site to version 2.3.3 in static deploy on the live server i got the following errors:
Compilation from source /home/www-mz/htdocs/app/design/frontend/nine/mc/web/css/jquery.dmenu.css failed Magento\Framework\View\Asset\File\NotFoundException: Unable to resolve the source file for 'frontend/nine/mc/nb_NO/css/jquery.dmenu.css' in /home/www-mz/htdocs/vendor/magento/framework/View/Asset/File.php:160
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Compilation error after upgrading to version 2.3.3
Hello @5d19c60a6d1cc
Did you try compilation with the default theme?
There are chances some of the components of your current installed theme is not fully compatible with Magento 2.3.3 and hence compilation is showing an error to you.
You can also ask theme vendor for this issue if they have patch ready for Magento 2.3.3
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Compilation error after upgrading to version 2.3.3
You can use the below command to disable the compilation.
After that run the static content deploy command and if everything works fine in the end enable to compilation by using enable instead of disable in command.
php -f shell/compiler.php -- disable
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Compilation error after upgrading to version 2.3.3
Hi. the theme i use is made by me.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Compilation error after upgrading to version 2.3.3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Compilation error after upgrading to version 2.3.3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Compilation error after upgrading to version 2.3.3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Compilation error after upgrading to version 2.3.3
@Rahul Gupta wrote:
After disabling compilation have you flush the cache?
yes, i will also update my question. because right now the error is also now occurring in my local machine.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Compilation error after upgrading to version 2.3.3
Please run the following commands in the below sequence.
php bin/magento cache:flush sudo chmod -R 777 var/ pub/static/ generated/ rm -rf var/generation/* var/cache/* var/report/* pub/static/frontend/* var/page_cache/* generated/* php bin/magento setup:upgrade sudo chmod -R 777 var/ pub/static/ generated/ php bin/magento setup:static-content:deploy -f php bin/magento cache:flush
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Compilation error after upgrading to version 2.3.3
Hello @5d19c60a6d1cc
This issue due to theme directory or theme vendor name is renamed. Try below step to fix this.
- Change your theme vendor first letter in capitol. Your vendor name is "nine" make it "Nine"
- Change the theme directory name into theme's.
app\design\frontend\<Nine>\<mc>\composer.json app\design\frontend\<Nine>\<mc>\theme.xml (if parent theme is not default magento) app\design\frontend\<Nine>\<mc>\registration.php
- Now, delete your current theme entry from the "theme" table, but keep back-up of this table before removing custom theme entry
- 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
- Now you will not see the compilation error
- Now you will see new entry into the "theme" database table
- Change your store theme from admin
Thank you