Arrow

Unable to update plugin code | Peter's Login Redirect | Forum

Back to the login redirect plugin page

Please consider registering
guest

Log In

Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Unable to update plugin code
March 19, 2011
11:17 am
n8steve
Guest

Hi, I upgraded to version 2 today and then went to insert the recommended code that redirects users back to the Home page when they logout viz:

function redirect_logout_front_page() {
wp_redirect(get_option('siteurl'));
die();
}
add_action('wp_logout', 'redirect_logout_front_page');

I added it right at the end of the main module code as I am sure I have done before.

When i clicked on update code it went off to a a "we are unable to find your request...." page

Tried again after first de-activating the plugin - same result.
Same result also if I just go into editor and click update without making any changes.
Tried same with other plugins (deactivate and not make any changes) and it seems to work OK though got the same result with Akismet.

Hope I have explained properly.

Any ideas? Help!

Regards.

Steve

March 19, 2011
11:27 am
Peter
Admin
Forum Posts: 841
Offline

I'm not sure about the possible issues when using the edit feature through the browser. You could try editing the file directly on the file system.

March 20, 2011
5:54 am
n8steve
Guest

That worked fine. Funny it didn't want to play online. Thanks.

October 9, 2012
5:33 am
Gary M
Guest

I think I'm having the same problem. The plugin is working great for login and redirect, but when logging out, I just want the subscriber to redirect to http://www.lawcaselogic.com

Can you tell me what the code should look like for this, and where specifically I would insert the code in the plugin editor?

Thanks! Great plugin! Confused

October 9, 2012
7:27 am
Peter
Admin
Forum Posts: 841
Offline

Hi, the logout code should work if you're using a version of WordPress higher than 3.0; you've entered a "Logout URL:" for "All other users" in the "Login/logout redirects" configuration page; and you're not using a hard-coded logout link. (The logout URL is technically implemented by adding a "redirect_to" parameter to the logout link.)