In Theme Creator, exporting themes results in a white screen

AI-generated summary

Users reported that exporting themes in Theme Creator results in a white screen. kairo162 initially described the issue, while Lilly confirmed it was reproducible on mobile but not on desktop, with no console errors observed. Further investigation by tannerabread identified that the problem occurred specifically in Progressive Web App (PWA) environments and Discourse Hub, whereas Safari on iOS functioned correctly.

tannerabread implemented a fix for the PWA environment, which was merged via PR #42454. Subsequent updates addressed the remaining issues in Discourse Hub. As of version 2.2.4, tannerabread confirmed that theme downloads now work across all iOS access methods, including Safari, PWA, and Discourse Hub.

I’m having an issue when exporting a theme. Anytime I try to export a theme by clicking the export button it takes me to a white screen.

2 Likes

i can reproduce this but only on mobile - it brings up the mobile download modal, loads the blank screen with no way to go back whether one downloads the file or not.

i cannot reproduce this on desktop - it works as expected for me and pops up the download modal then returns to the theme page.

not seeing any console errors.

4 Likes

@kairo162 @Lilly is this happening solely on PWA? On my own phone I was able to recreate as a PWA but in Safari it works as expected.

1 Like

that was 2 months ago and i don’t really remember- i think it wasn’t just pwa so maybe it is fixed by now :woman_shrugging:t2:

3 Likes

Yeah, it’s kinda getting old.

team is busy and they have to prioritize bugs. mobile theme creator isn’t something that affects core discourse functionality.

2 Likes

I had done a little research on this related to the PWA and it looked like we needed to handle it differently in that environment. I will have to do some more testing to try to reproduce on safari or discourse hub.

I’m planning to look into this next week, sorry for the delay.

@kairo162 was your original screenshot on Safari? Or on iOS? Or was it not specific to any environment and you see it often

1 Like

I did a bit of work here, and was able to fix the problem for the PWA. Will be merging soon after all the tests on CI pass.

I could not reproduce the issue on Safari on iOS, only the PWA and Hub. The Hub will need a little additional work on the Hub itself — I will do a follow-up to try to fix it there.

2 Likes

It took me a little while to get around to this but the changes for Discourse Hub are live with the most recent version 2.2.4. With this update, downloads should work across iOS no matter which way the community is accessed (Safari, PWA, Discourse Hub).

3 Likes