• Resolved veucom

    (@veucom)


    Hi, our plugin has been set up and was working really well, but just after putting it out to test it has suddenly stopped working.

    It is set up to show restricted content (a list of links to download PDFs) only when a user is logged in. The login, registration and content pages are all set up, with the registration process set up to automatically log-in once registration is completed.

    The main URL is http://www.sifcoasc.com/sds/

    There are options to login and register on this page.

    After registering or logging in the functionality has stopped working and the redirects to show content no longer happen.

    Are you able to help please?

    Thanks

    Carl

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi Carl,

    There’s some kind of redirect happening because, after I register, I get redirected back to this page: http://www.sifcoasc.com/sds/#. Is this the page with the restricted content on it?

    Do you, by any chance, have either admin approval or email confirmation enabled? If so, then the person who registers isn’t technically a user yet after they’ve submitted their registration, because they haven’t either been approved or confirmed their email address. This would explain why they can’t view the restricted content.

    Thread Starter veucom

    (@veucom)

    Hi, thanks for taking a look. Yes, there is a redirect from the /sds-login/ page back to the /sds/ page where the short codes are entered to show the restricted content.

    Here is the /sds/ page code:

    <h2>Welcome to the SDS Library</h2>
    [restricted no_message=’Yes’]

    You are now logged in. Please click the links below to download the SDS documents.

    [output-documents type=”SDS” /]

    [/restricted]

    [restricted block_logged_in=’Yes’ no_message=’Yes’]

    <h3>No login details?</h3>

    [/restricted]

    [restricted no_message=’Yes’]

    [side]

    [breakout-box]
    <h2>You are logged in</h2>

    [/breakout-box]

    [/side]

    [/restricted]

    And here is the /sds-login/ code:

    <h2>Login</h2>
    Please enter your Login details below to access the SDS Library.

    [login redirect_page=’/sds/’]

    [restricted block_logged_in=’Yes’ no_message=’Yes’]
    [side]
    [breakout-box]
    <h2>No login details?</h2>

    <h2>Forgot password?</h2>

    [/breakout-box]
    [/side]
    [/restricted]

    I can’t see why it doesn’t show the restricted content and continues to show the restricted block_logged_in content.

    Can you see anything that I am missing?

    Thanks

    Carl

    Thread Starter veucom

    (@veucom)

    The Send Sign Up Emails is set to yes. Should this be set to No?

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi Carl,

    Send sign up emails shouldn’t have anything to do with this. Do you, by any chance, have either admin approval or email confirmation enabled? If so, then the person who registers isn’t technically a user yet after they’ve submitted their registration, because they haven’t either been approved or confirmed their email address. This would explain why they can’t view the restricted content.

    Thread Starter veucom

    (@veucom)

    Hi,
    I have not got admin approval or email confirmation enabled.

    Here’s the current basic page content/set-up:

    Login Page:
    <h2>Login</h2>
    Please enter your Login details below to access the SDS Library.

    [login redirect_page=’/sds-documents/’]

    Restricted Content Page (/sds-documents/):
    <h2>Welcome to the SDS Library</h2>
    [restricted]

    You are now logged in. Please click the links below to download the SDS documents.

    [output-documents type=”SDS” /]

    [/restricted]

    Unfortunately it seems the restricted content page does not register the that you have just logged in as when you redirect from the log-in page it does not show the restricted content.

    Any help appreciated!
    Thanks

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi Carl,

    If the redirect is happening, the login is working.

    Are you running any kind of caching plugins? If so, could you please try disabling them and then logging in and checking the restricted content page again?

    Also, you mentioned the following in your first message: “but just after putting it out to test it has suddenly stopped working.” Does this mean you put the site live or switched the server that it’s on? If so, is the server it’s currently on some kind of managed WordPress hosting, like WP Engine? If so, these types of hosts often have caching built in that could cache the content output by the shortcode, which means you wouldn’t see the new/different content after logging in.

    Thread Starter veucom

    (@veucom)

    Hi all cacheing is turned off. The restricted content just doesn’t show when you are logged in. However, I have noticed that when logged into the WP backend admin, the plug-in does show restricted content! Here’s the pages set up now:

    Login – http://www.sifcoasc.com/login/

    [login redirect_page='/restricted/']
    [side]
    [breakout-box]
    <h2>SDS Menu</h2>
    <ul>
    <li><a href="http://www.sifcoasc.com/registration/">Register here</a></li>
    <li><a href="http://www.sifcoasc.com/restricted">SDS Documents</a></li>
    <li><a href="http://www.sifcoasc.com/login">Login</a></li>
    <li><a href="http://www.sifcoasc.com/forgot-password">Forgot Password?</a></li>
    <li><a href="http://www.sifcoasc.com/edit-profile">Your Profile</a></li>
    <li><a href="http://www.sifcoasc.com/logout">Logout</a></li>
    </ul>
    [/breakout-box]
    [/side]
    
    Registration - http://www.sifcoasc.com/registration/
    
    [register]
    [side]
    [breakout-box]
    <h2>SDS Menu</h2>
    <ul>
    <li><a href="http://www.sifcoasc.com/registration/">Register here</a></li>
    <li><a href="http://www.sifcoasc.com/restricted">SDS Documents</a></li>
    <li><a href="http://www.sifcoasc.com/login">Login</a></li>
    <li><a href="http://www.sifcoasc.com/forgot-password">Forgot Password?</a></li>
    <li><a href="http://www.sifcoasc.com/edit-profile">Your Profile</a></li>
    <li><a href="http://www.sifcoasc.com/logout">Logout</a></li>
    </ul>
    [/breakout-box]
    [/side]
    
    Logout - http://www.sifcoasc.com/logout/
    
    [logout]
    [side]
    [breakout-box]
    <h2>SDS Menu</h2>
    <ul>
    <li><a href="http://www.sifcoasc.com/registration/">Register here</a></li>
    <li><a href="http://www.sifcoasc.com/restricted">SDS Documents</a></li>
    <li><a href="http://www.sifcoasc.com/login">Login</a></li>
    <li><a href="http://www.sifcoasc.com/forgot-password">Forgot Password?</a></li>
    <li><a href="http://www.sifcoasc.com/edit-profile">Your Profile</a></li>
    <li><a href="http://www.sifcoasc.com/logout">Logout</a></li>
    </ul>
    [/breakout-box]
    [/side]
    
    Restricted - http://www.sifcoasc.com/restricted/
    
    [restricted login_page='/login/']
    [output-documents type="SDS" /]
    [/restricted]
    [side]
    [breakout-box]
    <h2>SDS Menu</h2>
    <ul>
    <li><a href="http://www.sifcoasc.com/registration/">Register here</a></li>
    <li><a href="http://www.sifcoasc.com/restricted">SDS Documents</a></li>
    <li><a href="http://www.sifcoasc.com/login">Login</a></li>
    <li><a href="http://www.sifcoasc.com/forgot-password">Forgot Password?</a></li>
    <li><a href="http://www.sifcoasc.com/edit-profile">Your Profile</a></li>
    <li><a href="http://www.sifcoasc.com/logout">Logout</a></li>
    </ul>
    [/breakout-box]
    
    [/side]

    Please help – love the look of this plug-in but it just won’t work for me!

    many thanks

    • This reply was modified 7 years, 6 months ago by Matthew.
    • This reply was modified 7 years, 6 months ago by Matthew.
    Thread Starter veucom

    (@veucom)

    Anyone got any ideas why the restricted content will not show after logging in?

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    The fact that you say it works when you’re logged in makes me think even more that you are using some kind of managed WordPress hosting with caching. Is this the case? If so, could you check with your host to see if it’s possible to disable the caching (even temporarily, as a test) so you could check to see if it then works?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Plug-in stopped working’ is closed to new replies.