Okay
  Public Ticket #3563404
Wplms User Sessions console errors and blank page
Closed

Comments

  • IeengSolution started the conversation

    Hello!

    We bought and activated the Wplms User Sessions Plugin, and followed the instruction here https://wplms.io/support/knowledge-base/wplms-user-session/ and of your video

    for the firebase configuration. But in the Sessions section all we see is a blank page with these error in console (view attachment)
    Can you help, please? I think there is something missing in the firebase project creation or in the Vibe BP -> Settings -> Firebase tab but I followed the instruction so I don't know what it is.  

    Attached files:  sessions_error.jpeg

  • IeengSolution replied

    Some update,

    recreated the app of my firebase project enabling the realtime DB first. Now firebase config has a databaseUrl key.

    But console error just changed in the ones shown in the attachment

    Error: FIREBASE FATAL ERROR: Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com 

    Attached files:  Screenshot 2024-01-17 alle 13.37.11.png

  • [deleted] replied

    please choose default region do not select any specific region while setting up project also do not enable firebase hosting  

    https://somup.com/c0XYbUgUBa


    Also note that for it to work you have to logout then login again after setting up firebase project

  • IeengSolution replied

    Just done, created a realtime DB with default regione and no firebase hosting. Now session page is not blank but it's still not working. No data found even if student logged in and out and has done a course

    I also have errors in console

      1. auth/internal-error"
      2. message: "{\"error\":{\"code\":400,\"message\":\"CONFIGURATION_NOT_FOUND\",\"errors\":[{\"message\":\"CONFIGURATION_NOT_FOUND\",\"domain\":\"global\",\"reason\":\"invalid\"}]}}"

    I don't know what configuration is talking about. I saved the new one in the Vibe BP -> Settings -> Firebase tab

    Attached files:  Screenshot 2024-01-18 alle 10.05.34.png

  • [deleted] replied

    Please share your site url and admin creds in private reply

    also add me as admin to your firebase project : https://support.google.com/firebase/answer/7000272?hl=en

    my gmail id is [email protected]

  •   IeengSolution replied privately
  • [deleted] replied

    Hi I set up the firebase , you did not enable any authentication method , email- password method needs to be enabled 

    6280092094.png


  • IeengSolution replied

    I logged in with another admin account but "your last session" its blank... Then I logged in with a student account, completed a course but also the "course sessions"  in blank ("no records found").

    Tried with "support" account and "Your last Session was" was correctly updated to current.

    Why user sessions does not work with the other accounts?

    In console the error is "INVALID_LOGIN_CREDENTIALS"

      1. a: null
      2. code: "auth/internal-error"
      3. message: "{\"error\":{\"code\":400,\"message\":\"INVALID_LOGIN_CREDENTIALS\",\"errors\":[{\"message\":\"INVALID_LOGIN_CREDENTIALS\",\"domain\":\"global\",\"reason\":\"invalid\"}]}}"
      4. [[Prototype]]: Error


  • IeengSolution replied

    Hi, do you have some update why the plugin does not work with other users?

  • [deleted] replied

    Hi im trying to access the site but its not working : 

    8230627807.png

    meanwhile please change the client id in wp-admin-> vibebp-> settings and then login with user again and again check the issue.

  • IeengSolution replied

    Hi,

    site is reachable again if you want to try something more because I have dono has you asked but it's not working.

    Changed the client ID to another 16 characters random string. Logged out and logged in. It's NOT working. I always get "INVALID_LOGIN_CREDENTIALS" error.

    code: "auth/internal-error"

      1. message: "{\"error\":{\"code\":400,\"message\":\"INVALID_LOGIN_CREDENTIALS\",\"errors\":[{\"message\":\"INVALID_LOGIN_CREDENTIALS\",\"domain\":\"global\",\"reason\":\"invalid\"}]}}"
      2. [[Prototype]]: Error

    Tried with both admin and student accounts.

  • [deleted] replied

    share admin creds again old one not working anymore.

  •   IeengSolution replied privately
  • [deleted] replied

    vibebp plugin is very old please update to latest version 1.9.9.3 and then check this issue .after logout and then re-login.

  • IeengSolution replied

    Hello,

    Can I update Vibe BP only or I need to also update WPLMS plugin, WPLMS theme and BuddyPress?

    p.s. I have Vibe BP 1.9.9., last is 1.9.9.3 I hope the update will solve the problem because I don't see a major release based to the version number only, nor I think the 1.9.9. is very old. Last site update was made 2 months ago at most.

  • [deleted] replied

    the major problem why user sessions is not working is due to old vibebp plugin . 

    Please update it to latest version .

    If you have pending update of wplms and wplms theme then update them too since these contains some other bugs fixes related to other features

  • IeengSolution replied

    I updated WPLMS theme, WPLMS plugin, vibe BP and BuddyPress (enabled  bp classic)... but always same error in console of "INVALID_LOGIN_CREDENTIALS"

    Also tried to change the clientID, not working.

    Please, solve the issue. Weeks have passed with no solution.

  • [deleted] replied

    HI fixed it at : 

    7314562971.png

  • IeengSolution replied

    It's not working.

    It does not show course sessions and user sessions. They have the "no records found" label even if I filter by date (today 30 january) and by student.

    Student the 30th of january has started course "Operatori di sponde retrattile su banchina o su autocarro"  but his session was not show in the corresponding session section.

    Can you resolve the problem, please?

    Attached files:  Screenshot_20240130_090611_Chrome.jpg
      Screenshot_20240130_085925_Chrome.jpg

  • IeengSolution replied

    I found the mistake. The datepicker is a date range picker (it's not clear that it need to select a date interval to work).

    But the user session plugin is not working as I was told in your Facebook group.

    I have done a specific question "This user session plugin you were talking about can tell the exact time the user was on a particular unit of the course? Has it this level of detail?"

    And the answer was "Yes".

    I only see information about login and logout but nothing about the time a user was on a particular unit of the course.

    How can we solve that?


    Attached files:  Screenshot_20240130_091330_Facebook.jpg
      Screenshot_20240130_092102_Chrome.jpg

  • [deleted] replied

    Instructor can see his course sessions of his own created courses only : 

    https://somup.com/cZVvFTkSZ5


    also note that the plugin bug was fixed yesterday so the sessions are not recorded before yesterday . 

    try to purusue a course and then check sessions . It is working now . 

    Also Changed the client ID again so that all user logs our and they have to login so that firebase error can be resolved .when firebase error resolves for user only then the sessions will record.

  • IeengSolution replied

    Hi,

    I'm have no istructor role, I'm amministrator so I should see all courses created and their sessions.

    Please, fix the issue.


  • [deleted] replied

    How to add code in wplms customizer pluginyes that is actually an issue , it does not shows all the courses since they can be so many courses created by all instructors , this is why we show only courses user has created . 


    to show all couses to admin : 

    add this code in your wplms-customizer.php file in wplms customizer plugin : 

    add_filter('wplms_dashboard_courses_instructors',function($query,$user_id){
        global $wpdb;
        if(user_can($user_id,'manage_options'))
        $query = $wpdb->prepare("
                  SELECT posts.ID as course_id,post_title as title
                    FROM {$wpdb->posts} AS posts
                    WHERE   posts.post_type   = 'course'
           
                    AND   posts.post_status   = 'publish'
                    ORDER BY posts.post_modified_gmt DESC
                    LIMIT 0,%d
                ",$user_id,99999);
    return $query;
    },10,2);