I think the session is also causing problems when exporting portfolios. The exportfile is set in the $SESSION->set('exportfile', $fileurl) but $SESSION->get('exportfile') returns empty string. So it redirects to the export page when it should download the file.
I think the session is also causing problems when exporting portfolios. The exportfile is set in the $SESSION- >set('exportfil e', $fileurl) but $SESSION- >get('exportfil e') returns empty string. So it redirects to the export page when it should download the file.