Issue Details (XML | Word | Printable)

Key: MDL-14971
Type: Bug Bug
Status: Resolved Resolved
Resolution: Duplicate
Priority: Critical Critical
Assignee: Jamie Pratt
Reporter: Joseph Rézeau
Votes: 1
Watchers: 1
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Quiz results export to Excel does not work

Created: 24/May/08 06:00 PM   Updated: 01/Jun/08 09:15 PM
Return to search
Component/s: Quiz
Affects Version/s: 1.9.1
Fix Version/s: 1.9.2

Issue Links:
Duplicate
 

Participants: Jamie Pratt, Joseph Rézeau, Pierre Pichet and Stephan Goeldi
Security Level: None
Resolved date: 30/May/08
Affected Branches: MOODLE_19_STABLE
Fixed Branches: MOODLE_19_STABLE


 Description  « Hide
Quiz results export to Excel does not work.
Produces the following error messages:

Warning: Cannot modify header information - headers already sent by (output started at moodle\question\type\regexp\expandregexp.php:524) in moodle\lib\pear\Spreadsheet\Excel\Writer.php on line 67

Warning: Cannot modify header information - headers already sent by (output started at moodle\question\type\regexp\expandregexp.php:524) in moodle\lib\pear\Spreadsheet\Excel\Writer.php on line 68

Warning: Cannot modify header information - headers already sent by (output started at moodle\question\type\regexp\expandregexp.php:524) in moodle\lib\pear\Spreadsheet\Excel\Writer.php on line 69

Warning: Cannot modify header information - headers already sent by (output started at moodle\question\type\regexp\expandregexp.php:524) in moodle\lib\pear\Spreadsheet\Excel\Writer.php on line 70

Warning: Cannot modify header information - headers already sent by (output started at moodle\question\type\regexp\expandregexp.php:524) in moodle\lib\pear\Spreadsheet\Excel\Writer.php on line 71

Notice: Undefined variable: table in moodle\mod\quiz\report\overview\report.php on line 355

Fatal error: Call to a member function get_sql_sort() on a non-object in moodle\mod\quiz\report\overview\report.php on line 355

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Pierre Pichet added a comment - 25/May/08 08:31 PM
Work is current done by Jamie Pratt on the reports.MDL-14197
It works correctly in Head.
So I assign this to jamie

Pierre Pichet added a comment - 25/May/08 08:38 PM
Effectively not working on 1.9 build 20080524 with one exception there is a excel file created but it just contains the following cell
<b>Fatal error</b>: Call to a member function get_sql_sort() on a non-object in <b>C:\moodle\moodle\site\moodle_19\mod\quiz\report\overview\report.php</b> on line <b>355</b><br />

Stephan Goeldi added a comment - 29/May/08 02:33 PM
1. There is a problem with regexp. Remove this question type and header errors where fixed.
2. The excel file with only one cell, like Pierre Pichet is reporting still exist and need to be fixed!

Stephan Goeldi added a comment - 30/May/08 05:04 PM
There's a patch for export
http://tracker.moodle.org/browse/MDL-15047

Jamie Pratt added a comment - 30/May/08 08:19 PM
Going to close this bug as it is a duplicate and the other bug has a patch attached.

Joseph Rézeau added a comment - 01/Jun/08 09:15 PM
Stephan Goeldi - 29/May/08 02:33 PM wrote : 1. There is a problem with regexp. Remove this question type and header errors where fixed.
There was indeed a problem of empty lines at the end of file expandregexp.php, which I have removed and all is back to normal now.
Joseph