Error when trying to download report to Excel

Error when trying to download report to Excel

by Lyor Bensoussan -
Number of replies: 2

The past couple of weeks, I've been getting long error messages every time I try to export a report to Excel, ODS and text format. The reports display fine onscreen, but unable to export it...and this occurs with all our reports.


Any help would be appreciated...


Thx!Export to excel error

Average of ratings: -
In reply to Lyor Bensoussan

Re: Error when trying to download report to Excel

by Lyor Bensoussan -

The error seems to point to this block...however, am not all that familiar with PHP. Does anyone see something off with this?


/// Print the page header

if (empty($noheader)) {

    $strreport = get_string('report', 'scorm');

    $strattempt = get_string('attempt', 'scorm');

    $PAGE->set_title("$course->shortname: ".format_string($scorm->name));

    $PAGE->set_heading($course->fullname);

    $PAGE->navbar->add($strreport, new moodle_url('/mod/scorm/report.php', array('id'=>$cm->id)));

    echo $OUTPUT->header();

    echo $OUTPUT->heading(format_string($scorm->name)); 

    $currenttab = 'reports';

    require($CFG->dirroot . '/mod/scorm/tabs.php');

}

In reply to Lyor Bensoussan

Re: Error when trying to download report to Excel

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

The error is nothing to do with this block. It mentions mod/scorm/report.php, so it is something to do with the SCORM activity.