arey
Forum Replies Created
-
Thank you, Yui. We hope the W3 Total Cache plugin developers will fix this issue in future versions.
[BUG] Root cause identified: HTTP header “Content-Disposition” is incorrectly marked as a translatable string
Root cause:
The string responsible for the export HTTP header is marked as translatable in the plugin:// Generic_AdminActions_Config.php:85 msgid "Content-Disposition: attachment; filename=%1$s.json"In the Russian translation file
w3-total-cache-ru_RU.l10n.php(auto-generated by WordPress 6.5+ from the.pofile), this becomes:'Content-Disposition: attachment; filename=%1$s.json' => 'Размещение содержимого: вложение; имя файла=%1$sjson'As a result, PHP sends Nginx a response with a Cyrillic HTTP header name (
Размещение содержимогоinstead ofContent-Disposition). Since Nginx 1.21.1+, non-ASCII characters in header names are strictly rejected — causing a 502 Bad Gateway.This also explains why the exported file gets a
.htmextension instead of.jsonin some configurations.The fix is straightforward:
InGeneric_AdminActions_Config.php:85, theContent-Dispositionheader must be hardcoded and not passed through any translation function. HTTP protocol headers are not localizable strings.Workaround for users affected:
Manually editwp-content/languages/plugins/w3-total-cache-ru_RU.l10n.phpand replace:'Content-Disposition: attachment; filename=%1$s.json'=>'Размещение содержимого: вложение; имя файла=%1$sjson'with:
'Content-Disposition: attachment; filename=%1$s.json'=>'Content-Disposition: attachment; filename=%1$s.json'Note: editing only the
.poor.mofile is not sufficient in WordPress 6.5+ — the.l10n.phpfile takes priority and must be updated directly.Thank you.
This helped to solve the problem with erroneous clearing of the entire cache when working with the Polylang plugin.
Please tell me, if I use this code, will automatic cache clearing in the W3 Total Cache plugin work as usual (after publishing/editing posts, as well as when deleting expired junk cache, etc.)?
Forum: Plugins
In reply to: [Cyr-To-Lat] В Редакторе тем исчезло описание шаблоновСпасибо.
- Безусловно, на основной функционал плагина это никак не влияет. Но, если у Вас будет возможность, при следующих обновлениях плагина добавьте, пожалуйста, переводы для тех названий шаблонов, которые все-еще отображаются на английском:
Stylesheet (style.css)
Archives (archive.php)
Comments (comments.php)
Homepage (front-page.php)
Sidebar (sidebar.php)
2. Насколько мы понимаем, плагин Cyr-To-Lat для транслитерации использует таблицу символов из того языка, который соответствует языковой сборке Вордпресс… Подскажите, пожалуйста, имеется ли возможность корректной транслитерации УРЛ постов одновременно для двух языков (русский и украинский) при использовании плагина мультиязычности. Мы пробовали добавить недостающие символы из таблицы соответствия Cyr-To-Lat одного языка в другой, однако с некоторыми символами, которые используются в двух языках, возникает проблема. Например, для рус. и=i, а для укр. и=y. Возможно, Вы подскажите, как можно решить данную проблему?
Forum: Plugins
In reply to: [Cyr-To-Lat] В Редакторе тем исчезло описание шаблоновСпасибо. Название шаблонов появилось в редакторе тем. Только жаль, что плагин Cyr-To-Lat почему-то отображает их только на английском языке. Если деактивировать плагин Cyr-To-Lat, то название шаблонов отображается корректно – на языке сборки Вордпресс.
Возможно, Вы сможете это исправить в следующих обновлениях плагина Cyr-To-Lat.Forum: Plugins
In reply to: [Cyr-To-Lat] В Редакторе тем исчезло описание шаблоновОтметили на скрине, что именно исчезает при активации плагина.
Скрин – https://ru.paste.pics/PBUA5Forum: Plugins
In reply to: [XML Sitemaps Manager] Last Modified data does not work correctlyXML Sitemaps Manager version 5.0 works fine even with Polylang, but only has issues with lastmod.
We hope that XML Sitemaps Manager will work even better in the future.
XML Sitemaps Manager which multi-language plugin is 100% compatible with now?
Forum: Plugins
In reply to: [XML Sitemaps Manager] Last Modified data does not work correctlyPolylang.
Forum: Plugins
In reply to: [XML Sitemaps Manager] Last Modified data does not work correctlyWe didn’t create the “Blog” page because we don’t use standard WordPress Posts, but only custom post types (each post type has its own archive).
I will consider it a feature request: add an option to force the lastmod date of static homepages to the last publication date.
A small clarification: it is possible that lastmod is automatically updated not for all static pages, but only for those pages that are set as main ones (there can be 2 main pages, since there are two language versions of the site). Alternatively, it would be nice if you could specify the id of static pages for which you need to update the lastmod after the publication of new posts on the site.
Forum: Plugins
In reply to: [XML Sitemaps Manager] Last Modified data does not work correctlyWe activated the default WordPress taxonomies (categories and tags) and added a new post – there is also an issue with lastmod.
Forum: Plugins
In reply to: [XML Sitemaps Manager] Last Modified data does not work correctlyAs the main page of the site in the WordPress settings, a static page is set (with widgets for the latest posts).
Here is a link to the sitemap.
Forum: Plugins
In reply to: [XML Sitemaps Manager] Last Modified data does not work correctlyThank you. Now the plugin does not have a critical error now, but nothing has changed compared to version 0.5.
- lastmod for tags and categories (including parent categories), as before, is formed based on the date of creation/editing of tags and categories. It is necessary that the lastmod for taxonomies is formed based on the date of the last post added to the taxonomy.
- We also noticed that in version 0.6-alpha7 the lastmod for the main page of the site is formed by the date of creation of this page, which is also not entirely correct, since announcements of the latest published posts are published on the main page. It would be more correct for the lastmod for the main page to be formed based on the date of the last post published on the site or the lastmod for the main page of the site to NOT be displayed in the sitemap.
Are there ways to solve these problems?
Forum: Plugins
In reply to: [XML Sitemaps Manager] Last Modified data does not work correctlyAfter installation, this version is added to the site with a critical error – screenshot.
https://ru.paste.pics/c6db047175ae0c60b02cb85c6224b1f9Forum: Fixing WordPress
In reply to: Changes in the Gutenberg editorUnfortunately, the number of tags has not changed.
Perhaps you can suggest other ways to solve the problem?
Thank you!
- Безусловно, на основной функционал плагина это никак не влияет. Но, если у Вас будет возможность, при следующих обновлениях плагина добавьте, пожалуйста, переводы для тех названий шаблонов, которые все-еще отображаются на английском: