Task "export_process_queue" fails on cron run
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Gold | ||
20.04 |
Fix Released
|
High
|
Unassigned | ||
20.10 |
Fix Released
|
High
|
Gold | ||
21.04 |
Fix Released
|
High
|
Gold | ||
21.10 |
Fix Released
|
High
|
Unassigned |
Bug Description
When submissions are set to be archived before being released back to the submitter, they are queued for export and an archived version is created. This processed failed for us and we were given a hint in the cron logs/output that the error was thrown at `htdocs/
Adding a `debug_
```
[INF] 35 (lib/cron.php:190) Running core cron export_
#0 PluginBlocktype
, html) called at [<siteroot>
#1 call_static_
, html) called at [<siteroot>
#2 BlockInstance-
#3 View->build_
#4 View->build_
#5 View->build_rows(, html) called at [<siteroot>
#6 PluginExportHtm
#7 PluginExportHtm
#8 PluginExportAll
#9 export_
[WAR] 35 (lib/errors.
Call stack (most recent first):
* exception(
A nonrecoverable error occurred. This probably means you have encountered a bug in the system
```
We were able to fix it by explicitly declaring `global $exporter;` in `htdocs/
It also affects portfolio exports when the "Export to queue" settings is enabled in Configure site > Site options > Account settings.
-------
Application/System version(s):
Mahara
$config->version = 2020013013;
$config->series = '20.04';
$config->release = '20.04.2';
OS
Ubuntu 18.04.5 LTS
DB
MySQL 5.7
-------
Hi Zander,
Thank you for reporting this and also providing a possible solution. We will add it to our code review system so the team can take a look. Can you please provide your email address so we can attribute it correctly? You can send it to <email address hidden>
Thank you
Kristina