Hi,
Hope you don't mind me jumping in with what I have so far with regards to PHP 7.
I am running PHP 7 and just got an install of Flarum completed. However when I visit my install, I get a PHP error of:
"Notice: Undefined property: stdClass::$data in vendor/flarum/core/src/Http/Controller/ClientView.php on line 326".
All I see is a blank screen with the forum title. When I visit the admin section, I also get just a blank screen, with the forum title displayed.
I get a JS error on the homepage:
"Uncaught TypeError: Cannot read property 'type' of null" in forum-f16548b8.js on line 30960.
On the admin page I get a JS error:
"Uncaught TypeError: Cannot read property 'type' of null" in admin-5f915cfe.js on line 21840.
Inside ClientView.php I changed the getDataFromDocument() method on line 325(ish) to the following:
protected function getDataFromDocument($document)
{
$data = [];
if (!empty($document->data)) {
$data[] = $document->data;
}
if (isset($document->included)) {
$data = array_merge($data, $document->included);
}
return $data;
}
Doing the above fixed the admin area, but the issue on the homepage remains.
Hope that's helpful to anyone with the same issue. I'm still looking at the homepage problem.