Export file Session Data not saved in PHP 7.1+
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Robert Lyon | ||
17.04 |
Won't Fix
|
High
|
Unassigned | ||
17.10 |
Fix Released
|
High
|
Unassigned | ||
18.04 |
Fix Released
|
High
|
Robert Lyon | ||
18.10 |
Fix Released
|
High
|
Robert Lyon |
Bug Description
Mahara 17.10.3 (alo occurs on Mahara 17.10.0)
Operating system: Ubuntu, apache2, PHP 7.1.8 (also occurs on PHP 7.1.15 and PHP 7.1.3)
Database; MySQL
Browser: Chrome.
Exporting files in Mahara
/export/index.php
Export Either LEAP file or Standalone HTML
click Generate Export
in the iframe - the /export/
Possible Cause:
Download.php (export/
$SESSION-
At the top of the page it checks to see if this session data exists - and if so - to force the download of the file.
line 17:
if ($exportfile = $SESSION-
$SESSION-
$SESSION-
require_
serve_
exit;
}
In PHP 7.1.3 and higher - the $SESSION-
The export works as expected in PHP 7, but fails in PHP 7.1+.
Is Mahara 7.1+ ready?
Patch for "master" branch: https:/ /reviews. mahara. org/8712