If Flarum isn't installing or working as expected, the first thing you should do is check again whether your environment meets the system requirements. If you're missing something that Flarum needs to run, you'll need to remedy that first.
Next, you should take a few minutes to search the Support forum and the issue tracker. It's possible that someone has already reported the problem, and a fix is either available or on the way. If you've searched thoroughly and can't find any information about the problem, it's time to start troubleshooting.
Before you proceed, you should enable Flarum's debugging tools. Simply open up config.php with a text editor, change the debug
value to true
, and save the file. This will cause Flarum to display detailed error messages, giving you an insight into what's going wrong.
If you've been seeing blank pages and the above change doesn't help, try setting display_errors
to On
in your php.ini configuration file.
A lot of issues can be fixed with the following:
php flarum cache:clear
.php flarum migrate
.config.php
is correct. For instance, make sure that the right url
is being used (https
vs http
and case sensitivity matter here!).You'll also want to take a look at the output of php flarum info
to ensure that nothing major is out of place.
Try to make the problem happen again. Pay careful attention to what you're doing when it occurs. Does it happen every time, or only now and then? Try changing a setting that you think might affect the problem, or the order in which you're doing things. Does it happen under some conditions, but not others?
If you've recently added or updated an extension, you should disable it temporarily to see if that makes the problem go away. Make sure all of your extensions were meant to be used with the version of Flarum you're running. Outdated extensions can cause a variety of issues.
Somewhere along the way you may get an idea about what's causing your issue, and figure out a way to fix it. But even if that doesn't happen, you will probably run across a few valuable clues that will help us figure out what's going on, once you've filed your bug report.
If it looks like you're going to need help solving the problem, it's time to get serious about collecting data. Look for error messages or other information about the problem in the following places:
/var/log/nginx/error.log
)/var/log/php8.x-fpm.log
)storage/logs
)Copy any messages to a text file and jot down a few notes about when the error occurred, what you were doing at the time, and so on. Be sure to include any insights you may have gleaned about the conditions under which the issue does and doesn't occur. Add as much information as possible about your server environment: OS version, web server version, PHP version and handler, et cetera.
Once you have gathered all the information you can about the problem, you're ready to file a bug report. Please follow the instructions on Reporting Bugs.
If you discover something new about the issue after filing your report, please add that information at the bottom of your original post. It's a good idea to file a report even if you have solved the problem on your own, since other users may also benefit from your solution. If you've found a temporary workaround for the problem, be sure to mention that as well.