Kristijan
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] Infinite redirect loop with cyrillic characters in category URLLook, I appreciate the fact that you give this free version of the plugin for all users. Also it is fair to test new code on the free version and I accept that. I only wanted to help you to improve your code because I think that the things should work that way and I already find the solution by downgrading the version.
Said that, from the beginning you didn’t read carefully what I have written and that is not quite OK from you since I invested some time and effort for a “greater good”, both for users and for developers.
Instead of fully investigate why ONLY on the cyrillic category slugs the updated plugin caused infinite redirection loop, you are firstly asking me the same data that I already provided by requiring the screenshot, which tells me that you either did not read carefully what I said or you did not trusted me.
Secondly, your last answer also suggest me that you read superficially what I have write. Dear @chrystl, if you read carefully above, you will notice that I have spent 3 hours in debugging the issue. You will find that when the problem emerged I have not initially had the code which removes the “category” slug but instead I had a dot “.” in “Category base” in “Permalink Settings”, so the code is not something that made this problem. You only used the fact that I posted it to give some kind of answer in a manner: we are working something, whatever it is.
The primary way, without a plugin nor extra code. to get rid of the category base is to put a dot “.” in the optional “Category base” field and set the custom structure “Custom Structure” to “/%category%/%post_id%-%postname%/”, if you know what I’m talking about.
If I understood you correctly, you are promoting the two plugins you mentioned to do something that can be done natively in WordPress as I described above, and at the same time you are discouraging users to use this simpler way by deliberately not taking it in account?
I know that you will give now a similar superficial, “bot-like”, answer as you did every time so I give up. You won. If it is a win. I did what could. I warn you and the community about the problem.
By doing that I tried to help both you, to make a better code, and the community, by giving the solution and to not waste, like I did, hours in vain.
Best regards and good luck for future updates.
Forum: Plugins
In reply to: [Polylang] Infinite redirect loop with cyrillic characters in category URLHere is another screenshot, maybe more clear, from my computer:
Forum: Plugins
In reply to: [Polylang] Infinite redirect loop with cyrillic characters in category URLI uploadeded the screenshot by phone, to save some time, here you are:
Forum: Plugins
In reply to: [Polylang] Infinite redirect loop with cyrillic characters in category URLI have already writed all the settings I have on that page, since I don’t see here the attach button you will have to wait until I log in on my computer, to upload the screenshot. Thank you for trusting me just on my word ?? One of the addresses that were affected (a category) is https://www.cpc.org.me/%d1%9b%d0%b8%d1%80%d0%b8%d0%bb%d0%b8%d1%86%d0%b0/%d0%bd%d0%be%d0%b2%d0%be%d1%81%d1%82%d0%b8/.
Forum: Plugins
In reply to: [Polylang] Infinite redirect loop with cyrillic characters in category URLHello,
First of all thanks for replying promptly. The issue is definitively caused by the Polylang update. I didn’t want to get into why exactly because I have unexpectedly already spent several hours in debugging the issue in order to get functioning the website. The mentioned website, with the cyrillic categories and cyrillic slugs, was functioning well in that format since September 2021 and I noticed the problem by browsing, after I posted a new article today.
I have already tried various things to resolve it, I have a custom theme (made by me) on that website so I started debugging the theme first. Then I tried ALL the possible options in WordPress itself, by making changes in Permalink settings firstly. Looked in Categories, then again in the functions.php, and then in menus, in categories theme files, in Polylang settings and then again in Permalink settings, .htaccess file etc.
I will let you know what are my current settings but be sure that I’m not a novice, that I have tried everything and that I’m pretty sure that I’m not wrong.
My main lang categories are: ?ирилица (slug: ?ирилица), Latinica (slug: latinica) and English (slug: english), all set to proper language and all with sub categories.
Permalink Settings:
Custom Structure: https://www.mywebsite.org.me/%category%/%post_id%-%postname%/
Category base: (currently blank but functioned well with a dot “.” until the update)
Tag base: hashtag
Regarding the “Category base”, currently, due to debugging, I have the bellow code that is functioning well in function.php witch removes the “category” in the URL:
function remove_category( $string, $type ) { if ( $type != 'single' && $type == 'category' && ( strpos( $string, 'category' ) !== false ) ) { $url_without_category = str_replace( "/category/", "/", $string ); return trailingslashit( $url_without_category ); } return $string; } add_filter( 'user_trailingslashit', 'remove_category', 100, 2);
BUT regardless this code (without it), every other setting (including the current) in the Permalink Settings will create the infinite redirection loop with the newer version of the plugin on https://www.mywebsite.org.me/?ирилица, while https://www.mywebsite.org.me/latinica and https://www.mywebsite.org.me/english will function well.
As a desperate move I have downloaded the old version of WordPress and a version 3.14 of Polylang,, since everything was working well before, and tried first to downgrade Polylang, and it functioned. Now everything works well. As it was since September 2021.
Also, I had a sudden problem on other websites with this redirection in .htaccess which worked fine before:
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
I’m not sure that is a coincidence but I don’t know.
Forum: Plugins
In reply to: [Polylang] Infinite redirect loop with cyrillic characters in category URLYes, it can cause problems even on non-cyrillic websites. I had issues on multiple WordPress websites that use Polylang, I noticed later. In one case made a conflict with .htaccess http to https redirect. Please notify when you solve the problem. And sorry for my English, I make mistakes when in hurry.
Translated correctly on calendar page:
Translated correctly on event page:
Translated partially in modal popup:
Note that I have translated only some of the strings which are not being translated in modal popup, here are the files:
Thanks!