Skip to Content
Menu
This question has been flagged

There are noindex tags on every single page of my site, which seem to have been set, ironically, by the SEO "App??" - not sure what it's called exactly in Odoo.

In addition, my robots.txt does not update from odoo settings, or from the robots.txt file stored on my domain's host server.

Also, my sitemap.xml does not generate. It throws an error saying that some page needs to be rebuilt from either the "last version," or the "original version." Neither of which fix the issue.


I know there are old topics on this but I have 3 support tickets that have been open for days on these issues with no help from support. Someone must have figured this stuff out by now, right?


I know about changing the domain between http and https in the field, it sometimes makes my robots.txt generate, other times it does nothing.

Avatar
Discard
Author

For the sitemap issue, the exact error I am getting is this:
Error message:

Error while render the template
TypeError: '<' not supported between instances of 'bool' and 'str'
Template: website.sitemap_locs
Path: /t/url
Node: <url t-foreach="locs" t-as="page"/>
The error occurred while rendering the template website.sitemap_locs and evaluating the following expression: <url t-foreach="locs" t-as="page"/>

Which doesn't make sense because if you read the file website.sitemap_locs, you'll see this:
<url t-foreach="locs" t-as="page">

So where is this error coming from? I have tried to remove the sitemap_locs and manually input my sitemap into website.sitemap_xml, but it didn't work with or without the sitemap_locs file being there.

Did you get any answer on this? I am having the same problem - my robots.txt file not updating despite changing it in the same two locations you have done.
It's infuriating.

Best Answer

I had the same issue. This is how I fixed it.

  1. Go to Website > Site > HTML/CSS Editor   

  2. Click Edit HTML Anyway  

  3. From the first dropdown, select XML (HTML) 

  4. From the second dropdown, select Main Layout . (The template ID of the main layout is website.layout )   

  5. Go to line 44.

  6. Find where it says  (website.domain and not website._is_indexable_url(request.httprequest.url_root)) 

  7. Replace  request.httprequest.url_root  with 'https://your-domain.com' (you must use single quotes)  

  8. Save and close the file

Avatar
Discard
Related Posts Replies Views Activity
1
Apr 24
2830
3
Jul 24
2072
2
Mar 23
1733
1
Dec 24
4324
1
Apr 23
1555