Free Flarum hosting on an expert platform by FreeFlarum.com
Can you check the browser console (javascript and network) to check if it's a CSRF token related issue? (400 status code with csrf_token_mismatch
in response body) Or if there's an actual javascript or 500 error happening?
CSRF issues (expiration) can happen when you keep your browser open for a very long time or reconnect with a different account in a different tab. If there's still an issue after a page refresh it's likely not this and there should be a javascript or PHP error message to work from.
SKevo was able to consistently reproduce it.
https://community.sheetgo.com/d/99-account-switch-test
Which is the best repo to report as a bug?
https://github.com/orgs/flarum/repositories
When? I haven't tested it, I worked with information that you gave me, which isn't enough for Flarum to fix the issue. Before you proceed, we need to have an output of your console or logs, as me and clarkwinkelmann told you
clarkwinkelmann SKevo sorry overlooked the comment about the logs.
This is the output whenever I try to post from my Admin account after I performed an account switch and reloaded the page:
orschiro ok so it looks like a 500 error. There should be something logged in the FreeFlarum logs page. You might also be able to see more details in the browser dev tools under network tab, though if debug mode is disabled, it probably won't say much. Since I don't think you can enable debug mode on FreeFlarum, the best place to check next is the page SKevo linked above:
- Edited
clarkwinkelmann here are the logs. Let me know if they are helpful, thanks!
gist.github.com/orschiro/18c3e5a184c476ed040508baacbcc901
orschiro I am not sure how Flarum handles outgoing E-mails under the hood, but the error messages that you have linked clearly point to an issue with your Gmail account's credentials. Please, verify that first. If they're correct and changing them doesn't fix the issue, we can move on to investigate it further.
orschiro I can log in and even post after reloading the page? It just doesn't allow me to post on the first attempt.
When you post Flarum immediately after storing the post to the database sends out the emails to subscribers. If this fails it will throw an error. The post is still saved but won't be shown due to the error. Refreshing the page will then correctly render the post.
orschiro If I don't switch accounts, then I can post properly as well.
It just happens once I switch accounts.
This probably relates to the fact that the email notifications are only sent when one account posts, because the other is subscribed. In case more users are ought to receive notifications on posting, the process fails again.
Also understand that the email verification and password reset emails won't be send in case mail errors occur. So definitely hunt those, there are discussions here on Discuss on how to use Gmail as the mail provider.
Was wondering if I can request the plugin
https://discuss.flarum.org/d/23184-flarum-categories/
added
- Edited
Up2Vex it was already installed and it should be available for your forum. FYI please use https://github.com/gwillem/freeflarum.com/issues for further extension requests
- Edited
@SKevo @luceos @clarkwinkelmann you were right, my Gmail credentials on the email preferences got invalidated. Not sure how actually but must be user error somewhere.
I updated them and now it's working just fine.
Sorry for all this unnecessary troubleshooting!
Initially I got confused between Gmail credentials of the email preferences setting and my own login account (which I told you was working just fine).
Thanks for all the help!
- Edited
TB54 TeamF I have removed the default favicon for all forums. This will likely not fix the issue, but you can give it a try. I assume that it will still occur, but now just with a blank image instead of FF's default.
That's pretty much all that we can do, as this is possibly an issue with these browsers, which is not something that we can fix easily.
Note: syncing all forums right now
Hi there! I've really been struggling to host flarum myself, and have given up completely, so i thought i would just stick to FreeFlarum for now. I just have one problem, when i added the cname record to my domain registrar, the site became not secure, and i can't seem to find anything about it on google or on your documentation. Any help would be greatly appriciated!