Possible bug in Reports module?
-
Hey Guys, I think there may be a bug relating to pathing in the reports module in v4.2.x.
When I created a report and ran it, it came up in the logs that it couldn't find /images/logo.png
It seems to be trying to use an absolute path of /images/ instead of a relative path, as I created a sym-link /images/logo.png and linked it to /opt/mango/web/images/logo.png and that fixed the issue.
I don't think everyone would be keen to put a symlink in their root filesystem.I don't suppose that path would be settable anywhere in the GUI?
Cheers
Dan -
The reports module is not supported in v4. How did you load the module?
-
@craigweb sorry by reports module I mean excelReports module.
Cheers
-
Hey Dan. Thanks for reporting this. This is a bug, we will get a fix out soon.
Thanks,
-Jared -
@jared-wiltshire thanks Jared.
-
@dan said in Possible bug in Reports module?:
@jared-wiltshire thanks Jared.
No problem, I have committed a fix which will be included in the next Mango core release. The bug was in the core, not the module.
As an alternative work-around you could override or create a new email template .ftl file and replace the
<@img logo="true"/>
with<@img src="logo.png"/>
To create a new email template for your Excel report -
- Copy the supplied template to your overrides, e.g.
cp /opt/mango/web/modules/excelReports/resources/ftl/excelReports/reportEmailBody.ftl /opt/mango-data/overrides/ftl/excelReports/myTemplate.ftl
- Restart Mango
- Edit your report to use the new template file
- Copy the supplied template to your overrides, e.g.