WordPress.org

Ready to get started?Download WordPress

Forums

User Access Manager
Redirect user not working (9 posts)

  1. deels
    Member
    Posted 2 years ago #

    Hi the redirest a user if he visits a post/page with no access is not working. it redirect him to a No Results Found
    The page you requested could not be found. Try refining your search, or use the navigation above to locate the post.

    what should I do?

    Thanks

    http://wordpress.org/extend/plugins/user-access-manager/

  2. Stu
    Member
    Posted 2 years ago #

    I agree, however I had it working a couple days ago, redirecting to a custom registration page (gravity form) and when I upgraded to wp 3.3.1 it stopped. But, I had a few other serious conflicts with another plugin which I've resolved.

    I will try to revert to 3.3 or 3.2.1 and see if that solves it. I really liked it when it did work.

    Thanks also if the developer could comment on this.

  3. HeatherMA
    Member
    Posted 2 years ago #

    For the last few days I have had constant redirect errors on my clients site - the whole site is down because of this.
    All I get is an error 'The page isn't redirecting properly' etc etc. However the site can be accessed if I am logged in. It is only when I log out that it has the issues. I have had to trawl through the code to see if I could detect where the problem lies - there are a few threads that exist:
    see here
    But I was unable to get things working using the methods explained. The issue appears to be a conditional statement in UserAccessManager.class.php - although this may just be in my case. I have commented out this part

    if (!$postToShow) {
                $uamOptions = $this->getAdminOptions();
    
                if ($uamOptions['redirect'] == 'blog') {
                    $url = home_url('/');
                } elseif ($uamOptions['redirect'] == 'custom_page') {
                    $post = get_post($uamOptions['redirect_custom_page']);
                    $url = $post->guid;
                } elseif ($uamOptions['redirect'] == 'custom_url') {
                    $url = $uamOptions['redirect_custom_url'];
                }
    
               // if ($url != $this->getCurrentUrl()) {
                    wp_redirect($url);
                   // exit;
               // }      
    
            }
        }

    The if ($url != $this->getCurrentUrl()) seemed to throw the whole thing into confusion. Once I commented this out I was able to access the site again without being logged in but the home page redirect no longer works and I get a 404 error 'page doesn't exist'.

    This is driving me crazy and my client is none too pleased. Does anyone have any clues as to what can be done. Perhaps I should email the developer directly?

  4. Carlstr
    Member
    Posted 2 years ago #

    I'm also having this problem. Any news from the developer?

  5. charly71
    Member
    Posted 2 years ago #

    I'm also having this problem but the plug-in shows me only the "page content" message.

  6. Red Deer Web Design
    Member
    Posted 2 years ago #

    Same here... updates anyone?

  7. knijia
    Member
    Posted 2 years ago #

    Same problem with a specific wordpress page redirection

  8. Red Deer Web Design
    Member
    Posted 2 years ago #

    The guys code at the bottom of this post still worked for me: http://wordpress.org/support/topic/plugin-user-access-manager-problem-with-redirects?replies=13

    I don't remember if I had to change my structure or not to what he mentions.
    It WILL work by itself with no modifications if you go back to default permalinks.
    permalink

  9. tzeldin88
    Member
    Posted 1 year ago #

    Redirect does not work. When a user tries to view a page without permission, he gets the WP 404 message, instead of being properly redirected based on the settings in UAM.

    Bummer, time to find a different plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic