We have installed the simple_certificate block in moodle 3.4.3 with php 7.2.5 and when we want to show the block we get the following error:
Warning: Illegal string offset 'courses' in /opt/apps/moodle/blocks/simple_certificate/renderer.php on line 145
Excepción - Cannot use string offset as an array
Debug info:
Error code: generalexceptionmessage
Error code: generalexceptionmessage
Stack trace:
Could it be a problem linked to the theme?- line 145 of /blocks/simple_certificate/renderer.php: Error thrown
- line 120 of /blocks/simple_certificate/renderer.php: call to simple_certificate_tree->get_certs_tree()
- line 37 of /blocks/simple_certificate/renderer.php: call to simple_certificate_tree->__construct()
- line 114 of /blocks/simple_certificate/block_simple_certificate.php: call to block_simple_certificate_renderer->block_simple_certificate_tree()
- line 288 of /blocks/moodleblock.class.php: call to block_simple_certificate->get_content()
- line 230 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
- line 1210 of /lib/blocklib.php: call to block_base->get_content_for_output()
- line 1262 of /lib/blocklib.php: call to block_manager->create_block_contents()
- line 374 of /lib/blocklib.php: call to block_manager->ensure_content_created()
- line 3944 of /lib/outputrenderers.php: call to block_manager->region_has_content()
- line 40 of /theme/boost/layout/columns2.php: call to core_renderer->blocks()
- line 1261 of /lib/outputrenderers.php: call to include()
- line 1191 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
- line 112 of /index.php: call to core_renderer->header()
The themes are clean, bootstrap 4, and aardvark.