cancel
Showing results for 
Search instead for 
Did you mean: 

Compilation from source: LESS file is empty: email-inline.less

Highlighted

Compilation from source: LESS file is empty: email-inline.less

Hello all,

I have spend the last days trying to find a solution to the following problem.

In exception.log i get

 

[2020-05-17 13:11:04] main.ERROR: <pre>
Compilation from source: LESS file is empty: frontend/Mgs/claue/en_US/css/email-inline.less
 </pre> {"exception":"[object] (Magento\\Framework\\Exception\\MailException(code: 0): <pre>
Compilation from source: LESS file is empty: frontend/Mgs/claue/en_US/css/email-inline.less
 </pre> at /home/www/georgia/mysite.gr/www/vendor/magento/module-email/Model/Template/Filter.php:1039)"} []
[2020-05-17 13:17:28] main.ERROR: <pre>
Compilation from source: LESS file is empty: frontend/Mgs/claue/el_GR/css/email-inline.less
</pre> {"exception":"[object] (Magento\\Framework\\Exception\\MailException(code: 0): <pre>
Compilation from source: LESS file is empty: frontend/Mgs/claue/el_GR/css/email-inline.less
</pre> at /home/www/georgia/mysite.gr/www/vendor/magento/module-email/Model/Template/Filter.php:1039)"} []

and order email is sent without css and also with message at the top : 

 

Compilation from source: LESS file is empty: frontend/Mgs/claue/el_GR/css/email-inline.less

I run magento 2.3.5 and in developer mode. I also clean var and pub/static/frontend/ and run deploy -f el_GR en_US but i get the same message for both files.

 

my files in frontend/Mgs/claue/el_GR/css/ i have the following files generated :

drwxrwxr-x 2 georgiap georgiap 512 May 18 22:38 third-party_extension
-rw-rw-r-- 1 george george 4122 May 18 22:38 owl.carousel.css
-rw-rw-r-- 1 george george 435966 May 18 22:33 theme.css
-rw-rw-r-- 1 george george 12010 May 18 22:33 menu.css
-rw-rw-r-- 1 george george 45897 May 18 22:33 responsive.css
-rw-rw-r-- 1 george george 13220 May 18 22:33 theme_default.css
-rw-rw-r-- 1 george george 9953 May 18 22:33 pe-icon-7-stroke.css
-rw-rw-r-- 1 george george 109518 May 18 22:33 bootstrap.min.css
-rw-rw-r-- 1 george george 33233 May 18 22:33 font-awesome.css

In admin -> developer -> template settings, Allow Symlinks is set to No. 

Open up app/etc/di.xml and find the virtualType name="developerMaterialization" section. In that section i modified it by changing the contents from Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink to Magento\Framework\App\View\Asset\MaterializationStrategy\Copy

 

No luck! email css files not found in el_GR/çss folder... Any idea how to fix this issue?

 

Regards

George