Skip to content

clean() Cannot Process Arrays (Use clean_array() Instead) - IOMAD "Company Course Form" Error #41

@greencultured

Description

@greencultured

In IOMAD, when changing visibility (hide/visible) for courses via the "Manage IOMAD Course Setting", any course that has the "Designer Course Format" enabled is outputting the following error every time there's any visibility changes:

IOMAD Course Settings Docs: https://docs.iomad.org/wiki/Manage_IOMAD_course_settings

***Review the "Note" towards the bottom for information about the "Changing the visibility of the course (eye icon)" option.

Here's an output of the error:
`Coding error detected, it must be fixed by a programmer: clean() can not process arrays, please use clean_array() instead.

More information about this error

Debug info:
Error code: codingerrorDismiss this notification

Image

Stack trace:
line 401 of /lib/classes/param.php: core\exception\coding_exception thrown
line 775 of /lib/moodlelib.php: call to core\param->clean()
line 199 of /course/format/lib.php: call to clean_param()
line 1293 of /course/format/classes/base.php: call to expand_value()
line 1268 of /course/format/designer/lib.php: call to core_courseformat\base->validate_format_options()
line 1437 of /course/format/designer/lib.php: call to format_designer->update_format_options()
line 2127 of /course/lib.php: call to format_designer->update_course_format_options()
line 3263 of /course/lib.php: call to update_course()
line 228 of /blocks/iomad_company_admin/iomad_courses_form.php: call to course_change_visibility()`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions