Skip to Content
Odoo Menu
  • Log ind
  • Prøv gratis
  • Apps
    Økonomi
    • Bogføring
    • Fakturering
    • Udgifter
    • Regneark (BI)
    • Dokumenter
    • e-Signatur
    Salg
    • CRM
    • Salg
    • POS Butik
    • POS Restaurant
    • Abonnementer
    • Udlejning
    Hjemmeside
    • Hjemmesidebygger
    • e-Handel
    • Blog
    • Forum
    • LiveChat
    • e-Læring
    Forsyningskæde
    • Lagerbeholdning
    • Produktion
    • PLM
    • Indkøb
    • Vedligeholdelse
    • Kvalitet
    HR
    • Medarbejdere
    • Rekruttering
    • Fravær
    • Medarbejdersamtaler
    • Anbefalinger
    • Flåde
    Marketing
    • Markedsføring på sociale medier
    • E-mailmarketing
    • SMS-marketing
    • Arrangementer
    • Automatiseret marketing
    • Spørgeundersøgelser
    Tjenester
    • Projekt
    • Timesedler
    • Udkørende Service
    • Kundeservice
    • Planlægning
    • Aftaler
    Produktivitet
    • Dialog
    • Godkendelser
    • IoT
    • VoIP
    • Vidensdeling
    • WhatsApp
    Tredjepartsapps Odoo Studio Odoo Cloud-platform
  • Brancher
    Detailhandel
    • Boghandel
    • Tøjforretning
    • Møbelforretning
    • Dagligvarebutik
    • Byggemarked
    • Legetøjsforretning
    Mad og værtsskab
    • Bar og pub
    • Restaurant
    • Fastfood
    • Gæstehus
    • Drikkevareforhandler
    • Hotel
    Ejendom
    • Ejendomsmægler
    • Arkitektfirma
    • Byggeri
    • Ejendomsadministration
    • Havearbejde
    • Boligejerforening
    Rådgivning
    • Regnskabsfirma
    • Odoo-partner
    • Marketingbureau
    • Advokatfirma
    • Rekruttering
    • Audit & certificering
    Produktion
    • Tekstil
    • Metal
    • Møbler
    • Fødevareproduktion
    • Bryggeri
    • Firmagave
    Heldbred & Fitness
    • Sportsklub
    • Optiker
    • Fitnesscenter
    • Kosmetolog
    • Apotek
    • Frisør
    Håndværk
    • Handyman
    • IT-hardware og support
    • Solenergisystemer
    • Skomager
    • Rengøringsservicer
    • VVS- og ventilationsservice
    Andet
    • Nonprofitorganisation
    • Miljøagentur
    • Udlejning af billboards
    • Fotografi
    • Cykeludlejning
    • Softwareforhandler
    Gennemse alle brancher
  • Community
    Få mere at vide
    • Tutorials
    • Dokumentation
    • Certificeringer
    • Oplæring
    • Blog
    • Podcast
    Bliv klogere
    • Udannelselsesprogram
    • Scale Up!-virksomhedsspillet
    • Besøg Odoo
    Få softwaren
    • Download
    • Sammenlign versioner
    • Udgaver
    Samarbejde
    • Github
    • Forum
    • Arrangementer
    • Oversættelser
    • Bliv partner
    • Tjenester til partnere
    • Registrér dit regnskabsfirma
    Modtag tjenester
    • Find en partner
    • Find en bogholder
    • Kontakt en rådgiver
    • Implementeringstjenester
    • Kundereferencer
    • Support
    • Opgraderinger
    Github Youtube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Få en demo
  • Prissætning
  • Hjælp

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Bogføring
  • Lager
  • PoS
  • Projekt
  • MRP
All apps
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Hjælp

odoo11: robots.txt issue on PageSpeed Insights/Search Console

Tilmeld

Få besked, når der er aktivitet på dette indlæg

Dette spørgsmål er blevet anmeldt
robots.txtodoo11
1 Svar
5022 Visninger
Avatar
Filippo

I've an issue with my robots.txt, on page speed insights and search console it's reported some errors:


Line #ContentError
1
Unknown directive
2

User-agent: *

Unknown directive
4
Syntax not understood

even if the robot.txt seen from web is without doctype or

tag.


Can you please help?

0
Avatar
Kassér
Avatar
Bhavin Patel
Bedste svar

