• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Too many redirects error with Wordpress plugin

Jeffrey

New Pleskian
TITLE:
Too many redirects error with Wordpress plugin
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:
PLESK Onyx 17.8.11 running on CentOS Linux 7.4.1708
PHP version on all domains is 7.3.6 (also tried older versions)
PROBLEM DESCRIPTION:
I have a situation going on with several WordPress instances with the WPS Hide Login plugin on my Plesk server.

On some domains the plugin work fine. On some domains the plugin does not work and give a “Too many redirects” error. On some domains it works on a staging.example.com but after cloning to example.com it does not work anymore and give a “Too many redirects” error. On some domains it works on staging.example.com and it works after cloning to example.com and breaks when cloning back to staging.example.com and also give a “Too many redirects” error.

These cases have been tested on WordPress versions vary from 4.9.10, 5.1.1, 4.8.9, 4.5.17 to 5.2.2

I have PLESK Onyx 17.8.11 running on CentOS Linux 7.4.1708

PHP version on all domains is 7.3.6 (also tried older versions)

NGINX is used for all domains

I have also tried other plugins doing the same but these plugins have the same problem.​
STEPS TO REPRODUCE:
install PLESK Onyx 17.8.11 running on CentOS Linux 7.4.1708
create several domains with PHP version 7.3.6
Use NGINX
install wordpress on the created domains
install WPS hide login plugin
Clone the domains to it's staging environments
there is the problem​
ACTUAL RESULT:
For some domains an error occurs: Too many redirects.​
EXPECTED RESULT:
The plugin working​
ANY ADDITIONAL INFORMATION:
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:
Help with sorting out
 
@Jeffrey
thank you for using a WordPress Toolkit.

When exactly are such error occurs? When you are trying to open in browser a new login url? Or when you press "Login" in Toolkit? Or what?
For now it looks like a completely not a Plesk or WordPress Toolkit issue, but the incorrect work of the plugin
 
Wordpress generates "too many redirect" loops when one or both of these conditions are true:
a) In Wordpress the URL (or "a" URL) is stored as "with www" or "without www" while in the web hosting environment the web server is told to do the opposite. Example: Wordpress has siteurl or home set to "www.mydomain.tld", but webhosting is configured to always redirect to "mydomain.tld" (without the www). This can also happen when URLs configured in plugins or themes, so that such scripts force one URL while the web server forces the other.
b) The same applies to SSL/non-SSL protocol prefixes (http vs. https). Example: Your webserver configuration forwards all non-SSL traffic to https, but in a Wordpress plugin you have configured that a URL ought to be http://..., not https://.
 
Back
Top