Incorrect root path for export of profileicon by id

Bug #1998725 reported by Robert Lyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
21.10
Fix Released
High
Unassigned
22.04
Fix Released
High
Unassigned

Bug Description

We sometimes get this error when doing an HTML (or PDF) export

   * log_message("Undefined property: HtmlExportOutputFilter::$rootd...", 8, true, true, "/home/robertl/code/mahara-devel/mahara/htdocs/expo...", 1652)
   * error(8, "Undefined property: HtmlExportOutputFilter::$rootd...", "/home/robertl/code/mahara-devel/mahara/htdocs/expo...", 1652, array(size 9))
   * HtmlExportOutputFilter->replace_thumbnail_link(array(size 4))

To test:
Create a person and add a profile icon to the person
Create a page and add comment to the page
Export the person

Expected result
 In report bar the message - Export generated successfully.

Actual result
 In report bar the message - Export generated with some errors.

Robert Lyon (robertl-9)
no longer affects: mahara
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/c/mahara/+/13541
Committed: https://git.mahara.org/mahara/mahara/commit/e92e6d172df04b02aa4e2daf7ee4e4fc2e9f8513
Submitter: "Robert Lyon <email address hidden>"
Branch: 22.04_DEV

commit e92e6d172df04b02aa4e2daf7ee4e4fc2e9f8513
Author: Robert Lyon <email address hidden>
Date: Mon Dec 5 13:06:09 2022 +1300

Bug 1998725: Correcting path to profile icon in HTML export

The rootdir value was not fetched correctly

Change-Id: I817af27606a94c4edfb3966cf93b85d12b041b60
Signed-off-by: Robert Lyon <email address hidden>

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "21.10_DEV" branch: https://reviews.mahara.org/c/mahara/+/13542

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/c/mahara/+/13542
Committed: https://git.mahara.org/mahara/mahara/commit/71c8e78b45c4be05476844d8388712c22f897041
Submitter: "Robert Lyon <email address hidden>"
Branch: 21.10_DEV

commit 71c8e78b45c4be05476844d8388712c22f897041
Author: Robert Lyon <email address hidden>
Date: Mon Dec 5 13:06:09 2022 +1300

Bug 1998725: Correcting path to profile icon in HTML export

The rootdir value was not fetched correctly

Change-Id: I817af27606a94c4edfb3966cf93b85d12b041b60
Signed-off-by: Robert Lyon <email address hidden>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.