Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
12 Răspunsuri
16331 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns
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


Imagine profil
Abandonează
Cel mai bun răspuns

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!

Imagine profil
Abandonează

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

it works, ty)

Cel mai bun răspuns

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. 




Imagine profil
Abandonează
Cel mai bun răspuns

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.

Imagine profil
Abandonează
Cel mai bun răspuns

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.

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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?

Imagine profil
Abandonează
Cel mai bun răspuns

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?

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

I am having the same problem

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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.

Imagine profil
Abandonează
Cel mai bun răspuns

please provide your code and error log. 

Imagine profil
Abandonează