Fatal error: Uncaught ArgumentCountError & course prograss reflection problem

Home Forums WPLMS AddOns Custom Learning Paths Fatal error: Uncaught ArgumentCountError & course prograss reflection problem

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #211431
    KAIST
    Spectator
    Thank you for your great support! The learning path does not reflect the progress of the course. It is same issue below but unlike last time, only first one course prograss can be reflected. https://wplms.io/support/forums/topic/fatal-error-learning-path-does-not-reflect-progress-of-the-course/ https://screencast-o-matic.com/watch/cqhveYTYHQ Would you please let me know the code to fix it? thank you! Fatal error: Uncaught ArgumentCountError: Too few arguments to function WPLMS_Custom_LP_Init::wplms_clp_record_certificate_awarded(), 2 passed in /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php on line 288 and exactly 3 expected in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wplms-custom-learning-paths/frontend/class.init.php:891 Stack trace: #0 /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php(288): WPLMS_Custom_LP_Init->wplms_clp_record_certificate_awarded(75, '650') #1 /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array) #2 /opt/bitnami/apps/wordpress/htdocs/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #3 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wplms-custom-learning-paths/frontend/class.init.php(857): do_action('wplms_clp_user_...', 75, '650', '64') #4 /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php(286): WPLMS_Custom_LP_Init->wplms_clp_award_certificate_badge(75, '650', '2733', Array) in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wplms-custom-learning-paths/frontend/class.init.php on line 891
    #211554
    Scott Lang
    Moderator
    Hi, Refer this :http://prntscr.com/nvgchi
    #211555
    Scott Lang
    Moderator
    add_action('wplms_clp_user_certificate_awarded',array($this,'wplms_clp_record_certificate_awarded'),10,3);
    #211612
    KAIST
    Spectator
    Thank you. One Learning path reflect the course progress. But still The other learning path has the same problem. https://screencast-o-matic.com/watch/cqhw1cT3uL here's the logs Fatal error: Uncaught Error: Cannot use string offset as an array in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wplms-custom-learning-paths/frontend/class.init.php:880 Stack Trace 1.
    WPLMS_Custom_LP_Init->wplms_clp_award_certificate_badge(64, '650', '2715', Array) /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php:286 2.
    WP_Hook->apply_filters(NULL, Array) /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php:310 3.
    WP_Hook->do_action(Array) /opt/bitnami/apps/wordpress/htdocs/wp-includes/plugin.php:465 4.
    do_action('wplms_clp_step_...', 64, '650', '2715', Array) /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wplms-custom-learning-paths/frontend/class.init.php:435 5.
    WPLMS_Custom_LP_Init->wplms_clp_check_user_lp_step(Array) /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php:288 6.
    WP_Hook->apply_filters(NULL, Array) /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php:310 7.
    WP_H in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wplms-custom-learning-paths/frontend/class.init.php on line 880 /opt/bitnami/apps/wordpress/htdocs/wp-includes/plugin.php:465 and Warnings Warning: Illegal string offset 'lp_id' in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wplms-custom-learning-paths/frontend/class.init.php on line 880 Warning: Invalid argument supplied for foreach() in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wplms-custom-learning-paths/frontend/class.init.php on line 834 Warning: Cannot use a scalar value as an array in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wplms-custom-learning-paths/frontend/class.init.php on line 1074 Warning: Invalid argument supplied for foreach() in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wplms-custom-learning-paths/frontend/class.init.php on line 834 Warning: in_array() expects parameter 2 to be array, string given in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wplms-custom-learning-paths/frontend/class.init.php on line 1072 thank you!
    #211974
    Scott Lang
    Moderator
    Hi, Well we have get the issue, It is just php errors. Please share you FTP in private reply . And make sure we have access to the plugin folder and we have also  write permission. It will be beneficial for both of us at our ends. Also if you have followed any specific steps to get the error then share with us . This make debugging easy and solving error will take less time.  
    #212072
    KAIST
    Spectator
    This reply has been marked as private.
    #212404
    Scott Lang
    Moderator
    This reply has been marked as private.
    #213043
    KAIST
    Spectator
    Hi. Yes I made permission change and also made change like this. add_action('wplms_clp_user_certificate_awarded',array($this,'wplms_clp_record_certificate_awarded'),10,3); But the problem is learning path dose not reflect course progress. Only One finished course reflected on the learning path . The rest of the course is not reflected , so the learning path does not proceed thank you!
    #213369
    Scott Lang
    Moderator
    Hi, Please make sure your given step and completed step are same thus reflection will work. If issue persist, share your custom learning path url with us. Also is that any fatal error showing??  
    #213641
    KAIST
    Spectator
    This reply has been marked as private.
    #213793
    Scott Lang
    Moderator
    Hi, We are unable to understand your issue, Please provide some more details regarding this. If this is possible share some steps and screenshot which you have followed and get issues. It will be easy for us to get the error and resolving time will be less.
    #213877
    KAIST
    Spectator
    This reply has been marked as private.
    #213938
    Scott Lang
    Moderator
    Hi, Please check you have not selected course for 2nd step , refer this : http://prntscr.com/o1rmu7 So reflection in custom learning path not works..
    #214041
    KAIST
    Spectator
    Ah!!! thank you so much It resolved! thank you for your kind help! Cheers!!!
    #214090
    KAIST
    Spectator
    Course reflection problem is resolved as I told. But Today Still I find this kind of fatal error. thanks Jun 15, 00:17:32 Fatal error: Uncaught Error: Cannot use string offset as an array in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wplms-custom-learning-paths/frontend/class.init.php:884 Stack Trace 1.
    WPLMS_Custom_LP_Init->wplms_clp_award_certificate_badge(98, '3328', '14286', Array) /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php:286 2.
    WP_Hook->apply_filters(NULL, Array) /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php:310 3.
    WP_Hook->do_action(Array) /opt/bitnami/apps/wordpress/htdocs/wp-includes/plugin.php:465 4.
    do_action('wplms_clp_step_...', 98, '3328', '14286', Array) /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wplms-custom-learning-paths/frontend/class.init.php:435 5.
    WPLMS_Custom_LP_Init->wplms_clp_check_user_lp_step(Array) /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php:288 6.
    WP_Hook->apply_filters(NULL, Array) /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php:310 7.
    in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wplms-custom-learning-paths/frontend/class.init.php on line 884 /opt/bitnami/apps/wordpress/htdocs/wp-includes/plugin.php:465
Viewing 15 posts - 1 through 15 (of 16 total)
  • The topic ‘Fatal error: Uncaught ArgumentCountError & course prograss reflection problem’ is closed to new replies.