Hi there,
In the profile/dashboard of the admin user (also an instructor), the course count appears to be wrong:
http://screencast.com/t/mv6oYjHk
- I am the admin/instructor
- I have one FREE course
- I am the instructor of the course
- I tried several times to remove myself from the course via the Course -> Admin -> "X" (remove user)
Is this is a known issue?
Thanks!
This issue appears due to import data .
In wplms we set a post meta in course for the user which is used to check whether user have taken that course .
Now issue appears due to there is some sample post meta which matches the new user id is in the course .
so you need to find the course which have post meta with meta key like number and meta value is also number .
Where meta key will be the user id of the user for which this issue is appearing in my courses.
refer :
http://prntscr.com/axu6o1
I found the course. I removed the key several times but it keeps reappearing. I also tried to add another key (average_rating) but still doesn't want to remove the user.
Please advise.
Thanks.
Another issue: (Also it appears that when I reply in the forums with a URL to the course and mark it "private" the system flags it as spam and the message disappears)
I also checked the database for the meta_key and I couldn't find one that was a number with the meta_value of my userid.
You have to delete the user meta for this also .
The code checks that if there is usermeta set then create the course meta .
that is why it is keep on re-appearing .
You have to delete the user meta also .
Find the user meta in usermeta table with user_id as
user's id and meta key is
course id .
refer :
http://prntscr.com/ay9t0p
please also check if you have hide that course form wp-admin -> wplms -> course manager : http://prntscr.com/aivjex
For some reason, there was another course (non-existent) that the user was subscribed to. This was probably due to some of the imported data as you mentioned.
A deeper look at user_meta where meta_key is a numeric string and deleting that worked.
Closing ticket.
Thank you!