Posts made by Jerry Lau

So on our test instance, we are running php 7.0.x with mysql 5.7.x and moodle version 3.6.3 on a shared hosting provider

I upgraded the sharing cart (2020090100) as moodle plugin suggested smile to version and now all the 150 courses that have that cart cannot be accessed and all I get is the error message

Exception - syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE)
Debug info:
Error code: generalexceptionmessage
Stack trace:
  • line 42 of /blocks/sharing_cart/classes/controller.php: ParseError thrown
  • line ? of unknownfile: call to core_component::classloader()
  • line 87 of /blocks/sharing_cart/block_sharing_cart.php: call to spl_autoload_call()
  • line 321 of /blocks/moodleblock.class.php: call to block_sharing_cart->get_content()
  • line 230 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
  • line 1216 of /lib/blocklib.php: call to block_base->get_content_for_output()
  • line 1268 of /lib/blocklib.php: call to block_manager->create_block_contents()
  • line 604 of /lib/outputrenderers.php: call to block_manager->ensure_content_created()
  • line 39 of /theme/bootstrapbase/renderers/core_renderer.php: call to core_renderer->standard_head_html()
  • line 44 of /theme/clean/layout/columns3.php: call to theme_bootstrapbase_core_renderer->standard_head_html()
  • line 1328 of /lib/outputrenderers.php: call to include()
  • line 1258 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 244 of /course/view.php: call to core_renderer->header()
The funny thing is that I made a back up of a course and created  new course that had a sharing cart plugin BEFORE upgrading the Sharing Cart plugin and I can view that newly created course, which had the older sharing cart version.

How and where can I troubleshoot this?

Thanks!



Average of ratings: -

Hello folks.

Where can I submit enhancement of core code to moodle?

I want to include the course id during a database enrolment output so it makes it easier to get to the course with the id shown other than just the user id and course's shortname.

I tested it on my local environment and its an easy modification.

I tried to asked in general developer forum but no success or reply ...

thanks

Dave



Average of ratings: -