Home › Forums › WPLMS AddOns › Custom Learning Paths › Fatal error: Uncaught ArgumentCountError & course prograss reflection problem
- This topic has 15 replies, 2 voices, and was last updated 5 years, 4 months ago by Scott Lang.
-
AuthorPosts
-
May 30, 2019 at 3:26 am #211431KAISTSpectatorThank 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 891May 30, 2019 at 2:16 pm #211554Scott LangModeratorHi, Refer this :http://prntscr.com/nvgchiMay 30, 2019 at 2:17 pm #211555Scott LangModeratoradd_action('wplms_clp_user_certificate_awarded',array($this,'wplms_clp_record_certificate_awarded'),10,3);May 31, 2019 at 6:01 am #211612KAISTSpectatorThank 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!June 3, 2019 at 10:17 am #211974Scott LangModeratorHi, 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.June 4, 2019 at 2:53 am #212072KAISTSpectatorThis reply has been marked as private.June 5, 2019 at 1:43 pm #212404Scott LangModeratorThis reply has been marked as private.June 10, 2019 at 4:32 am #213043KAISTSpectatorHi. 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!June 11, 2019 at 2:32 pm #213369Scott LangModeratorHi, 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??June 12, 2019 at 2:31 pm #213641KAISTSpectatorThis reply has been marked as private.June 13, 2019 at 12:50 pm #213793Scott LangModeratorHi, 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.June 14, 2019 at 3:06 am #213877KAISTSpectatorThis reply has been marked as private.June 14, 2019 at 10:14 am #213938Scott LangModeratorHi, Please check you have not selected course for 2nd step , refer this : http://prntscr.com/o1rmu7 So reflection in custom learning path not works..June 14, 2019 at 3:25 pm #214041KAISTSpectatorAh!!! thank you so much It resolved! thank you for your kind help! Cheers!!!June 15, 2019 at 3:40 am #214090KAISTSpectatorCourse 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 -
AuthorPosts
- The topic ‘Fatal error: Uncaught ArgumentCountError & course prograss reflection problem’ is closed to new replies.