In PHP 8.2+, some extensions, such as likes and sticky, are throwing errors.
Hello everyone, I encountered a problem when I installed Flarum. Some extensions, such as likes and sticky, would throw an error when I clicked the corresponding button in the foreground. However, after refreshing the page, I found that the extension's operation was actually working, whether it was likes or sticky.
Therefore, I asked AI to help me debug it, and the AI concluded that it was a problem with the PHP version:
This problem is caused by PHP version incompatibility:
PHP 8.2+ compatibility issue: Your server may be running PHP 8.2 or later, which disables dynamic property creation, but Flarum's Likes extension has not been updated in time.
So I reinstalled PHP 8.1, and everything worked fine.
I don't know much about programming, so I'm here to report this issue. This post was translated into English using Google Translate, so there might be some grammatical errors. Please forgive me.
Flarum information
PHP:8.2.28
Flarum:1.8.12