Specific user gets ciritical error on site

Home Forums Legacy Support Support queries Update Issues Specific user gets ciritical error on site

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #338807
    ART-Providers
    Participant
    a specific error always sees critical error now. Other Tutors are able to login. How can we remove all relevant error or issue for this user without having to delete account?
    #338808
    ART-Providers
    Participant
    This reply has been marked as private.
    #338860
    ART-Providers
    Participant
    Hi After some elaborate bug checking we noted that this is not caused by a code error as such but due to database corruption with Scorm access token. Removing the token from the user meta table and the long strings on course status seemed to have bring it back to life. Is this something you guys have noticed or fixed?
    #339011
    Anshuman Sahu
    Keymaster
    Nope but yes we use to create a user token upon login if there isn't any .You can goto wp-admin -> lms -> settings -> api -> connected clients -> clear all connected clients can fix it.
    #339109
    ART-Providers
    Participant
    Hi Alex On further reports of critical error, we noted that although there is nothing in debugs the site is not responsive. This is not just due to token but the way Course metavalue is saved which is a very large string and is eventually crashing into error 500 on that particular user logging in or else when you go to Wp-Admin > users (users.php page) Deleting the course status meta row finally bring it back not just the token. A typical entry in meta value is pasted below. Deleting few of these helps eventually.
    #339310
    Anshuman Sahu
    Keymaster
    Can you please share the screenshot or document of the exact database table row where this long string stores ?
    #339335
    ART-Providers
    Participant
    Yes, usually like this https://snipboard.io/C64NYK.jpg
    #339600
    Anshuman Sahu
    Keymaster
    Hi is this the meta value which is creating problem ? : https://prnt.sc/z3qsvm It should not happen . This must be some code error .
    #339642
    ART-Providers
    Participant
    Hi Alex Yes, I think the error probably is when a Scorm course is called from external connector and WPLMS is unable to get the unit id. 'sync_resync_unit_students' in the file plugins\vibe-customtypes\includes\musettings.php Can you explain Why is the function sync_resync_unit_students in the file plugins\vibe-customtypes\includes\musettings.php called ? The issue happens when the value of $_POST['unit_id'] in this function is 0 The meta value gets some weird cache data instead of timestamp causing the crash. Let us know please.
    #339780
    Anshuman Sahu
    Keymaster
    Well this function is not called unless you goto wp-admin -> lms -> settings -> functions -> sync areas and hit the sync unit students button there . the issue is something else .There is another point where this unit id is not being set . We will need to check this exact point where this is happening .To check this we would need your course url in which this is happening and database access from phpmyadmin(maybe cpanel) in private reply
    #339828
    ART-Providers
    Participant
    This reply has been marked as private.
    #339996
    Anshuman Sahu
    Keymaster
    This reply has been marked as private.
    #340032
    ART-Providers
    Participant
    I sent you the login request for collaborator. You may try
    #340294
    Anshuman Sahu
    Keymaster
    Ok we put a check for empty unit_id there in the function which is updating the completion time . To fix this please replace your "bp-course-template.php" file in your wp-content/plugins/wplms_plugin/includes/vibe-course-module/includes/ folder with the "bp-course-template.php" file you find in this : https://bit.ly/3dg6VSQ
    #340359
    ART-Providers
    Participant
    Replacing this file is causing the courses page to go completely blank now. I have reverted for now. There seems to be a lot of difference between my version of this file and the replacement. To start with many places the difference is in 'vibe' or 'wplms'. I have 3.9.9.7
Viewing 15 posts - 1 through 15 (of 21 total)
  • The topic ‘Specific user gets ciritical error on site’ is closed to new replies.