mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #67974
[Bug 1997206] Re: Portfolio pdf export not working in Mahara 22.04.3
[ISSUE FIXED]
For centos 7 -
There is an incorrect $browsertype value in public_html/export/pdf/lib.php, use 'chromium' instead of 'chromium-browser'. If we run the command 'rpm -qa | grep chromium-browser' on the terminal it through as error 'Need to have a Chrome browser installed to use the headless pdf option'.
So please use 'chromium' instead of 'chromium-browser' for pdf export.
It works for me.
Also, I installed npm & gulp on the centos server before these settings.
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1997206
Title:
Portfolio pdf export not working in Mahara 22.04.3
Status in Mahara:
New
Bug description:
After disabling the extensions pdf export & pdf lite, export is
working fine. But after enabling the same extensions the portfolio
export stops in the middle of the portfolio export.
Application detail is below:
Mahara version - 22.04.3
Server - centos 7.9
We installed headless Chrome and then we tried 'make all' & 'make
pdfexport' commands on /home/xxxxx/public_html/ through the terminal,
but not working. As Kristina Hoeppner suggested a solution on
https://mahara.org/interaction/forum/topic.php?id=8977&post35680, I
tried to follow the same process but failed to get result.
Error logs are below(path- public_html/export/error_log):
[20-Nov-2022 20:34:36 America/Adak] [WAR] a0 (export/html/lib.php:1652) Undefined property: HtmlExportOutputFilter::$rootdir
[20-Nov-2022 20:34:36 America/Adak] Call stack (most recent first):
[20-Nov-2022 20:34:36 America/Adak] * log_message(string(size 52), integer, true, true, string(size 53), integer) at /home/xxxxxxxx/public_html/lib/errors.php:515
[20-Nov-2022 20:34:36 America/Adak] * error(integer, string(size 52), string(size 53), integer, array(size 9)) at /home/xxxxxxxx/public_html/export/html/lib.php:1652
[20-Nov-2022 20:34:36 America/Adak] * HtmlExportOutputFilter->replace_thumbnail_link(array(size 4)) at Unknown:0
[20-Nov-2022 20:34:36 America/Adak] * preg_replace_callback(string(size 113), array(size 2), string(size 942)) at /home/xxxxxxxx/public_html/export/html/lib.php:1402
[20-Nov-2022 20:34:36 America/Adak] * HtmlExportOutputFilter->filter(string(size 942)) at /home/xxxxxxxx/public_html/export/html/lib.php:605
[20-Nov-2022 20:34:36 America/Adak] * PluginExportHtml->dump_view_export_data() at /home/xxxxxxxx/public_html/export/html/lib.php:274
[20-Nov-2022 20:34:36 America/Adak] * PluginExportHtml->export(false) at /home/xxxxxxxx/public_html/export/pdf/lib.php:169
[20-Nov-2022 20:34:36 America/Adak] * PluginExportPdf->export() at /home/xxxxxxxx/public_html/export/lib.php:1102
[20-Nov-2022 20:34:36 America/Adak] * PluginExportAll->export() at /home/xxxxxxxx/public_html/export/download.php:105
[20-Nov-2022 20:34:36 America/Adak]
[20-Nov-2022 20:34:36 America/Adak] [WAR] a0 (lib/errors.php:537) Need to have a Chrome browser installed to use the headless pdf option. at /home/xxxxxxxx/public_html/export/pdf/lib.php:219
[20-Nov-2022 20:34:36 America/Adak] Call stack (most recent first):
[20-Nov-2022 20:34:36 America/Adak] * exception(object(MaharaException)) at Unknown:0
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1997206/+subscriptions
References