Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi cat345,

    What type of post is the course you’re using? Is the course an enabled post type under Groups > Options? What happens when you try to visit a restricted course as a privileged user/member, is there anything logged in your debug.log? This obviously presupposes that you have enable WP Debugging.

    Also, in case you’re using a caching feature on your site as a plugin, then make sure to clear your cache contents once you finished restricted the courses to a group.

    Useful resources for the above suggestions:
    https://docs.itthinx.com/document/groups/setup/options/
    https://www.ads-software.com/support/article/debugging-in-wordpress/

    Kind regards,
    George

    Thread Starter cat345

    (@cat345)

    The log does not appear. When logging in as a user in a limited group, courses are not shown. Shown only if you remove all groups in the course.
    https://prntscr.com/1sa5gbz
    https://prntscr.com/1sa5j9d

    Plugin Author Kento

    (@proaktion)

    Assuming that you are using LearnPress …

    There is a similar request related to LearnPress here from not long ago https://www.ads-software.com/support/topic/why-groups-plugin-conflct-with-learnpress/ and the conversation continues on https://www.itthinx.com/plugins/groups/comment-page-17/#comment-1107346

    I’m not sure if your case is exactly the same, but please have a look at the above and check if any of the pointers mentioned could apply.

    If you find out anything, please let us know. If I get a chance soon (can’t promise), I’ll see if I can replicate your case and post my findings, too.

    Thread Starter cat345

    (@cat345)

    if you need to reproduce – I can give access.

    Plugin Author Kento

    (@proaktion)

    Thanks but that would be outside of the scope of support here.

    However, if I figure out anything useful related to potential conflicts with the plugins, I’ll follow up here.

    Hi there,

    FYI, if you use the following snippet on your functions.php file ( preferably of your child theme )

    
    add_filter( 'lp/template/archive-course/enable_lazyload', 'example_disable_lazyload' );
    function example_disable_lazyload() {
    	return 0;
    }
    

    The restricted courses will be accessible again by privileged users however the reason why the issue occurs in the first place needs to be examined further.
    Once I have an update I will follow-up on this thread.

    Kind regards,
    George

    Plugin Author Kento

    (@proaktion)

    FYI using these versions …

    – WordPress 5.9-alpha-51853
    – Groups 2.14.1
    – LP 4.1.3.1

    “Course A” protected by a “Premium” group.
    “Course B” not protected by any group.

    Visiting the All Courses page with a user who is not a member of the “Premium” group shows me “Course B” only => correct.

    Visiting the All Courses page with a user who is a member of the “Premium” group shows also only “Course B” => incorrect.

    Given that there is a workaround as outlined by https://www.ads-software.com/support/topic/restriction-on-groups-has-ceased-to-work/#post-14897165 and this seems to be a particular issue that only occurs with LearnPress courses and its lazy loading system, it might be a fault within its internal cache, I don’t see where Groups would be causing the issue. Maybe you’d want to reach out to the LearnPress developers to see if they want to investigate it further.

    With the workaround available we’ll mark this as resolved, feel free to follow up if there is anything else you’d like to add.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Restriction on groups has ceased to work.’ is closed to new replies.