На modx не работает sitemap, как лечить?

Есть сайт на modx 2.7.3, делал карту на pdoSitemap pdo 2.12.6 gk-grad.ru/sitemap.xml
да и другие sitemap генераторы то же самое выдают, хоть и GoogleSiteMap
Делал по проверенному рецепту и не раз делал https:// itchief. ru/lessons/modx-revo/modx-revo-creating-sitemap-xml

В итоге sitemap выдает и все,


This XML file does not appear to have any style information associated with it. The document tree is shown below.
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<!--  created with Free Online Sitemap Generator www.xml-sitemaps.com  -->
<url>
<loc>https://gk-grad.ru:443/</loc>
<lastmod>2021-01-04T08:31:45+00:00</lastmod>
</url>
</urlset>
гуглил МНОГО, наводка была что что то в .htaccess

вот он весь

# MODX supports Friendly URLs via this .htaccess file. You must serve web
# pages via Apache with mod_rewrite to use this functionality, and you must
# change the file name from ht.access to .htaccess.
#
# Make sure RewriteBase points to the directory where you installed MODX.
# E.g., "/modx" if your installation is in a "modx" subdirectory.
#
# You may choose to make your URLs non-case-sensitive by adding a NC directive
# to your rule: RewriteRule ^(.*)$ index.php?q=$1 [L,QSA,NC]

RewriteEngine On
RewriteBase /

Header always edit Set-Cookie (.*) "$1; SameSite=Lax"

# Prevent dot directories (hidden directories like .git) to be exposed to the public
# Except for the .well-known directory used by LetsEncrypt a.o
RewriteRule "/\.|^\.(?!well-known/)" - [F]


# Rewrite www.example.com -> example.com -- used with SEO Strict URLs plugin
#RewriteCond %{HTTP_HOST} .
#RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
#RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
#
# or for the opposite example.com -> www.example.com use the following
# DO NOT USE BOTH
#
#RewriteCond %{HTTP_HOST} !^$
#RewriteCond %{HTTP_HOST} !^www\. [NC]
#RewriteCond %{HTTP_HOST} (.+)$
#RewriteRule ^(.*)$ https://www.%1/$1 [R=301,L] .



# Rewrite secure requests properly to prevent SSL cert warnings, e.g. prevent 
# https://www.example.com when your cert only allows https://secure.example.com
RewriteCond %{SERVER_PORT} !^443$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]



# Redirect the manager to a specific domain - don't rename the ht.access file
# in the manager folder to use this this rule
#RewriteCond %{HTTP_HOST} !^example\.com$ [NC]
#RewriteCond %{REQUEST_URI} ^/manager [NC]
#RewriteRule ^(.*)$ https://example.com/$1 [R=301,L]



# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]



# Make sure .htc files are served with the proper MIME type, which is critical
# for XP SP2. Un-comment if your host allows htaccess MIME type overrides.

#AddType text/x-component .htc



# If your server is not already configured as such, the following directive
# should be uncommented in order to set PHP's register_globals option to OFF.
# This closes a major security hole that is abused by most XSS (cross-site
# scripting) attacks. For more information: http://php.net/register_globals
#
# To verify that this option has been set to OFF, open the Manager and choose
# Reports -> System Info and then click the phpinfo() link. Do a Find on Page
# for "register_globals". The Local Value should be OFF. If the Master Value
# is OFF then you do not need this directive here.
#
# IF REGISTER_GLOBALS DIRECTIVE CAUSES 500 INTERNAL SERVER ERRORS :
#
# Your server does not allow PHP directives to be set via .htaccess. In that
# case you must make this change in your php.ini file instead. If you are
# using a commercial web host, contact the administrators for assistance in
# doing this. Not all servers allow local php.ini files, and they should
# include all PHP configurations (not just this one), or you will effectively
# reset everything to PHP defaults. Consult www.php.net for more detailed
# information about setting PHP directives.

#php_flag register_globals Off



# For servers that support output compression, you should pick up a bit of
# speed by un-commenting the following lines.

#php_flag zlib.output_compression On
#php_value zlib.output_compression_level 5