It seems that there may be an issue with the formatting of your robots.txt file. The errors reported by PageSpeed Insights and Search Console suggest that there are unknown or incorrect directives in your robots.txt file.

Here are a few things you can check to resolve this issue:

  1. Make sure that your robots.txt file is located at the root of your website's domain (e.g. www.example.com/robots.txt). If it's not located there, search engine bots may not be able to find and read it.

  2. Check the syntax of your robots.txt file to ensure that it's properly formatted. Each directive should be on a separate line, and the file should be saved in plain text format (not HTML or any other format).

  3. Verify that the directives in your robots.txt file are valid. The User-agent directive should be followed by the name of the search engine bot you want to control (e.g. Googlebot), and the Allow and Disallow directives should be followed by the URL paths you want to allow or disallow crawling (e.g. Allow: /blog/).

  4. If you're using Odoo 11 to manage your website, you may want to check if there are any add-ons or customizations that could be affecting the robots.txt file. Make sure that any changes you make to the robots.txt file are reflected in Odoo as well.

Once you've made any necessary changes to your robots.txt file, you can resubmit it to the Google Search Console to ensure that it's being correctly read and interpreted by search engine bots.

1
Avatar
Kassér
Filippo
Forfatter

Hi,
the issue is with the website_lazy_load_images module, it is adding doctype and formatting on the robot.txt file, I've downloaded from github the last version but it still has the bug.

Bhavin Patel

The robots.txt file is an important file for search engines to crawl your website effectively. If there is an issue with the formatting or content of the robots.txt file, it can affect your website's visibility on search engines.

Regarding the issue with the website_lazy_load_images module adding doctype and formatting on the robots.txt file, you can try the following steps to resolve it:

Disable the website_lazy_load_images module temporarily and check if the issue is resolved.
If disabling the module resolves the issue, then try to update the module to the latest version or reach out to the module developers for a fix.
If the issue persists even after updating the module, then try to manually modify the robots.txt file and remove any unwanted formatting added by the module.

You can also try testing your website on other SEO tools like Google's Mobile-Friendly Test, GTmetrix, or Pingdom to check if there are any other issues that need to be resolved to improve your website's performance and visibility on search engines.

Filippo
Forfatter

Hi thank you for your response,
I've already disabled the website_lazy_load-images module it the issue is resolved, this is the reason why I'm sure it is responsible for the defect.

I've also already updated teh module with the last version available, but ths issue still persist.

I can't , manually update the robot.txt, because the lazy_load module run on top and wrap it.

Testing it with PageSpeedInsight I found the issue.

Bhavin Patel

If disabling the website_lazy_load-images module resolved the issue with the robot.txt file, it's possible that there is a bug in the module that needs to be addressed.

In this case, I would suggest reaching out to the developer of the module to report the issue and ask for assistance in resolving it. You can also try checking the module's issue tracker on GitHub to see if others have experienced similar issues and if there are any suggested solutions or workarounds.

If you are unable to resolve the issue with the module and it is causing problems for your website, you may need to consider using an alternative solution for lazy loading images or find another way to optimize your website's performance.

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Tilmeld dig
Related Posts Besvarelser Visninger Aktivitet
create backorder odoo after validate purchase shipment ? Løst
odoo11
Avatar
Avatar
1
okt. 25
11779
Pages that aren’t indexed can’t be served on Google Løst
robots.txt
Avatar
Avatar
1
feb. 25
1655
I can't create any sub-task
odoo11
Avatar
Avatar
Avatar
2
jul. 24
3441
odoo 11 display calendar widget in website layout
odoo11
Avatar
Avatar
1
jun. 24
5793
Google is blocked by robots.txt
robots.txt
Avatar
Avatar
1
jan. 24
3636
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Oversættelser
Tjenester
  • Odoo.sh-hosting
  • Support
  • Opgradere
  • Individuelt tilpasset udvikling
  • Uddannelse
  • Find en bogholder
  • Find en partner
  • Bliv partner
Om os
  • Vores virksomhed
  • Brandaktiver
  • Kontakt os
  • Stillinger
  • Arrangementer
  • Podcast
  • Blog
  • Kunder
  • Juridiske dokumenter • Privatlivspolitik
  • Sikkerhedspolitik
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo er en samling open source-forretningsapps, der dækker alle dine virksomhedsbehov – lige fra CRM, e-handel og bogføring til lagerstyring, POS, projektledelse og meget mere.

Det unikke ved Odoo er, at systemet både er brugervenligt og fuldt integreret.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now