Bug #89346

sitemap.xml does not work correctly

Added by Edward A. Gabdullin about 1 year ago. Updated 8 months ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2019-10-04
Due date:
% Done:

0%

TYPO3 Version:
10
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
On Location Sprint

Description

There are three installations Typo3
1.

base: /
baseVariants: {  }
errorHandling: {  }
languages:
  -
    title: English
    enabled: true
    languageId: '0'
    base: /
    typo3Language: default
    locale: en_US.UTF-8
    iso-639-1: en
    navigationTitle: English
    hreflang: en-US
    direction: ''
    flag: global
  -
    title: Dansk
    enabled: true
    languageId: '1'
    base: /da/
    typo3Language: da
    locale: da_DK.UTF-8
    iso-639-1: da
    navigationTitle: Dansk
    hreflang: da-DE
    direction: ''
    fallbackType: strict
    fallbacks: ''
    flag: dk
  -
    title: German
    enabled: true
    languageId: '2'
    base: /de/
    typo3Language: de
    locale: de_DE.UTF-8
    iso-639-1: de
    navigationTitle: German
    hreflang: de-DE
    direction: ''
    fallbackType: strict
    fallbacks: ''
    flag: de
rootPageId: 1
routes: {  }
routeEnhancers:
  PageTypeSuffix:
    type: PageType
    map:
      /: 0
      sitemap.xml: 1533906435

2.
base: /
baseVariants: {  }
errorHandling:
  -
    errorCode: '404'
    errorHandler: Page
    errorContentSource: 't3://page?uid=85'
languages:
  -
    title: Русский
    enabled: true
    languageId: '0'
    base: /
    typo3Language: ru
    locale: ru_RU.UTF-8
    iso-639-1: ru
    navigationTitle: Русский
    hreflang: ru-RU
    direction: ltr
    flag: ru
  -
    title: English
    enabled: true
    languageId: '1'
    base: /en/
    typo3Language: default
    locale: en_US.UTF-8
    iso-639-1: en
    navigationTitle: English
    hreflang: en-US
    direction: ltr
    fallbackType: strict
    flag: gb
rootPageId: 1
routeEnhancers:
  PageTypeSuffix:
    type: PageType
    default: /
    suffix: /
    index: ''
    map:
      /: 0
      sitemap.xml: 1533906435
routes: {  }

3.
base: /
baseVariants: {  }
errorHandling:
  -
    errorCode: '404'
    errorHandler: Page
    errorContentSource: 't3://page?uid=85'
  -
    errorCode: '503'
    errorHandler: Page
    errorContentSource: 't3://page?uid=86'
languages:
  -
    title: Русский
    enabled: true
    languageId: '0'
    base: 'https://elarum.ru/'
    typo3Language: ru
    locale: ru_RU.UTF-8
    iso-639-1: ru
    navigationTitle: Русский
    hreflang: ru-RU
    direction: ltr
    flag: ru
  -
    title: English
    enabled: true
    languageId: '1'
    base: 'https://elarum.com/'
    typo3Language: default
    locale: en_US.UTF-8
    iso-639-1: en
    navigationTitle: English
    hreflang: en-US
    direction: ltr
    fallbackType: strict
    fallbacks: ''
    flag: gb
  -
    title: Қазақ
    enabled: false
    languageId: '2'
    base: 'https://elarum.kz/'
    typo3Language: ru
    locale: kk_KZ.UTF-8
    iso-639-1: kk
    navigationTitle: Қазақ
    hreflang: kk-KZ
    direction: ''
    fallbackType: fallback
    fallbacks: '0'
    flag: kz
rootPageId: 1
routeEnhancers:
  PageTypeSuffix:
    type: PageType
    default: /
    suffix: /
    index: ''
    map:
      /: 0
      sitemap.xml: 1533906435
routes: {  }

For 1 variant
https://alfaneftehim.ru/sitemap.xml?sitemap=pages&cHash=7af54a2fc49cf516b993f321c3960bf1
completely coincides with
https://alfaneftehim.ru/da/sitemap.xml?sitemap=pages&cHash=7af54a2fc49cf516b993f321c3960bf1
actually the number of pages is different
maybe because cHash is the same

For 2 variant
https://gabdullin.name/sitemap.xml?sitemap=pages&cHash=a99c2cfce77a538c64e3de0213cf780e
completely coincides with
https://gabdullin.name/en/sitemap.xml?sitemap=pages&cHash=a99c2cfce77a538c64e3de0213cf780e
actually the number of pages is different
maybe because cHash is the same

For 3 variant
https://elarum.ru/sitemap.xml
and
https://elarum.com/sitemap.xml
not displayed

scr_491.jpg View (99.5 KB) Edward A. Gabdullin, 2019-10-04 11:55

scr_492.jpg View (284 KB) Edward A. Gabdullin, 2019-10-04 11:55

scr_493.jpg View (97.6 KB) Edward A. Gabdullin, 2019-10-04 11:55

scr_494.jpg View (300 KB) Edward A. Gabdullin, 2019-10-04 11:55

scr_495.jpg View (97.6 KB) Edward A. Gabdullin, 2019-10-04 11:55

