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

    (@etoilewebdesign)

    Is those the actual shortcodes you are using? I ask because in your

    [restricted login_page"https://www.sifcoasc.com/login-sds/"]
    

    shortcode, you are missing the = sign. It should look like:

    [restricted login_page="https://www.sifcoasc.com/login-sds/"]
    
    Thread Starter carlbarber

    (@carlbarber)

    Hi, not sure why it’s missed the = out on here, but it is definitely on there in the code. Here it is again copied from the WP editor….

    <h2>Welcome to the SDS Document Library</h2>
    Please click on the links below to view the required SDS Documentation

    [restricted login_page=”https://www.sifcoasc.com/login-sds/”%5D
    [output-documents type=”SDS” /]
    [/restricted]

    [side]
    [breakout-box]
    <h2>Not Registered?</h2>

    <h2>SDS Menu</h2>

    [/breakout-box]

    [/side]

    Any ideas why this won’t work?

    Thanks

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi @carlbarber,

    It could be an issue related to the [output-documents type=”SDS” /] shortcode within the [restricted] shortcode. Could you try replacing the[output-documents type=”SDS” /] shortcode with some plain text, e.g. “Hello, World!”, and check if you can see the content on that page when logged in?

    Note: Make sure to turn off all caching (plugin, server, etc.) before trying this.

    Thread Starter carlbarber

    (@carlbarber)

    Hi,
    Have replaced the shortcode with just plain text but it behaves exactly the same. All caches have also been cleared prior to testing.
    Feel free to register on the site and test to see that it doesn’t work.

    Any other suggestions?

    Thanks

    • This reply was modified 5 years, 7 months ago by carlbarber.
    Thread Starter carlbarber

    (@carlbarber)

    Further testing shows this…..
    I set up a completely new page with the login shortcode and restricted shortcode on the same page:
    https://www.sifcoasc.com/feu-test-all/

    This works fine.

    I set up two other new pages with the login shortcode on one:
    https://www.sifcoasc.com/feu-test-login/

    And the restricted content on the redirected page from the login:
    https://www.sifcoasc.com/feu-test/

    The redirect happens after login, but on arrival at the page the content does not show…. so between going from the login page to the content page it does not stay logged in?

    Does that help with solving the problem?

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Registering on the site won’t really help, because we’ll just see the same thing an ender user would see, nothing…

    This is very strange. If there’s no caching (so you’re seeing a previous render of the shortcode from when you weren’t logged in) and the shortcodes are set up correctly, there’s no obvious reason it wouldn’t be working. This functionality definitely works in the current version of the plugin.

    If, after being redirected, you refresh the page, does it then show the content? What about if you remove the redirect? Does it display the Login Succesful message? If so, then, if you manually go to the restricted page after seeing the login successful message, does it then show the restricted content? What if you remove all attributes from all shortcodes, so you’re just using [login] and [restricted], does that make a difference?

    Thread Starter carlbarber

    (@carlbarber)

    Hi, yes, I’m totally at a loss too!

    Caches are all deleted (there’s a ‘clear all caches’ option in the hosting control panel)

    After redirecting, it just goes back to the restricted page where it tells you ‘You must be logged in to view this page.’ Refreshing this page does nothing, it still shows the same.

    Yes! If on the login page I remove the redirect, it does show the ‘Login Successful’ message. However, after then, if I manually go to the restricted page, it still doesn’t show the restricted content.
    removing all attributes again makes no difference. If I successfully login on the login page, it still won’t show restricted content on the restricted page.

    BUT…. if I have everything on a single page [login] and [restricted], then it will show restricted content once logged in and works fine. So there’s definitely a problem with it going from one page to the other and the redirect page not recognising that you are logged in.

    I’d rather keep things as they are set up, but I could possibly rework everything to have the login and restricted content on the same page, but when logged in, the login form is still appearing on a single page. Any way to make that go away when logged in?

    Thread Starter carlbarber

    (@carlbarber)

    Is there any way you can help fix this problem? It is causing quite a lot of disruption to the operation of a large user area of the website.

    I will quite willingly let you have any logins etc that you may need to investigate further

    Thanks

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi @carlbarber,

    Let’s try out a few things:

    First make sure you are using the latest version of the plugin before continuing below.

    1.) Could you try deactivating all your plugins (except ours) and see if this makes a difference?

    2.) Could you try switching themes and see if the issue still exists? You can see the default WordPress theme “Twenty Nineteen”.

    3.) Could you try reinstalling the plugin and see if the issue still exists? You will not lose anything in your catalog, as everything is saved in the database.

    4.) What version of WordPress and PHP are you using? You can ask your host for this information.

    If it still does not work, please send us an email at [email protected] referencing this thread. You can provide the login details if need be.

    Thread Starter carlbarber

    (@carlbarber)

    Hi,

    OK…we have tried all of the things you mention and it still does not work. I have:
    1. Deleted and reinstalled the FEU plug-in – same result, still does not log in.
    2. Deactivated all plug-ins except for FEU – same result, does not log in.
    3. Switched the theme to 2019 – same result, still does not work.
    4. We are using WP v.5.0.3 (latest version) and running PHP 7.2
    5. We have also purged all caches prior to each of the above steps

    I have sent an email to your email address with login details too so you can see if there is anything amiss.

    Thank you for your continued support – i really hope this can be solved as it is impacting our client somewhat.

    @carlbarber how were you able to resolve the issue? I’m seeing a similar issue with my site.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Restricted Content does not show after Log In’ is closed to new replies.