Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2480 Widoki

Hello all, 

I've just installed a new odoo server with :

  • a V18 community version
  • 5 differents databases with dbfilter
  • on a linux debian with postgresql and a nginx reverse proxy with ssk

Everything seems to work fine, less the website module.

When i try to create a website, after the website creation workflow is done, the module give the same error everytime on the internal website page (https://mysitedotodoo/website).

oups!

Something went wrong... If you really are stuck, share the report with your friendly support service 
Hide technical details
Erreur client Odoo
UncaughtClientError > TypeError
Uncaught Javascript Error > Cannot read properties of null (reading 'querySelector')
Occured on www.mysitedotcom on 2024-10-28 14:57:57 GMT
TypeError: Cannot read properties of null (reading 'querySelector')
    at iframe.el.addEventListener.once (https://www.mysitedotcom/web/assets/1/5c47d5e/web.assets_web.min.js:19005:1191)

As the db is new and quite empty, i guess it is something i've made in the configuration, but don't know what it could be.

I've tried to have more infos on debug mode (start odoo with --log-level debug) but without anything interesting to notice in the log.

There is no error there, just a warning on :

WARNING ? odoo.http: Logged into database 'mysitedotcom', but dbfilter rejects it; logging session out.

There is no more errors or warning in the /var/log/odoo/odoo-server.log, and i am not even sure it is related with my problem

Anybody have any clue on how to follow up?

Thx !

PS : As i have various db, i've tried on another and had the same error...

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Hello all,

I’ve found the issue and wanted to share the solution in case someone else encounters the same problem.

I had added the option:

add_header X-Frame-Options "DENY";

to the Nginx configuration while trying to improve security.

However, this option prevents Odoo from loading iframes.

The solution was to replace it with:

add_header X-Frame-Options "SAMEORIGIN";

Hopefully, this will help someone avoid the same mistake I made!

The solution was just with the option :  add_header X-Frame-Options "SAMEORIGIN"; instead.


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
Website Export Rozwiązane
3
lut 24
10544
1
lip 25
364
2
cze 25
2025
3
kwi 25
2299
3
mar 25
3441