Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Critical error Uncaught TypeError: Sensei_Assets::get_icon() #7594

Open
naveenrnimmala opened this issue Apr 19, 2024 · 1 comment
Open

Critical error Uncaught TypeError: Sensei_Assets::get_icon() #7594

naveenrnimmala opened this issue Apr 19, 2024 · 1 comment
Labels
[Status] Needs Author Reply Requires response from the author [Type] Bug

Comments

@naveenrnimmala
Copy link

This is from woocommerce status logs. Am getting critical errors during course browsing.

Uncaught TypeError: Sensei_Assets::get_icon(): Argument #1 ($name) must be of type string, null given, called in /home/public_html/wp-content/plugins/sensei-lms/includes/blocks/course-theme/class-course-navigation.php on line 283 and defined in /home/public_html/wp-content/plugins/sensei-lms/includes/class-sensei-assets.php:310 CONTEXT: {"error":{"type":1,"file":"/home/public_html/wp-content/plugins/sensei-lms/includes/class-sensei-assets.php","line":310},"backtrace":["","#0 /home/public_html/wp-content/plugins/sensei-lms/includes/blocks/course-theme/class-course-navigation.php(283): Sensei_Assets->get_icon()","#1 /home/public_html/wp-content/plugins/sensei-lms/includes/blocks/course-theme/class-course-navigation.php(266): Sensei\Blocks\Course_Theme\Course_Navigation->lesson_status_icon()","#2 /home/public_html/wp-content/plugins/sensei-lms/includes/blocks/course-theme/class-course-navigation.php(168): Sensei\Blocks\Course_Theme\Course_Navigation->render_lesson()","#3 [internal function]: Sensei\Blocks\Course_Theme\Course_Navigation->Sensei\Blocks\Course_Theme\{closure}()","#4 /home/wp-content/plugins/sensei-lms/includes/blocks/course-theme/class-course-navigation.php(166): array_map()","#5 /home/public_html/wp-content/plugins/sensei-lms/includes/blocks/course-theme/class-course-navigation.php(100): Sensei\Blocks\Course_Theme\Course_Navigation->render_module()","#6 [internal function]: Sensei\Blocks\Course_Theme\Course_Navigation->Sensei\Blocks\Course_Theme\{closure}()","#7 /home/public_html/wp-content/plugins/sensei-lms/includes/blocks/course-theme/class-course-navigation.php(97): array_map()","#8 /home/public_html/wp-includes/class-wp-block.php(463): Sensei\Blocks\Course_Theme\Course_Navigation->render_course_navigation()","#9 /home/public_html/wp-includes/class-wp-block.php(443): WP_Block->render()","#10 /home/public_html/wp-includes/class-wp-block.php(443): WP_Block->render()","#11 /home/public_html/wp-includes/blocks.php(1705): WP_Block->render()","#12 /home/public_html/wp-includes/blocks.php(1743): render_block()","#13 /home/public_html/wp-includes/block-template.php(263): do_blocks()","#14 /home/public_html/wp-includes/template-canvas.php(12): get_the_block_template_html()","#15 /home/public_html/wp-includes/template-loader.php(106): include('/home/u76042662...')","#16 /home/public_html/wp-blog-header.php(19): require_once('/home/u76042662...')","#17 /home\/public_html/index.php(17): require('/home/u76042662...')","#18 {main}","thrown"]}

PHP / WordPress / Sensei LMS version

WP 6.5.2
PHP 8.2.13
Sensei 4.23.1

Browser / OS version

Screenshot / Video

Context / Source

@merkushin
Copy link
Member

Hi @naveenrnimmala!

Could you help us to reproduce the issue by adding the testing instructions?

Ideally, we need the whole path from the course creation to the student activity that was before and at the moment of the issue happened.

Please, be as detailed as possible and consider attaching screenshots or video whenever you think it might help.

Thank you!

@donnapep donnapep added [Status] Needs Author Reply Requires response from the author and removed [Status] Needs Triage Issue needs to be triaged labels Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Needs Author Reply Requires response from the author [Type] Bug
Projects
None yet
Development

No branches or pull requests

4 participants