• Resolved adcadesigns

    (@adcadesigns)


    I need to only allow non-login to access the homepage to show the list of subscription levels and checkout page and log in. I saw a GitHub code to do this but it is not working anymore.

    Can you please check this, it is not working anymore, this is exactly what i need. https://gist.github.com/strangerstudios/1332730/56808ce86efb94538f91d1d0e276c3fa4ef4df08

    Thank you.

    Error message when adding to functions.php
    “Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.”

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi @adcadesigns

    Thank you for using Paid Memberships Pro.

    I have just tested this on my testing site and it works as intended.

    Do you have any more errors from your debug log that may help us recreate this to troubleshoot it further.

    Thread Starter adcadesigns

    (@adcadesigns)

    Hello, thank you for responding.
    is there a setting I need to do before applying the code? maybe a plugin conflict due to other restrictions settings?

    Plugin Author Andrew Lima

    (@andrewza)

    There is no settings that need to be done for this code to work as the code should automatically figure out if the user has access or not to the content and redirect to the home or login page.

    If you have other plugins that hook in on template_redirect this may interfere.

    Thread Starter adcadesigns

    (@adcadesigns)

    Humm, as far as I check I don’t seem to have a plugin conflict with this. correct me if im wrong. but this should go with the functions.php right?

    Plugin Author Andrew Lima

    (@andrewza)

    It can go into your functions.php or use a plugin like Code Snippets.

    You may need to debug this code further and see if it’s running correctly on your site as it seems to be a site-specific issue.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Non Members redirect to homepage’ is closed to new replies.