• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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