I just installed Flarum on XAMPP having the following configurations
Apache/2.4.29 (Win32) OpenSSL/1.1.0g PHP/7.2.0
10.1.29-MariaDB
Flarum version 0.1.0-beta.7
Composer 1.5.6
After Installation, Flarum opened up and I was able to navigate to Admin panel and change some style settings and added a logo successfully.
Then I clicked the start a discussion button and I entered the post title, Content and Tag (General)
Then suddenly an error message comes up saying Something went Wrong; Please refresh the page.
The I reloaded the page and I get this error message and nothing else
Warning: count(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\connect\forum\vendor\flarum\core\src\Core\Post\RegisteredTypesScope.php on line 52
Fatal error: Uncaught RuntimeException: Output has been emitted previously; cannot emit response in C:\xampp\htdocs\connect\forum\vendor\zendframework\zend-diactoros\src\Response\SapiEmitterTrait.php:31 Stack trace: #0 C:\xampp\htdocs\connect\forum\vendor\zendframework\zend-diactoros\src\Response\SapiEmitter.php(27): Zend\Diactoros\Response\SapiEmitter->assertNoPreviousOutput() #1 C:\xampp\htdocs\connect\forum\vendor\zendframework\zend-diactoros\src\Server.php(162): Zend\Diactoros\Response\SapiEmitter->emit(Object(Zend\Diactoros\Response)) #2 C:\xampp\htdocs\connect\forum\vendor\flarum\core\src\Http\AbstractServer.php(36): Zend\Diactoros\Server->listen(Object(Zend\Stratigility\NoopFinalHandler)) #3 C:\xampp\htdocs\connect\forum\index.php(16): Flarum\Http\AbstractServer->listen() #4 {main} thrown in C:\xampp\htdocs\connect\forum\vendor\zendframework\zend-diactoros\src\Response\SapiEmitterTrait.php on line 31
Then I tried Re Installing the forum by clearing everything and still get the same error.
I also tried uninstalling and clearing the whole XAMPP directory and reinstalling XAMPP and then Flarum using Composer. Still no luck.
please help we are trying to incorporate flarum to our educational institution website and we are running out of time.