Header set Access-Control-Allow-Origin *

# The following directives stop screen flicker in IE on CSS rollovers. If
# needed, un-comment the following rules. When they're in place, you may have
# to do a force-refresh in order to see changes in your designs.

ExpiresActive On

<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access 7 days"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType text/javascript "access plus 1 year"
ExpiresByType text/html "access plus 7 day"
ExpiresByType text/x-javascript "access 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/x-icon "access 1 year"
ExpiresByType application/x-shockwave-flash "access 1 year"
</IfModule>

# Cache-Control
<ifModule mod_headers.c>
# 30 ����
<filesMatch "\.(ico|pdf|flv|jpg|svg|webp|jpeg|png|gif|swf)$">
Header set Cache-Control "max-age=2592000, public"
</filesMatch>
# 30 ����
<filesMatch "\.(css|js)$">
#Header set Cache-Control "max-age=2592000, public"
</filesMatch>
# 2 ���
<filesMatch "\.(xml|txt)$">
#Header set Cache-Control "max-age=172800, public, must-revalidate"
</filesMatch>
# 1 ����
<filesMatch "\.(html|htm|php)$">
#Header set Cache-Control "max-age=172800, private, must-revalidate"
</filesMatch>
</ifModule>

#������ ������ HTTP-���������� Vary ��������� ��������� MSIE
<IfModule mod_setenvif.c>
BrowserMatch "MSIE" force-no-vary
BrowserMatch "Mozilla/4.[0-9]{2}" force-no-vary
</IfModule>
Андрей
28 мая 2021, 16:47
modx.pro
1 843
0

Комментарии: 12

