By Layne Huber on Thursday, 15 November 2018
Posted in General Issues
Replies 19
Likes 0
Views 604
Votes 0
Hi,

I'm having an issue with the 'Joomla User Type' app in PayPlans. I've set it up so that it applies a user type when a user has an active membership subscription. The problem I'm having however, is that the application is also applying the same user type when a membership subscription is set to 'no status'. I need the user type to only be applied when the membership is active.

Any suggestions?
Hello Layne,

Can you share your site backend details with us, so i'll be able to check this issue further.
·
Thursday, 15 November 2018 17:38
·
0 Likes
·
0 Votes
·
0 Comments
·
I can't currently provide access to our backend due to sensitive data. I can see about putting together a separate test site instance I suppose. I'll get back to you on this.

Layne
·
Saturday, 17 November 2018 09:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, it would be best if you can setup one of the test instance for us to reproduce this issue so we can able to troubleshoot this and quickly to know where went wrong.

By the way, you can add those test site backend and FTP login details at http://stackideas.com/dashboard/site .
·
Saturday, 17 November 2018 12:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, I've thrown together a test version of our website without the sensitive data, and made it available to you.

I've added the access details to the Site Details section as you suggested.

You can replicate the issue I mentioned by adding a '2019 Membership' plan to a user. The '2019 Membership' plan is set up to not become active until a point in time in 2019, so when it's initially added, it has a status of 'no-status', with the plan status changing to active at the appropriate date. But as mentioned, the Joomla User level application adds them to the member user group, despite the plan being 'no-status'.

Let me know if you run into any issues or have any further questions for me.

Thanks!

Layne
·
Monday, 19 November 2018 15:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Layne,

I can replicate this issue, can you please update us your site ftp details to continue on this issue.
The Above ftp details you shared are not working.
·
Monday, 19 November 2018 19:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha,

You need to connect with SFTP, port 22, otherwise it won't connect properly it seems.

Let me know if that works.

Layne
·
Tuesday, 20 November 2018 05:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Layne,

Sorry for the delayed response due to our public holiday.

I've tried to connect with ftp but it seems credentials not working.

Response: 530 Login incorrect.
Error: Critical error: Could not connect to server
·
Wednesday, 21 November 2018 11:27
·
0 Likes
·
0 Votes
·
0 Comments
·
I've re-added the FTP Account details to the Site Details page.

Are you connecting via SFTP?
·
Wednesday, 21 November 2018 12:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Layne,

Yes, now i am able to connect with ftp.
Will fix this issue and let you know once it fixed on your site.

Thank you for understanding !
·
Wednesday, 21 November 2018 15:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Layne,

Sorry for the delayed response.
I've applied the changes at your site to fix this issue. Please take a look on this and let me know if still issue persist.

Thank you for understanding !
·
Friday, 23 November 2018 20:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha,

I have two concerns. First, is that now when I apply a plan to a user, I'm getting the following error: 'An error has occured: 0 Call to a member function getStatus() on null' (I've attached a screenshot of the error.) When I browse back to the user list under PayPlans, the plan does appear to have been applied however.

In regards to the second issue, for our 2019 Membership plan we have a starting date using the 'Subscription Start Date' app, and an expiration date set up using the 'Fixed Date Expiration' app, so that the membership becomes active at a specific date, and then expires at a specific date. Now however, when I apply a plan, the plan has the Subscription Date and Expiration date both set to 'Never' rather than the rules we've set with the starting date and expiration date applications.

I've attached screenshots for your reference.

Thanks again for your help!

Layne
·
Sunday, 25 November 2018 08:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Layne,

Sorry for the delayed response due to weekend.
I've already applied fix at your site regarding the error you are getting. Please take a look on these issue again and let me know if still issue persist.

Thank you for understanding !
·
Monday, 26 November 2018 11:10
·
0 Likes
·
0 Votes
·
0 Comments
·
It seems to be working perfectly now! Thank you!

Now, how do I replicate this with our primary site? Do I need to edit the code manually?

Layne
·
Wednesday, 28 November 2018 05:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Layne,

It sounds good that your issue has been resolved now.
The changes are in below mentioned file path
root/plugins/payplans/jusertype/jusertype/app/jusertype/jusertype.php

Update us if you have any query.
·
Wednesday, 28 November 2018 10:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Perfect.

I'll get it setup on the primary site, and let you know if I run into any further issues.

Layne
·
Wednesday, 28 November 2018 14:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Layne,

ok. Update us if you will face any issue.
·
Wednesday, 28 November 2018 14:50
·
0 Likes
·
0 Votes
·
0 Comments
·
I've been able to get this working correctly on the primary site.

Thank you!

Moving forward, how are updates going to work? Am I going to need to re-add the revised file each time PayPlans is updated? Or are these changes going to be included in PayPlans moving forward?

Thanks,

Layne
·
Friday, 14 December 2018 03:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Layne,

It sounds good that your issue has been resolved now.
When you move forword plz take backup of changes (for safe side), we will include this fix in PP4.

Let me know if you have any query.
·
Friday, 14 December 2018 10:20
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post