Every time I create a new discussion or post that is not flagged it Says this in the red window "Oops! Something went wrong. Please reload the page and try again." and under Debug it gives a 201 Created with the following:
POST http://mytestdomain.com/discussions/api/posts
<br />
<b>Warning</b>: preg_match(): Delimiter must not be alphanumeric or backslash in <b>F:\Server\Websites\mytestdomain\discussions\vendor\issyrocks12\flarum-ext-filter\src\Listener\FilterPosts.php</b> on line <b>77</b><br />
<br />
<b>Warning</b>: preg_match(): Delimiter must not be alphanumeric or backslash in <b>F:\Server\Websites\mytestdomain\discussions\vendor\issyrocks12\flarum-ext-filter\src\Listener\FilterPosts.php</b> on line <b>77</b><br />
<br />
<b>Warning</b>: preg_match(): Delimiter must not be alphanumeric or backslash in <b>F:\Server\Websites\mytestdomain\discussions\vendor\issyrocks12\flarum-ext-filter\src\Listener\FilterPosts.php</b> on line <b>77</b><br />
<br />
<b>Warning</b>: preg_match(): Delimiter must not be alphanumeric or backslash in <b>F:\Server\Websites\mytestdomain\discussions\vendor\issyrocks12\flarum-ext-filter\src\Listener\FilterPosts.php</b> on line <b>77</b><br />
{"data":{"type":"posts","id":"315","attributes":{"id":315,"number":2,"time":"2017-04-26T22:18:17+00:00","contentType":"comment","contentHtml":"\u003Cp\u003Ehey man\u003C\/p\u003E","content":"hey man","ipAddress":"****","canEdit":true,"canDelete":true,"isApproved":true,"canApprove":true,"canFlag":true,"flarum-ext-summaries.excerpt_length":""},"relationships":{"user":{"data":{"type":"users","id":"1"}},"discussion":{"data":{"type":"discussions","id":"70"}},"mentionsPosts":{"data":[]},"upvotes":{"data":[{"type":"users","id":"1"}]},"downvotes":{"data":[]}}},"included":[{"type":"users","id":"1","attributes":{"username":"User-Name","avatarUrl":"http:\/\/mytestdomain.com\/discussions\/assets\/avatars\/v3s2a1g0wzxmgflc.jpg","bio":"User Bio ","joinTime":"2016-06-13T03:33:20+00:00","discussionsCount":21,"commentsCount":2,"canEdit":true,"canDelete":true,"lastSeenTime":"2017-04-26T22:18:17+00:00","isActivated":true,"email":"useremail@gmail.com","antoinefr-money.money":3.96,"canEditMoney":true,"Points":-7,"Rank":"","canActivate":true,"canViewStrike":true,"strikes":null,"gender":null,"age":null,"signature":null,"socialButtons":null,"flarum-ext-summaries.excerpt_length":"","canSuspend":false}},{"type":"discussions","id":"70","attributes":{"title":"Test","slug":"test","commentsCount":2,"participantsCount":1,"startTime":"2017-04-26T22:16:24+00:00","lastTime":"2017-04-26T22:18:17+00:00","lastPostNumber":2,"canReply":true,"canRename":true,"canDelete":true,"canHide":true,"readTime":"2017-04-26T22:18:17+00:00","readNumber":2,"isApproved":true,"canSelectBestAnswer":true,"startUserId":1,"canEditRecipients":true,"canEditUserRecipients":true,"canEditGroupRecipients":true,"isLocked":false,"canLock":true,"canVote":true,"canStrike":true,"canSplit":true,"isSticky":false,"canSticky":true,"subscription":false,"flarum-ext-summaries.excerpt_length":"","canTag":true},"relationships":{"posts":{"data":[{"type":"posts","id":"314"},{"type":"posts","id":"315"}]},"lastUser":{"data":{"type":"users","id":"1"}}}}]}
Once I refresh the page, the post is then made. I also get another 201 Created thrown for any other filtered word other than the first one on my list.
POST http://mydomainname.com/flaruminstalldirectory/api/posts
<br />
<b>Warning</b>: preg_match(): Delimiter must not be alphanumeric or backslash in <b>F:\Server\Websites\mydomainname\flaruminstalldirectory\vendor\issyrocks12\flarum-ext-filter\src\Listener\FilterPosts.php</b> on line <b>77</b><br />
{"data":{"type":"posts","id":"318","attributes":{"id":318,"number":5,"time":"2017-04-26T22:39:46+00:00","contentType":"comment","contentHtml":"\u003Cp\u003Esons\u003C\/p\u003E","content":"sons","ipAddress":"*******","canEdit":true,"canDelete":true,"isApproved":false,"canApprove":true,"canFlag":true,"flarum-ext-summaries.excerpt_length":""},"relationships":{"user":{"data":{"type":"users","id":"1"}},"discussion":{"data":{"type":"discussions","id":"70"}},"mentionsPosts":{"data":[]},"upvotes":{"data":[{"type":"users","id":"1"}]},"downvotes":{"data":[]}}},"included":[{"type":"users","id":"1","attributes":{"username":"User-Name","avatarUrl":"http:\/\/mydomainname.com\/flaruminstalldirectory\/assets\/avatars\/v3s2a1g0wzxmgflc.jpg","bio":"User Bio ","joinTime":"2016-06-13T03:33:20+00:00","discussionsCount":21,"commentsCount":5,"canEdit":true,"canDelete":true,"lastSeenTime":"2017-04-26T22:39:45+00:00","isActivated":true,"email":"useremail@gmail.com","antoinefr-money.money":5.94,"canEditMoney":true,"Points":-4,"Rank":"","canActivate":true,"canViewStrike":true,"strikes":null,"gender":null,"age":null,"signature":null,"socialButtons":null,"flarum-ext-summaries.excerpt_length":"","canSuspend":false}},{"type":"discussions","id":"70","attributes":{"title":"Test","slug":"test","commentsCount":3,"participantsCount":1,"startTime":"2017-04-26T22:16:24+00:00","lastTime":"2017-04-26T22:22:11+00:00","lastPostNumber":3,"canReply":true,"canRename":true,"canDelete":true,"canHide":true,"readTime":"2017-04-26T22:39:49+00:00","readNumber":5,"isApproved":true,"canSelectBestAnswer":true,"startUserId":1,"canEditRecipients":true,"canEditUserRecipients":true,"canEditGroupRecipients":true,"isLocked":false,"canLock":true,"canVote":true,"canStrike":true,"canSplit":true,"isSticky":false,"canSticky":true,"subscription":false,"flarum-ext-summaries.excerpt_length":"","canTag":true},"relationships":{"posts":{"data":[{"type":"posts","id":"314"},{"type":"posts","id":"315"},{"type":"posts","id":"316"},{"type":"posts","id":"317"},{"type":"posts","id":"318"}]},"lastUser":{"data":{"type":"users","id":"1"}}}}]}
The word entered that flagged this post was "sons"
After refreshing the page the post is shown as flagged
If you press post reply more than once before refreshing, it will post duplicate flagged posts