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

Moodle 4.4 questionnaire export answers to csv - Missing '[dirroot]/lib/dataformatlib.php' #579

Closed
mishomvp opened this issue Jun 18, 2024 · 6 comments

Comments

@mishomvp
Copy link

Hello,

When I try to download the questionnaire answers in csv format.

Exception - Failed opening required '[dirroot]/lib/dataformatlib.php' (include_path='[dirroot]/lib/pear:.:').

It seems that in the new version 4.4 this file is missing.

@aguatacuperche
Copy link

Hi, I think it is possible that you can provisionally solve the problem by commenting lines 95 and 488 of report.php inside /mod/questionaire/ In my case, it works.

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

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

@mishomvp
Copy link
Author

Hi :)
Thanks! It works!

@mishomvp mishomvp closed this as not planned Won't fix, can't repro, duplicate, stale Jun 19, 2024
@mishomvp mishomvp reopened this Jun 19, 2024
@rezeau
Copy link
Contributor

rezeau commented Jun 30, 2024

@aguatacuperche I confirm that the hack of commenting out 2 lines does work. But a fix should be provided by @mchurchward

@leonstr
Copy link
Contributor

leonstr commented Jul 29, 2024

Re removing line 95 of report.php, I think this is a separate issue affecting Moodle with PHP >= 8.2 which is fixed in b06947c.

@thepurpleblob
Copy link

A "me too". Is a fixed version likely soon?

@mchurchward
Copy link
Contributor

This has been fixed and merged.

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

6 participants