Home › Forums › Legacy Support › Support queries › Update Issues › Specific user gets ciritical error on site
- This topic has 21 replies, 2 voices, and was last updated 3 years, 9 months ago by Anshuman Sahu.
-
AuthorPosts
-
February 8, 2021 at 3:24 pm #338807ART-ProvidersParticipanta 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?February 8, 2021 at 3:26 pm #338808ART-ProvidersParticipantThis reply has been marked as private.February 8, 2021 at 9:46 pm #338860ART-ProvidersParticipantHi 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?February 9, 2021 at 1:54 pm #339011Anshuman SahuKeymasterNope 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.February 9, 2021 at 9:53 pm #339109ART-ProvidersParticipantHi 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.February 10, 2021 at 2:58 pm #339310Anshuman SahuKeymasterCan you please share the screenshot or document of the exact database table row where this long string stores ?February 10, 2021 at 3:42 pm #339335ART-ProvidersParticipantYes, usually like this https://snipboard.io/C64NYK.jpgFebruary 11, 2021 at 2:42 pm #339600Anshuman SahuKeymasterHi is this the meta value which is creating problem ? : https://prnt.sc/z3qsvm It should not happen . This must be some code error .February 11, 2021 at 7:48 pm #339642ART-ProvidersParticipantHi 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.February 12, 2021 at 1:03 pm #339780Anshuman SahuKeymasterWell 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 replyFebruary 12, 2021 at 5:18 pm #339828ART-ProvidersParticipantThis reply has been marked as private.February 13, 2021 at 1:10 pm #339996Anshuman SahuKeymasterThis reply has been marked as private.February 13, 2021 at 2:56 pm #340032ART-ProvidersParticipantI sent you the login request for collaborator. You may tryFebruary 15, 2021 at 1:43 pm #340294Anshuman SahuKeymasterOk 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/3dg6VSQFebruary 15, 2021 at 6:29 pm #340359ART-ProvidersParticipantReplacing 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
-
AuthorPosts
- The topic ‘Specific user gets ciritical error on site’ is closed to new replies.