conflitto con tema custom

#757045
  • Resolved ilmazzzo
    Rank Math free

    il mio tema custom, creato da me, va in conflitto con rank math e non riesco a visualizzare la sitemap:

    This page contains the following errors:

    error on line 1 at column 7: XML declaration allowed only at the start of the document

    Below is a rendering of the page up to the first error.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    Mi scuso per il problema che stai riscontrando con la visualizzazione della sitemap a causa del conflitto con il tuo tema custom. L’errore “XML declaration allowed only at the start of the document” indica che c’è un problema con la dichiarazione XML presente nel documento.

    Per risolvere questo problema, ti consiglio di seguire questi passaggi:

    1. Verifica il Codice Sorgente: Controlla se ci sono spazi bianchi prima della dichiarazione XML nel codice sorgente del tuo tema custom. Assicurati che non ci siano linee vuote o spazi bianchi prima della dichiarazione XML.

    2. Verifica i Plugin in Conflitto: Utilizza il plugin Health Check per verificare se ci sono conflitti con altri plugin che potrebbero influire sulla visualizzazione della sitemap.

    3. Disabilita la Cache: Assicurati di disabilitare la cache, poiché potrebbe interferire con il corretto funzionamento della funzionalità di sitemap di Rank Math.

    Se non riesci a risolvere il problema seguendo questi passaggi, ti consiglio di esaminare attentamente il codice del tuo tema custom per individuare eventuali errori nella dichiarazione XML o di assegnare il ticket a un agente umano per ulteriore assistenza.

    Grazie per aver sollevato questa preoccupazione e per la tua pazienza mentre risolvi questo problema.

    Blank Space Sitemap

    Resto a disposizione per ulteriori domande o chiarimenti.

    Cordiali saluti.

    Sources:
    Rank Math Sitemap Issues and Their Fixes » Rank Math

    Hello,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.

    This sitemap error indicates that there must be some white space before the XML Sitemap’s source code. You can also look at the source code of Sitemap and see there is an extra line before the XML. This is caused by a blank line or space in your wp-config.php or functions.php file.

    Please follow this troubleshooting guide to fix that issue:
    https://rankmath.com/kb/fix-sitemap-issues/#xml-text-declaration

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The ticket ‘conflitto con tema custom’ is closed to new replies.