By Ashish Kathuria on Friday, 29 June 2018
Posted in General Issues
Replies 38
Likes 0
Views 785
Votes 0
Hi I am trying to restrict access to two separate k2 categories as there will be user subscribing to two of them. i have used k2 group app and although i have followed up the instructions (https://stackideas.com/docs/payplans/administrators/access-control/cck-k2) and set things accordingly. this doesn't seem to be working correctly. user still have access to the k2 content although subscription has expired.
http://trendcouncil.com/web/
login on the frontend with username: aleya password:kumar@13 who should only have access to ladies+juniors1year plan but even though i have manually expired user account, user still has access.
not sure if i need to put in any code in k2 category itself. would appreciate your guidance and help here!
Hello Ashish,

I have checked your site. K2 Category access control app are disabled. K2 User group app is enabled only.
K2 user group app is created recently , well subscription purchased a day ago before app creation, that's why it's not working.

This app will work for only new subscribers who purchase the plan after app creation, existing user will not get affected with this.
Try to subscribe one plan and see if still issue persist.

Update me.
·
Friday, 29 June 2018 17:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha thank you for the response!
I have enabled k2 user group and also have created new subscription for new user called "ashladies" who should only have access to "women and juniors" section of the k2 category and not to "men and young men" k2 category.
But this is still not working could you please guide.

Thanks

Ash
·
Saturday, 30 June 2018 11:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ashish,

Can you share your site ftp details , i need to debug this issue.
·
Monday, 02 July 2018 11:19
·
0 Likes
·
0 Votes
·
0 Comments
·
server: trendcouncil.com
u:trendcou
p:kumar@13 or try Kumar@13
·
Tuesday, 03 July 2018 02:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ashish,

I double cross check the things. Payplans K2 USer group app will assign k2 user group to the users on the basis of subscription they purchase. Which is assigning the user group perfectly. Every configuration seems working. We need to contact k2 team about this if anything missing in configuration, so they can assist us. Can you ask from K2 team about this issue.
see attached screen shot.

Update me with the response.
Thank you for understanding.
·
Tuesday, 03 July 2018 12:15
·
0 Likes
·
0 Votes
·
0 Comments
·
i am not understanding what do you need me to ask them? please state the question you need me to ask them
·
Tuesday, 03 July 2018 12:23
·
0 Likes
·
0 Votes
·
0 Comments
·
k2 extension is not the issue here its the k2 plugin for pay plans does not seem to functions correctly.
·
Tuesday, 03 July 2018 12:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ashish,

I think i misunderstood, correct me.
What i understand previously that according to k2 usergroup content not displaying. that's why i told you in my previous reply that user group access assignment done properly , so we need to confirm with k2 support team.

I think you want to restrict k2 category items on the basis on plan subscribed by user.
For example , i have create one K2 Item access control app to restrict "Women Trendvoyant" item, if user don't have Ladies and Junior plan , not able to see the item, user will see subscribe plan link.
See attached screen shot.

I have created one user, login in frontend with testuser / 111111 and try to access below link which is restricted.
http://trendcouncil.com/web/index.php?option=com_k2&view=item&layout=item&id=10&Itemid=682

Correct me if i understand properly or if not please try to explain using screenshot/link what exactly you want to achieve.
Thank you for understanding.
·
Tuesday, 03 July 2018 13:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha

i think i have figured everything out so here are the few hurdles

- how do i "subscribe plan" link to contact us page, please see screeshot
- and one weired thing is that, restrictions are working fine but for some reason when you click on "runway analysis" it doesnt restrict that page.

User "testuserLadies" is restricted to LadiesandJuniors category only, and as it should be, doesnt have access to "menandyoungmen" category but the only page it doesnt restrict is RUNWAY ANALYSIS in the navigation. let me know if this all makes sense to you.

try loging in with testuserLadies/111111 and access menandyougmen section on the top you will see it still has access to runwayanalysis.

Thanks
Ash
·
Wednesday, 04 July 2018 22:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ashish,

It sounds good you managed to setup this app.
I've have login with testuserLadies and tried to access runanalysis page, at the bottom you will see subscribe link , and also if you click on any section mentioned in images, it's also restricted.
see attached screen shot.

Let me know if you have any query or correct me if i misunderstood.
·
Thursday, 05 July 2018 10:48
·
0 Likes
·
0 Votes
·
0 Comments
·
yes i see the subscribe plan link but no images show up in rest of the sections but only in runway analysis. so i didnt want to see the images.

2nd thing is i needed to change subscribe plan link to the contact page at the bottom.
·
Thursday, 05 July 2018 11:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey,

2nd thing is i needed to change subscribe plan link to the contact page at the bottom.
Can you please share the screen shot, where exactly you want it , so i can check it.
·
Thursday, 05 July 2018 11:17
·
0 Likes
·
0 Votes
·
0 Comments
·
here is the screenshot attached...also how can i hide those images from runway analysis? this also in screenshot
·
Thursday, 05 July 2018 11:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ashish,

In current K2 Category access control, Subscribe link will go to plan page always , as it's default behavior of payplans to restrict the contents. If you want to change the subscribe link to contact us page then it will require customization in existing app (change in above mentioned image).

Please send us detailed requirement request at support@stackideas.com OR https://crm.stackideas.com and select "Customizations".

Let me know if you have any query.
·
Thursday, 05 July 2018 12:57
·
0 Likes
·
0 Votes
·
0 Comments
·
ok i will do that, what about the image issue as i had described earlier
·
Thursday, 05 July 2018 13:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ashish,

In case of restricted item , we show subscribe link after intro text.
For runwayanalysis item, these images are added as introtext that's why it's showing before subscribe link.
While for other items , no inro text is there that's why only subscription link shown. .

Let me know if you have any query.
·
Thursday, 05 July 2018 13:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi I am still having issues with content restrictions...just to recap here is what needed

testuserLadies has access to Ladies and Juniors category and all the items under it only

testuserMen has access to MenandYoungmen category and all the items under it only

testuserFull has access to Both the category and all the items under it only (in another words access to the entire site)

Please note that categories are setup in K2

I have used payplank2 plugin app for this but that just gives access to the categories not the items within the categories

please guide as soon as possible.
·
Tuesday, 17 July 2018 20:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ashish,

I checked with testuserFull user, who have full access to site. The restricted menu is accessories.
See attached screen shot.

Let me know only this item is not restricted or correct me if i misunderstood the issue.
·
Wednesday, 18 July 2018 11:38
·
0 Likes
·
0 Votes
·
0 Comments
·
no that is not what i am asking ....if you read my previous comments

- by restricting category does the app also restricts the items within the category? if so i have already given access to the users according to the role but they still dont have access to certain items though they have the access to the category containing the item.

do you understand the issue now? you need to login as the three seperate users like i mentioned below and try to access items within to see the issue.





[i]Hi I am still having issues with content restrictions...just to recap here is what needed

testuserLadies has access to Ladies and Juniors category and all the items under it only

testuserMen has access to MenandYoungmen category and all the items under it only

testuserFull has access to Both the category and all the items under it only (in another words access to the entire site)

Please note that categories are setup in K2

I have used payplank2 plugin app for this but that just gives access to the categories not the items within the categories
[/i]
·
Thursday, 19 July 2018 13:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ashish,

I am able to replicate the issue now. I am working on this issue.
Please don't change anything on site.
·
Thursday, 19 July 2018 17:52
·
0 Likes
·
0 Votes
·
0 Comments
·
thank you. i wont change anything.
·
Thursday, 19 July 2018 22:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ashish,

I debug this issue at your site, it coming due to caching. I have cleared your site cache and i am able to access the items of allowed categories of the user's you mentioned previously.
Please take a look again on this issue and then try to record video or steps to replicate it.
See attached screen shot.

Update me or correct me if i misunderstood.
·
Friday, 20 July 2018 10:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Manisha

I have noticed that too but each time i have this issues, i will have to clear the cache? which is not very userful.


Thanks

Ash
·
Friday, 20 July 2018 11:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi I just tested as testuserMen and i still get restricted when i try to access any of the categories assigned under this plan. i have also disabled system page cache system plugin to avoid this issue but not being able to access the content under this plan.
·
Friday, 20 July 2018 11:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ashish,

Ok, i got the issue. I am working on your site.
Will let you know once it get fixed.

Thanks for understanding.
·
Friday, 20 July 2018 15:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ashish,

Please find attached kit of k2 with changes.
Install it vai joomla extension manager.

After installing , please take a look on this issue and update me if still issue not resolved.
·
Monday, 23 July 2018 19:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi

i got this error

Fatal error: Call to a member function getAppParam() on null in /home/trendcou/public_html/web/plugins/payplans/k2/k2/app/k2item/k2item.php on line 110
·
Wednesday, 25 July 2018 11:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Sorry for the inconvenience.
PFA.
·
Wednesday, 25 July 2018 11:58
·
0 Likes
·
0 Votes
·
0 Comments
·
another error

Warning: array_intersect(): Argument #1 is not an array in /home/trendcou/public_html/web/plugins/payplans/k2/k2/app/k2item/k2item.php on line 117

Fatal error: Cannot break/continue 1 level in /home/trendcou/public_html/web/plugins/payplans/k2/k2/app/k2item/k2item.php on line 119
·
Wednesday, 25 July 2018 12:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello ,

Disable this app for now, lI will debug this issue at your site.
Do not change anything on site.
·
Wednesday, 25 July 2018 12:09
·
0 Likes
·
0 Votes
·
0 Comments
·
I unpublished the app now. please let me know this is becoming ongoing issue.
·
Wednesday, 25 July 2018 12:16
·
0 Likes
·
0 Votes
·
0 Comments
·
ok, Will let you know asap on this.
Thanks for understanding.
·
Wednesday, 25 July 2018 12:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ashish,

Sorry for the delay. I have applied the changes at your site. Now it's working as expected.
Please take a look on this update me if still issue persist.

Thank you for understanding.
·
Thursday, 26 July 2018 11:36
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post