I have turned on debug and the error on posting is
POST http://www.mydomain.com/api/discussions
<br />
<b>Parse error</b>: syntax error, unexpected ':', expecting ';' or '{' in <b>/home/mydomain/public_html/vendor/doctrine/inflector/lib/Doctrine/Common/Inflector/Inflector.php</b> on line <b>265</b><br />
This is the code from Inflector.php
public static function tableize(string $word) : string //line 265
{
return strtolower(preg_replace('~(?<=\\w)([A-Z])~', '_$1', $word));
}
Which from some googling appears to indicate that PHP 7 is required since the php 5.6 doesnt recognize the return type indicator.
But the required version for Flarum is 5.6 so I am a little lost.