mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #47392
[Bug 1757330] [NEW] Export file Session Data not saved in PHP 7.1+
Public bug reported:
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/download.php redirects back to the export/index.php file and nothing is downloaded - the progress iframe now shows the /export/index.php page.
Possible Cause:
Download.php (export/download.php) as this located at the bottom of the page (~ line 106)
$SESSION->set('exportfile', $exporter->get('exportdir') . $zipfile);
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->get('exportfile')) {
$SESSION->set('exportdata', '');
$SESSION->set('exportfile', '');
require_once('file.php');
serve_file($exportfile, basename($exportfile), 'application/x-zip', array('lifetime' => 0, 'forcedownload' => true));
exit;
}
In PHP 7.1.3 and higher - the $SESSION->get('exportfile') is empty when
the JS redirect calls this page (from the print_export_footer function)
and the session data set at the bottom of the page is not present when
the page is being loaded to get the file. (loading the /export/index.php
again will empty the exportfile data).
The export works as expected in PHP 7, but fails in PHP 7.1+.
Is Mahara 7.1+ ready?
** Affects: mahara
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1757330
Title:
Export file Session Data not saved in PHP 7.1+
Status in Mahara:
New
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/download.php redirects back to the export/index.php file and nothing is downloaded - the progress iframe now shows the /export/index.php page.
Possible Cause:
Download.php (export/download.php) as this located at the bottom of the page (~ line 106)
$SESSION->set('exportfile', $exporter->get('exportdir') . $zipfile);
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->get('exportfile')) {
$SESSION->set('exportdata', '');
$SESSION->set('exportfile', '');
require_once('file.php');
serve_file($exportfile, basename($exportfile), 'application/x-zip', array('lifetime' => 0, 'forcedownload' => true));
exit;
}
In PHP 7.1.3 and higher - the $SESSION->get('exportfile') is empty
when the JS redirect calls this page (from the print_export_footer
function) and the session data set at the bottom of the page is not
present when the page is being loaded to get the file. (loading the
/export/index.php again will empty the exportfile data).
The export works as expected in PHP 7, but fails in PHP 7.1+.
Is Mahara 7.1+ ready?
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1757330/+subscriptions
Follow ups
-
[Bug 1757330] Re: Export file Session Data not saved in PHP 7.1+
From: Cecilia Vela Gurovic, 2018-10-25
-
[Bug 1757330] Re: Export file Session Data not saved in PHP 7.1+
From: Cecilia Vela Gurovic, 2018-04-05
-
[Bug 1757330] Re: Export file Session Data not saved in PHP 7.1+
From: Robert Lyon, 2018-04-05
-
[Bug 1757330] A change has been merged
From: Mahara Bot, 2018-03-27
-
[Bug 1757330] Re: Export file Session Data not saved in PHP 7.1+
From: Cecilia Vela Gurovic, 2018-03-27
-
[Bug 1757330] Re: Export file Session Data not saved in PHP 7.1+
From: Robert Lyon, 2018-03-27
-
[Bug 1757330] Re: Export file Session Data not saved in PHP 7.1+
From: Kristina Hoeppner, 2018-03-27
-
[Bug 1757330] A change has been merged
From: Mahara Bot, 2018-03-27
-
[Bug 1757330] Re: Export file Session Data not saved in PHP 7.1+
From: Robert Lyon, 2018-03-27
-
[Bug 1757330] A patch has been submitted for review
From: Mahara Bot, 2018-03-27
-
[Bug 1757330] A patch has been submitted for review
From: Mahara Bot, 2018-03-27
-
[Bug 1757330] A patch has been submitted for review
From: Mahara Bot, 2018-03-27
-
[Bug 1757330] A change has been merged
From: Mahara Bot, 2018-03-27
-
[Bug 1757330] Re: Export file Session Data not saved in PHP 7.1+
From: Cecilia Vela Gurovic, 2018-03-27
-
[Bug 1757330] Re: Export file Session Data not saved in PHP 7.1+
From: Robert Lyon, 2018-03-27
-
[Bug 1757330] Re: Export file Session Data not saved in PHP 7.1+
From: Robert Lyon, 2018-03-26
-
[Bug 1757330] Re: Export file Session Data not saved in PHP 7.1+
From: Robert Lyon, 2018-03-25
-
[Bug 1757330] A patch has been submitted for review
From: Mahara Bot, 2018-03-25