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

Error on response export 4.4 #567

Closed
aguatacuperche opened this issue Apr 29, 2024 · 3 comments
Closed

Error on response export 4.4 #567

aguatacuperche opened this issue Apr 29, 2024 · 3 comments

Comments

@aguatacuperche
Copy link

Hi. I have an error exporting (downloading) responses. Moodle Version 4.4

During data export you get an error.

View all responses > Summary > Download

Excepción - Failed opening required '[dirroot]/lib/dataformatlib.php' (include_path='[dirroot]/lib/pear:.:/opt/bitnami/php/lib/php')

Error code: generalexceptionmessage
line 488 of /mod/questionnaire/report.php: Error thrown

Thanks.

@aguatacuperche
Copy link
Author

I have found a solution by commenting out lines 95 and 488 of report.php inside /mod/questionaire/

// $questionnaire->canviewallgroups = has_capability('moodle/site:accessallgroups', $context);

// require_once($CFG->dirroot . '/lib/dataformatlib.php');

@leonstr
Copy link
Contributor

leonstr commented Jul 29, 2024

This is duplicated by #579 , the latter has PR #587 as a proposed fix fox this.

@mchurchward
Copy link
Contributor

This has been fixed in the referenced PR.

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

3 participants