I have created a fresh installation of Flarum 1.0.0 with no extensions other than the default ones and set up the database connection through the installer. Everything worked flawlessly, and logged in as admin I started setting up the forum. Unfortunately, when accessing the forum while NOT being logged in, I get flarum.ERROR: PDOException: SQLSTATE[HY000] [2002] Connection refused
. In the front-end, only the header is rendered and the console shows:
mount-redraw.js:15 TypeError: Cannot read property 'type' of undefined
at t.e.pushObject (Store.js:57)
at t.e.pushPayload (Store.js:37)
at e.preloadedApiDocument (Application.js:238)
at e.n.loadPage (DiscussionListState.ts:29)
at e.refresh (PaginatedListState.ts:139)
at e.refreshParams (PaginatedListState.ts:126)
at e.n.oninit (IndexPage.js:40)
at Function.a (render.js:30)
at M (render.js:917)
at render.js:153
This seems weird to me because the database connection clearly works as I could set up the forum and create test posts while being logged in as the admin. I have created another installation from scratch but this keeps happening.
Any ideas what could be causing this?