Scorp Satex
31 мая 2021, 12:18
0
Структура ресурсов в админке какая? Ресурсы опубликованы? Покажи вызов pdoSitemap в коде. Ошибки в логах модыкса есть?
    Андрей
    31 мая 2021, 13:27
    0
    структура joxi.ru/xAe9qEDTb4nbzA, опубликовано все почти.

    [[!pdoSitemap?
    &checkPermissions=`list`
    ]]
    вызов такой, да и не важно какой вызов или кто вооще создает карту.
    Ошибочки есть в консоли но с картой они не связаны, проверял очищал смотрел карту и ок было.

    сами ошибки(жизни не мешают):

    [2021-05-31 12:52:28] (ERROR in modProcessor::run @ /var/www/u1060964/data/www/gk-grad.ru/core/model/modx/modprocessor.class.php: 177) Flat file processor support, used for action web/phpthumb with path /var/www/u1060964/data/www/gk-grad.ru/core/components/gallery/processors/web/phpthumb.php, is deprecated since version 2.7.0.
    [2021-05-31 12:52:28] (ERROR in modProcessor::run @ /var/www/u1060964/data/www/gk-grad.ru/core/model/modx/modprocessor.class.php: 177) Flat file processor support, used for action web/phpthumb with path /var/www/u1060964/data/www/gk-grad.ru/core/components/gallery/processors/web/phpthumb.php, is deprecated since version 2.7.0.
    [2021-05-31 12:52:28] (ERROR in modProcessor::run @ /var/www/u1060964/data/www/gk-grad.ru/core/model/modx/modprocessor.class.php: 177) Flat file processor support, used for action web/phpthumb with path /var/www/u1060964/data/www/gk-grad.ru/core/components/gallery/processors/web/phpthumb.php, is deprecated since version 2.7.0.
    [2021-05-31 12:52:30] (ERROR @ /var/www/u1060964/data/www/gk-grad.ru/core/xpdo/om/xpdoquery.class.php: 764) Encountered empty IN condition with key id
    [2021-05-31 12:52:30] (ERROR @ /var/www/u1060964/data/www/gk-grad.ru/core/xpdo/om/xpdoobject.class.php: 240) Error 42000 executing statement:
    Array
    (
    [0] => 42000
    [1] => 1064
    [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY `modResource`.`pagetitle` ASC LIMIT 20' at line 1
    )
      Scorp Satex
      31 мая 2021, 15:52
      0
      1. В настройках модыкса, у поля «server_protocol» — стоит «https»?
      2. Покажите страницу sitemap в админке, там стоят настройки что нет шаблона, и что тип документа xml?
      3. А вот такой вызов "[[pdoSitemap]]" — что показывает?
      4. Так же можно посмотреть лог, через вызов:
      [[pdoSitemap?
          &showLog=`1`
          &forceXML=`0`
      ]]
        Николай Савин
        31 мая 2021, 15:59
        0
        В настройках модыкса, у поля «server_protocol» — стоит «https»?
        Не вводите в заблуждение человека. Эта системная настройка не работает. Она вообще в MODX не используется нигде.
        Протокол соединения формируется исключительно на основе порта подключения. Если порт 80 — то http, если 443 то — https
          Андрей
          31 мая 2021, 16:28
          0
          1 https там
          2 joxi.ru/4AkP4Qoi0JD5yr и joxi.ru/E2pP4L1i4oD8e2
          3. то же самое
          4. вписал я так, где лог смотреть? в консоли лшибок модыкса все так же, gk- grad. ru/ sitemap.xml не поменялось ничего
            Scorp Satex
            31 мая 2021, 17:15
            0
            4. Создайте текстовую страницу, например «Test», и впишите туда в контентную область:
            [[pdoSitemap?
                &showLog=`1`
                &forceXML=`0`
            ]]
            Потом откройте эту страницу, и внизу будет лог.
              Андрей
              31 мая 2021, 17:19
              0
                Scorp Satex
                31 мая 2021, 18:23
                0
                На странице вроде выводит как надо. Проверьте есть ли самостоятельные плагины во вкладке админки «Элементы»? Может кто-то залезал в код pdotools и там что-то поменял?

                Не знаю чем помочь вам. :(
                  Андрей
                  03 июня 2021, 17:39
                  0
                  удивительно но смена адреса урл помогла хм
                Андрей
                31 мая 2021, 17:20
                0
                ну и если в админку залогин joxi.ru/bmoP4dzi7GLoJ2
                Андрей
                31 мая 2021, 17:21
                0
                0.0000920: pdoTools loaded
                0.0000679: Conditions prepared
                0.0000072: Query parameters ready
                0.0002820: No cached data for key «default/sitemap/a1d340»
                0.0000291: xPDO query object created
                0.0001862: Added selection of modResource: `id`, `editedon`, `createdon`, `context_key`, `class_key`, `uri`, `content`
                0.0000260: Processed additional conditions
                0.0003130: Added where condition: modResource.hidemenu=0, OR:modResource.class_key:IN(Ticket,Article), modResource.published=1, modResource.deleted=0, modResource.searchable=1, modResource.context_key=web
                0.0001700: Sorted by modResource.menuindex, asc
                0.0003800: SQL prepared «SELECT `modResource`.`id`, `modResource`.`editedon`, `modResource`.`createdon`, `modResource`.`context_key`, `modResource`.`class_key`, `modResource`.`uri`, `modResource`.`content` FROM `modxov_site_content` AS `modResource` WHERE ( ( `modResource`.`hidemenu` = 0 OR `modResource`.`class_key` IN ('Ticket','Article') ) AND `modResource`.`published` = 1 AND `modResource`.`deleted` = 0 AND `modResource`.`searchable` = 1 AND `modResource`.`context_key` = 'web' ) ORDER BY modResource.menuindex asc „
                0.0016279: SQL executed
                0.0000601: Rows fetched
                0.0000589: Returning raw data
                0.0017240: Created inline “modChunk» with name «d980adc1aeb51ab5c91d4c4741c276a4»
                0.0021250: Rows processed
                0.0043230: Saved data to cache «default/sitemap/a1d340»
                0.0001609: Created inline «modChunk» with name «be75dd4b9525127c59b774f94767849c»
                0.0003262: Rows wrapped
                0.0119991: Total time
                4 194 304: Memory usage
                  Андрей
                  03 июня 2021, 14:15
                  0
                  удивительно но смена адреса урл помогла хм
          Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.
          12