scr_497.jpg View (102 KB) Edward A. Gabdullin, 2019-10-04 11:55

scr_496.jpg View (332 KB) Edward A. Gabdullin, 2019-10-04 11:55

scr_499.jpg View (93.8 KB) Edward A. Gabdullin, 2019-10-04 11:55

scr_500.jpg View (90.2 KB) Edward A. Gabdullin, 2019-10-04 11:55

scr_498.jpg View (335 KB) Edward A. Gabdullin, 2019-10-04 11:55

scr_548.jpg View (100 KB) Edward A. Gabdullin, 2020-01-21 17:47

scr_547.jpg View (246 KB) Edward A. Gabdullin, 2020-01-21 17:47

scr_549.jpg View (282 KB) Edward A. Gabdullin, 2020-01-21 17:47

scr_550.jpg View (101 KB) Edward A. Gabdullin, 2020-01-21 17:47

scr_551.jpg View (298 KB) Edward A. Gabdullin, 2020-01-21 17:47

scr_552.jpg View (102 KB) Edward A. Gabdullin, 2020-01-21 17:47

scr_554.jpg View (104 KB) Edward A. Gabdullin, 2020-01-21 17:47

scr_553.jpg View (327 KB) Edward A. Gabdullin, 2020-01-21 17:47

scr_555.jpg View (338 KB) Edward A. Gabdullin, 2020-01-21 17:47


Related issues

Related to TYPO3 Core - Bug #87104: PageTypeSuffix removes type parameter for non mapped type values Needs Feedback 2018-12-07
Related to TYPO3 Core - Bug #86835: Static route sitemap.xml is still not working on single-page tree New 2018-11-02

History

#1 Updated by Tymoteusz Motylewski 12 months ago

  • Related to Bug #87104: PageTypeSuffix removes type parameter for non mapped type values added

#2 Updated by Tymoteusz Motylewski 12 months ago

  • Related to Bug #86835: Static route sitemap.xml is still not working on single-page tree added

#3 Updated by Susanne Moog 10 months ago

  • Sprint Focus set to On Location Sprint

#4 Updated by Daniel Goerz 10 months ago

  • Status changed from New to Needs Feedback

I am not able to reproduce the empty index sitemap with a language that has a custom domain configured as base.

Could you provide more information on how to reproduce this behavior?

#5 Updated by Edward A. Gabdullin 9 months ago

I tried on a clean installation typo3. The server on which the problem is described scr_499.jpg!

Server configuration: Centos 8.1, kernel: 4.18.0-147.3.1.el8_1.x86_64, nginx: 1.16.1, php: 7.2.26, MariaDB: 10.3.21, redis: 5.0.3

Typo3 10.2.2 + bootstrap_package 11.0.2 + introduction 4.2.0

One page translated into Danish (scr_547.jpg)

base: /
baseVariants: {  }
errorHandling: {  }
languages:
  -
    title: English
    enabled: true
    languageId: '0'
    base: /
    typo3Language: default
    locale: en_US.UTF-8
    iso-639-1: en
    navigationTitle: English
    hreflang: en-US
    direction: ''
    flag: global
    websiteTitle: ''
  -
    title: Dansk
    enabled: true
    languageId: '1'
    base: /da/
    typo3Language: da
    locale: da_DK.UTF-8
    iso-639-1: da
    navigationTitle: Dansk
    hreflang: da-DE
    direction: ''
    fallbackType: strict
    fallbacks: ''
    flag: dk
    websiteTitle: ''
rootPageId: 1
routeEnhancers:
  PageTypeSuffix:
    type: PageType
    map:
      sitemap.xml: 1533906435
routes: {  }

I get: scr_548.jpg, scr_549.jpg, scr_550.jpg, scr_551.jpg

Changed configuration for Danish to:

base: /
baseVariants: {  }
errorHandling: {  }
languages:
  -
    title: English
    enabled: true
    languageId: '0'
    base: 'https://alfaneftehim.ru'
    typo3Language: default
    locale: en_US.UTF-8
    iso-639-1: en
    navigationTitle: English
    hreflang: en-US
    direction: ''
    flag: global
    websiteTitle: ''
  -
    title: Dansk
    enabled: true
    languageId: '1'
    base: 'https://alfaneftehim.com/'
    typo3Language: da
    locale: da_DK.UTF-8
    iso-639-1: da
    navigationTitle: Dansk
    hreflang: da-DE
    direction: ''
    fallbackType: strict
    fallbacks: ''
    flag: dk
    websiteTitle: ''
rootPageId: 1
routeEnhancers:
  PageTypeSuffix:
    type: PageType
    map:
      sitemap.xml: 1533906435
routes: {  }

I get: scr_552.jpg, scr_553.jpg, scr_554.jpg, scr_555.jpg

I can’t repeat the problem :( I will look for the source of the problem further.

But he revealed a different problem. Only one page is translated into Danish, and sitemap.xml displays all page.

#6 Updated by Edward A. Gabdullin 8 months ago

It turned out to get an empty index file is very easy. The "Canonical Links" field on the pages has been filled. Such pages do not get into the file sitemap.xml!

Also available in: Atom PDF