تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
5 الردود
8671 أدوات العرض

Style errorThe style compilation failed. This is an administrator or developer error that must be fixed for the entire database before continuing working. See browser console or server logs for details.


How can i fix this, i am running Odoo17 community edition on a windows server environment.

الصورة الرمزية
إهمال
أفضل إجابة

for me it also was connected with the themes. 

Solution:

Go to the developer mode ?debug=assets then the page is working again - in the frontend install a different/new theme. Then it also works without debug mode.

And there was an issue with caching.

If I deleted the assets in the database they got regenerated and then it worked again.
res = env['ir.attachment'].search([('url', 'like', '/web/%')])

res.unlink()

الصورة الرمزية
إهمال
أفضل إجابة

   I had the same problem, it seems that the theme gets unlinked when the restore takes place, so what I did was to change or reselect the web site  theme and it worked. 

الصورة الرمزية
إهمال
الكاتب

That sounds like a working solution, i will try that when i do the next restore. since i moved over to 18 community and started fresh i am not experiencing that error. Thank you.

Can you tell me how please ?

الكاتب أفضل إجابة

Hi.

All i did was restore a database from one pc on to another pc and then this error popped up. everything is identical. so i am not sure

الصورة الرمزية
إهمال

try to upgrade base module
-u base
or
-u all

الكاتب

how do i do this in a windows environment, do i download a new community build?

odoo-bin -c odoo.conf --dev=assets

Style compilation issues can sometimes occur due to missing dependencies like node.js, less, or libsass -
run this commands also

npm install -g less less-plugin-clean-css
npm install -g node-sass

أفضل إجابة

If you have custom modules or custom themes, they could be causing the compilation failure. Review any custom CSS, LESS, or SCSS code for syntax errors or compatibility issues.

Temporarily disable custom modules or themes and restart the server to see if the issue persists.

الصورة الرمزية
إهمال
أفضل إجابة

Hello, Please make sure you have installed libsass==0.20.1 library.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
نوفمبر 24
8299
1
أغسطس 24
1413