On a fresh Flarum 2.0.0-rc.8 install, saving an Akismet API key fails with:
Oops! Something went wrong. Please reload the page and try again.
Log shows:
TypeError: Flarum\Akismet\Akismet::__construct(): Argument #1 ($apiKey) must be of type string, null given
Findings:
- rc.5 and earlier: saves fine.
- rc.6+: always fails, but only on a fresh install that's never had a key saved before. An older forum upgraded after Akismet was already configured has no issue.
This showed up around the same time as PR #4884, which changed how Akismet handles the API key — not sure if it's related, just flagging it in case it's useful.
Workarounds:
Then php flarum cache:clear. Admin panel works fine afterward, even back on rc.8.
Environment: Flarum rc.8 (also rc.6, rc.7)