Project

General

Profile

Actions

Bug #89346

open

sitemap.xml does not work correctly

Added by Edward A. Gabdullin over 4 years ago. Updated over 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
SEO
Target version:
-
Start date:
2019-10-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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


Files

scr_491.jpg (99.5 KB) scr_491.jpg Edward A. Gabdullin, 2019-10-04 11:55
scr_492.jpg (284 KB) scr_492.jpg Edward A. Gabdullin, 2019-10-04 11:55
scr_493.jpg (97.6 KB) scr_493.jpg Edward A. Gabdullin, 2019-10-04 11:55
scr_494.jpg (300 KB) scr_494.jpg Edward A. Gabdullin, 2019-10-04 11:55
scr_495.jpg (97.6 KB) scr_495.jpg Edward A. Gabdullin, 2019-10-04 11:55
scr_497.jpg (102 KB) scr_497.jpg Edward A. Gabdullin, 2019-10-04 11:55
scr_496.jpg (332 KB) scr_496.jpg Edward A. Gabdullin, 2019-10-04 11:55
scr_499.jpg (93.8 KB) scr_499.jpg Edward A. Gabdullin, 2019-10-04 11:55
scr_500.jpg (90.2 KB) scr_500.jpg Edward A. Gabdullin, 2019-10-04 11:55
scr_498.jpg (335 KB) scr_498.jpg Edward A. Gabdullin, 2019-10-04 11:55
scr_548.jpg (100 KB) scr_548.jpg Edward A. Gabdullin, 2020-01-21 17:47
scr_547.jpg (246 KB) scr_547.jpg Edward A. Gabdullin, 2020-01-21 17:47
scr_549.jpg (282 KB) scr_549.jpg Edward A. Gabdullin, 2020-01-21 17:47
scr_550.jpg (101 KB) scr_550.jpg Edward A. Gabdullin, 2020-01-21 17:47
scr_551.jpg (298 KB) scr_551.jpg Edward A. Gabdullin, 2020-01-21 17:47
scr_552.jpg (102 KB) scr_552.jpg Edward A. Gabdullin, 2020-01-21 17:47
scr_554.jpg (104 KB) scr_554.jpg Edward A. Gabdullin, 2020-01-21 17:47
scr_553.jpg (327 KB) scr_553.jpg Edward A. Gabdullin, 2020-01-21 17:47
scr_555.jpg (338 KB) scr_555.jpg Edward A. Gabdullin, 2020-01-21 17:47

Related issues 2 (1 open1 closed)

Related to TYPO3 Core - Bug #87104: PageTypeSuffix removes type parameter for non mapped type valuesClosed2018-12-07

Actions
Related to TYPO3 Core - Bug #86835: Static route sitemap.xml is still not working on single-page treeNew2018-11-02

Actions
Actions #1

Updated by Tymoteusz Motylewski over 4 years ago

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

Updated by Tymoteusz Motylewski over 4 years ago

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

Updated by Susanne Moog over 4 years ago

  • Sprint Focus set to On Location Sprint
Actions #4

Updated by Daniel Goerz over 4 years 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?

Updated by Edward A. Gabdullin about 4 years 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.

Actions #6

Updated by Edward A. Gabdullin about 4 years 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!

Actions #7

Updated by Richard Haeser over 3 years ago

  • Category changed from Link Handling, Site Handling & Routing to SEO
Actions #8

Updated by Richard Haeser about 3 years ago

  • Status changed from Needs Feedback to New
Actions #9

Updated by Oliver Hader over 1 year ago

  • Sprint Focus deleted (On Location Sprint)
Actions

Also available in: Atom PDF