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

Gapfill import (examples) #114

Open
rezeau opened this issue Apr 28, 2024 · 2 comments
Open

Gapfill import (examples) #114

rezeau opened this issue Apr 28, 2024 · 2 comments

Comments

@rezeau
Copy link

rezeau commented Apr 28, 2024

Describe the bug
Desktop (please complete the following information):

  • OS: Windows 11
  • Browser Any
  • Moodle 4.4
  • Admin/Plugins/Question types/Gapfill/Import
    throws this error:
    Exception - count(): Argument how to rectify the error #1 ($value) must be of type Countable|array, stdClass given
    Debug info:
    Error code: generalexceptionmessage
    Stack trace:
    line 100 of \question\type\gapfill\import_examples.php: TypeError thrown
    line 674 of \lib\formslib.php: call to gapfill_import_form->validation()
    line 610 of \lib\formslib.php: call to moodleform->validate_defined_fields()
    line 720 of \lib\formslib.php: call to moodleform->is_validated()
    line 116 of \question\type\gapfill\import_examples.php: call to moodleform->get_data()
@marcusgreen
Copy link
Owner

Thank you Joseph, can you confirm the PHP version. It probably is not linked, but just for completeness

@rezeau
Copy link
Author

rezeau commented Apr 28, 2024

Sorry, it's PHP 8.2.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants