Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
12 Risposte
16303 Visualizzazioni

I am getting these errors after the installation.


The style compilation failed, see the error below. This is an administrator or developer error that must be fixed for the entire database before continuing working.

A CSS error occured, using an old style to render this page.

Please help to find the solution I tried to install multiple packages like npm, less, libsass, node etc but not work.


Thanks in advance

Avatar
Abbandona
Risposta migliore
insatll this required packges 
sudo apt-get install python-dev python3-dev libxml2-dev libxslt1-dev zlib1g-dev libsasl2-dev libldap2-dev build-essential libssl-dev libffi-dev libmysqlclient-dev libjpeg-dev libpq-dev libjpeg8-dev liblcms2-dev libblas-dev libatlas-base-dev
sudo apt-get install -y npm
sudo ln -s /usr/bin/nodejs /usr/bin/node
sudo npm install -g less less-plugin-clean-css
sudo apt-get install -y node-less

if still not then istall libass packge as well
pip3 install libsass==0.12.3


Avatar
Abbandona
Risposta migliore

So I know this doesn't seem right, but I ran into the same problem and tried to fix for hours. I ended up deleting my DB and started again. Loaded my first page and it STILL was throwing the style error. I literally did a hard refresh (Ctrl+F5) and it loaded. Not joking!

Avatar
Abbandona

I can vouch that it worked for me. Man isn't joking!

it works, ty)

Risposta migliore

After hours of seriously questioning life choices I found the issue.
The problem occures when using different setups with the same domain ip especially (Enterprise, non enterprise setups)
It has to do with the caching in Odoo. Some assets don't get reloaded. The assets get a 304 Not Modified (see logs). But in fact they are modified and produce these weeird errors. 




Avatar
Abbandona
Risposta migliore

I installed Odoo 18 with PyCharm the normal way I used to, then I got the error. I struggled for many days uninstalling and Installing different packages without any success. Then I deleted the databse through the odoo database manager and recreated it, and everything started working.

Avatar
Abbandona
Risposta migliore

Hello so I faced the same issue and it disturbed me for days, I solved it by updating the base module. i.e. on your command line run python odoo-bin -c path_to_conf_file -u base.

Avatar
Abbandona
Risposta migliore

same error I have faced , resolved by if sass installed then pip uninstall sass , then pip install libsaas and change the db and run it  worked for me

Avatar
Abbandona
Risposta migliore

Hi,

Have you ensured that all your addon paths are correctly specified in the configuration file? The error suggests that Odoo might not be able to access the files in the specified addons directory. Could you please double-check the addon paths in the Odoo configuration file?

Avatar
Abbandona
Risposta migliore

I am having the same issue. here is a screenshot of my odoo window. There is no custom code in the repo yet. also my odoo log stays empty upon running.


Here is a screenshot of my ide log: (its empty) 


Any ideas on how to fix this?

Avatar
Abbandona
Risposta migliore

Hi, 

You can try reloading the asset bundles using the activate developer mode (with assets) option from settings.


if that doesn't work, try upgrading the base module.


Hope it helps

Avatar
Abbandona
Risposta migliore

I am having the same problem

Avatar
Abbandona
Autore Risposta migliore

I did not create any custom module in which I can share the code I have set up a fresh version of Odoo 17 and after successfully completing installation I am getting this error.

This is the error on the browser,

The style compilation failed, see the error below. This is an administrator or developer error that must be fixed for the entire database before continuing working.

Avatar
Abbandona
Risposta migliore

please provide your code and error log. 

Avatar
Abbandona