Skip to Content
Menu
This question has been flagged

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...

Avatar
Discard
Author Best Answer

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.


Avatar
Discard
Related Posts Replies Views Activity
3
Feb 24
9111
3
Apr 25
1339
3
Mar 25
2091
1
Apr 25
684
1
Dec 24
921