Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error exporting .docx with the default report_img configuration #1572

Open
tofran opened this issue May 5, 2024 · 1 comment
Open

Error exporting .docx with the default report_img configuration #1572

tofran opened this issue May 5, 2024 · 1 comment

Comments

@tofran
Copy link

tofran commented May 5, 2024

By default, on new installations I cannot export an object (using the test installation [Testing] Profile for test cases)

Screenshot 2024-05-05 at 19 34 11 Screenshot 2024-05-05 at 19 31 26

Errors occurred when trying to access /index.php/editor/objects/ObjectEditor/PrintSummary: Could not generate PDF

After a long time debugging I ended up identifying that the default configuration for report_img, might be causing issues:

report_img = logo.svg

I was able to fix the problem changing it to report_img = menu_logo.png.

What I find fascinating is that this is there for a long time, but this change fixes my problem. Should the default configuration be changed?

Providence version: 1.7.17.

@collectiveaccess
Copy link
Owner

I believe the docx export libraries don't like SVG files. We swapped the old PNG logo for an SVG a couple of years ago. We'll look to sort this out in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants