Error when editing a section on PHP 8.0 on Moodle 4.0

Issue #117 resolved
stephen.bourget created an issue

The following error is generated when trying to edit a section using the tiles course format on PHP 8.0

(It may be related to https://php.watch/versions/8.0/named-parameters )

Exception - Unknown named parameter $

More information about this error

Debug info:
Error code: generalexceptionmessage

Stack trace:

  • line 947 of /course/format/classes/base.php: Error thrown
  • line 947 of /course/format/classes/base.php: call to call_user_func_array()
  • line 682 of /course/format/tiles/lib.php: call to core_courseformat\base->create_edit_form_elements()
  • line 47 of /course/editsection_form.php: call to format_tiles->create_edit_form_elements()
  • line 214 of /lib/formslib.php: call to editsection_form->definition()
  • line 1166 of /course/format/classes/base.php: call to moodleform->__construct()
  • line 104 of /course/editsection.php: call to core_courseformat\base->editsection_form()

Comments (5)

  1. Markus Samlenski

    @David Watson Any chance that we get an updated Version of the 3.9-3.11 Branch as per Ben’s request? PHP-Versions older than PHP 8.0 are EOL as of last November, which adds pressure to switch to PHP8 even on older moodle Versions.

  2. Log in to comment