Here a little dirty hack which we temporarily implemented on our Ubuntu 20.10 LTS system, to make PDF export work.
In file htdocs/export/pdf/lib.php insert following code before line 194 (before command "$browserFactory = new BrowserFactory($browsertype);") $browsertype = '/snap/chromium/current/usr/lib/chromium-browser/chrome'; See also https://askubuntu.com/questions/1286660/how-to-get-the-snap- based-chromium-to-access-a-separately-mounted-filesystem for more informations. Cheers Alex -- 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/1906123 Title: PDF export not generated under Ubuntu 20.04 Status in Mahara: Triaged Bug description: From https://mahara.org/interaction/forum/topic.php?id=8653 and https://mahara.org/interaction/forum/topic.php?id=8652 enabled PDF export plugin in my site, System didn't report any errors. When I export my pages , in "Export your portfolio" page, system stopped at "Please wait while your export is being generated..." and "Copying extra files" for long long time, but system do not report any errros also. In server "dataroot" directory, "HTML" directory have some generated files ,but "PDF" directory is empty. If I disabled PDF export plugin in my site, then exporting pages can be finished normally. dpkg: warning: failed to open configuration file '/root/.dpkg.cfg' for reading: Permission denied [Tue Jul 14 06:57:29.232825 2020] [php7:notice] [pid 109769] [client 172.18.40.239:60056] [WAR] 7d (lib/errors.php:536) [RuntimeException]: Chrome process stopped before startup completed. Additional info: /usr/bin/chromium-browser: 12: xdg-settings: not found, referer: http://172.18.39.185/export/index.php [Tue Jul 14 06:57:29.232899 2020] [php7:notice] [pid 109769] [client 172.18.40.239:60056] [WAR] 7d (lib/errors.php:536) cmd_run.go:918: WARNING: cannot create user data directory: cannot create "/usr/sbin/snap/chromium/1213": mkdir /usr/sbin/snap: permission denied, referer: http://172.18.39.185/export/index.php [Tue Jul 14 06:57:29.232920 2020] [php7:notice] [pid 109769] [client 172.18.40.239:60056] [WAR] 7d (lib/errors.php:536) cannot create user data directory: /usr/sbin/snap/chromium/1213: Permission denied at /apps/mahara/htdocs/lib/chrome-php/headless-chromium-php-master/src/Browser/BrowserProcess.php:379, referer: http://172.18.39.185/export/index.php [Tue Jul 14 06:57:29.232946 2020] [php7:notice] [pid 109769] [client 172.18.40.239:60056] Call stack (most recent first):, referer: http://172.18.39.185/export/index.php [Tue Jul 14 06:57:29.232982 2020] [php7:notice] [pid 109769] [client 172.18.40.239:60056] * exception(object(RuntimeException)) at Unknown:0, referer: http://172.18.39.185/export/index.php [Tue Jul 14 06:57:29.232999 2020] [php7:notice] [pid 109769] [client 172.18.40.239:60056] , referer: http://172.18.39.185/export/index.php In my Ubuntu Server 20.04, I installed chromium-browser, It was installed as a "snap" package, How to config it fot Mahara system? This could be related to the new structure where snap wants to save files. First try: install with the '--classic' flag, but that's not a long-term solution. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1906123/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~mahara-contributors Post to : [email protected] Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp

