Reviewed: https://reviews.mahara.org/11923 Committed: https://git.mahara.org/mahara/mahara/commit/10bfdf898dff1e02060adb791ca44d828cdf6fb5 Submitter: Robert Lyon ([email protected]) Branch: master
commit 10bfdf898dff1e02060adb791ca44d828cdf6fb5 Author: Doris Tam <[email protected]> Date: Tue Aug 17 11:27:12 2021 +1200 Bug 1939471: Match requirement for font licence file to db. Not all Google font zip files come with a licence file. Our database table 'skin_fonts' doesn't have a constraint for either so I've eased the logic to match. Otherwise, the form will throw an error complaining about licence values missing. Change-Id: I63801d017ad3fa89e4ab2e2f9c375f46b10fdb17 -- 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/1939471 Title: Font upload results in warning Status in Mahara: Fix Committed Bug description: The upload of a font results in the following warning: [WAR] 5d (admin/site/font/install.php:326) Trying to access array offset on value of type null Call stack (most recent first): log_message("Trying to access array offset on value of type nul...", 8, true, true, "/home/kristina/code/mahara/htdocs/admin/site/font/...", 326) at /home/kristina/code/mahara/htdocs/lib/errors.php:521 error(8, "Trying to access array offset on value of type nul...", "/home/kristina/code/mahara/htdocs/admin/site/font/...", 326, array(size 20)) at /home/kristina/code/mahara/htdocs/admin/site/font/install.php:326 addfontform_submit(object(Pieform), array(size 15)) at /home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:568 Pieform->__construct(array(size 4)) at /home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:168 Pieform::process(array(size 4)) at /home/kristina/code/mahara/htdocs/lib/mahara.php:5452 pieform(array(size 4)) at /home/kristina/code/mahara/htdocs/admin/site/font/install.php:136 ----------------- To replicate: 1. Go to Admin menu -> Configure site -> Fonts -> Install font. 2. Follow the instructions for uploading a Google font and upload the Zip file. Expected result: The font is installed without error messages. Actual result: The font is installed but an error message is produced. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1939471/+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

