Landing Location has no effect
-
I have two separate installs using WordPress 3.8.1 and jonradio Private Site 2.10. I’ve tried to set both sites Landing Location setting to either “Return to same URL”
or “Go to Site Home” and both result in the user landing at the admin panel (/wp-admin/profile.php).What do you need from me in order to further troubleshoot this behavior?
All the best!
/Fredrik
-
I can sometimes figure it out just from testing your site, so a URL would a good place to start.
I will probably need it at some point, so you may also want to provide:
- Your Theme Name
- If you are not using one of the WordPress Twenty themes, a URL to the Theme’s WordPress Theme Directory entry, or its home page, if not in the Theme Directory
- A list of Plugins — only the Activated ones. I’ll try to work with a list of names, and ask for clarification if there are any with similar names to other plugins
Thanks for being so helpful. I’ll do my best to get this figured out quickly.
Sorry for the initial delay in responding. In my time zone, it was sleeping time.
My pleasure. π The more info you’ve got, the easier your job gets! How about I set up a couple of admin accounts on both sites for you. I’m sure that’ll speed things up considerably.
In the meantime;
For the first site:
-
Theme
Twenty Fourteen (the stock theme) augmented with the plugin Fourteen Extended (http://wordpress.org/plugins/fourteen-extended/) - Active plugins
- Admin Menu Editor
- Better WP Security
- EWWW Image Optimizer
- Fourteen Extended
- Imsanity
- jonradio Private Site
- Like This
- Limit Login Attempts
- Re-send Welcome Email
- SB Welcome Email Editor
- Simple History
- Subscribe2
- WordPress-importer
- WP-Piwik
- WP Lightbox 2
- WP Super Cache
For the second site:
-
Theme
Tetris (http://www.wpexplorer.com/tetris-wordpress-theme/) - Active plugins
- Admin Menu Editor
- Better WP Security
- EWWW Image Optimizer
- Image Teleporter
- Imsanity
- jonradio Private Site
- Like This
- Limit Login Attempts
- Options Framework
- Re-send Welcome Email
- Regenerate Thumbnails
- SB Welcome Email Editor
- Simple History
- Subscribe2
- WP-Piwik
- WP Lightbox 2
- WP Super Cache
Just let me know if I should set up those accounts for you!
No, at this point, I’d like to explore a few of those plugins on my own test system where I have everything I need to debug really quickly. I already see some names that “look interesting”.
Be back ASAP.
OK, I went through the plugins and couldn’t find any issues with them all activated on my test system, but I wasn’t able to quickly get WP-Piwik fully operational. Could you please do one quick test before I go any deeper into this?
Please deactivate WP-Piwik and see if things work then.
I deactivated WP-Piwik, but I was still able to reproduce the bug.
Thanks for that!
I’ll take you up on the admin ID, but also having FTP would really speed things up so I can view and edit plugin PHP.
I will be back at my desk in about 90 minutes.
For now, lets concentrate on the Twenty Fourteen site.
To contact with ID: http://jonradio.com/contact-us/
Sorry for the delay! I’ll set up an FTP account during the afternoon (CET). I just have to take my daughter to her swimming lessons first. I’ll get back to you! In the meantime, I’ve sent over an admin ID for you vie the contact form.
I’ve set up a temporary FTP account for you and sent the info via your contact form.
Also, I took the liberty of adding en_CA language files, since our admin is in Swedish only. I was not really sure of how to switch the language just for your user (maybe WordPress isn’t capable of doing this?)
Anyways, let me know if there are any problems.
It is finally morning here, and I am working on this now. I can see that the Query on the WordPress Login is wrong, not being ?redirect_to= as it should be. I’ll figure out why and go from there.
Thanks again.
After looking through your plugin settings, I now have re-created your problem on my test system, and can work on a solution.
A temporary workaround, until I fix my plugin, is to adjust settings on the Better WP Security plugin. The Hide tab takes you to Hide WordPress Backend. If the Enable Hide Backend checkbox is selected, my plugin’s Landing Location fails. If the checkbox is empty, my plugin works.
I was not able to make that change on your site as my Admin authority did not allow it. Nor did I know what you wanted to do.
I have run into similar problems with other plugins and themes, and have added code in my plugin to handle those specific plugins and themes. I will expand that to include support for the Better WP Security plugin, which I have not been asked about before.
I’ll report back to this thread when I’m done. Thanks for your patience, once again.
Sounds great! Nice work so far and thank you for taking the time to look into this problem. It is very much appreciated!
Much to my surprise, Better WP Security does not use WordPress hooks to do the final processing of the URL, where it adds the Secret Key with a ? before it, making it a Query parameter. Instead, it generates a number of ReWrite rules in the .htaccess file to handle this.
ReWrite, both within WordPress and using .htaccess, is an area I have almost no experience with, and it will be a steep learning curve.
As a result, I am going to offer a Workaround for now, and create an automatic solution in Version 3, as part of some major new features already being developed. Obviously, if this won’t work for you or anyone else reading this, I am willing to do something more immediate.
Here is the Workaround: in .htaccess in the root of your WordPress site (i.e. – wherever WordPress is installed, either in the root of a domain or in a folder or subdomain), you will see “# BEGIN Better WP Security”. The third non-blank line that follows will begin “RewriteRule ^login/?$”. Near the end of the line, just before “[R,L]” and immediately after (with no blanks) a question mark and your Better WP Security Secret Key that is already there, insert “&redirect_to=http://domain.ext/wp/sample-page”, where “http://domain.ext/wp/sample-page” is the URL of the desired Landing Location. Be sure there is still a blank before the “[R,L]” at the end of the line. The line should look like this:
RewriteRule ^login/?$ /wpfolder/wp-login.php?dp0amamafnxnlun4gdsyu&redirect_to=http://domain.ext/wp/sample-page [R,L]If you alter the Enable Hide Backend checkbox of Better WP Security, you will lose the changes you made in the Workaround, and have to apply them again the next time that the Enable Hide Backend checkbox is selected (has a checkmark in it).
That is some outstanding work! π Glad you found the cause of the bug. I’ll have to give your suggestions a look-over and see which one I should choose. I’m not really a fan of workarounds, so in the long run, maybe involving the author of Better WP Security might be a good idea.
In the meantime, thank you so much for taking the time and help me with this! I’ll mark this topic as resolved, seeing as I have a few viable options now.
Thanks again!
I don’t like Workarounds either.
Your suggestion to work with the author of Better WP Security is a good one. At first glance, they really should be retaining the
&redirect_to=query whenever present in the URL, regardless of my plugin’s presence.I’ll keep this thread updated with my progress.
The topic ‘Landing Location has no effect’ is closed to new replies.