Jump to content

Bug with Word Filter and Tags in 4.1.17?


Recommended Posts

Currently I have a very small word filter - just a few curse words (with the f-word being the only "loose" one).

I've gotten a few emails lately about members having trouble starting threads, so I logged in as one and created a thread. This member said he was trying to create a poll, so I added a poll, and reflexively added tags. The tags were "test" and "testing" and the subject was "test" and the poll questions/answers were something like "what the heck?" and "you know it". Simple stuff.

I got this back:

ErrorException: Object of class IPS\core\Profanity could not be converted to string (4096)
#0 [internal function]: IPS\IPS::errorHandler(4096, 'Object of class...', '/var/www/html/s...', 394, Array)
#1 /var/www/html/system/Helpers/Form/Text.php(394): str_ireplace(Array, Array, 'Object')
#2 /var/www/html/system/Helpers/Form/FormAbstract.php(166): IPS\Helpers\Form\_Text->validate()
#3 /var/www/html/system/Helpers/Form/FormAbstract.php(143): IPS\Helpers\Form\_FormAbstract->setValue(true)
#4 [internal function]: IPS\Helpers\Form\_FormAbstract->__construct('topic_tags', Array, false, Array, Object(Closure))
#5 /var/www/html/system/Helpers/Form/TextArea.php(61): call_user_func_array('parent::__const...', Array)
#6 [internal function]: IPS\Helpers\Form\_TextArea->__construct('topic_tags', Array, false, Array, Object(Closure))
#7 /var/www/html/system/Helpers/Form/Text.php(107): call_user_func_array('parent::__const...', Array)
#8 /var/www/html/system/Content/Item.php(788): IPS\Helpers\Form\_Text->__construct('topic_tags', Array, false, Array, Object(Closure))
#9 /var/www/html/system/Content/Item.php(582): IPS\Content\_Item::tagsFormField(NULL, Object(IPS\forums\Forum))
#10 /var/www/html/init.php(443) : eval()'d code(191): IPS\Content\_Item::formElements(NULL, Object(IPS\forums\Forum))
#11 /var/www/html/init.php(443) : eval()'d code(15): IPS\Content\rules_hook_ipsContentItem::formElements(NULL, Object(IPS\forums\Forum))
#12 /var/www/html/applications/forums/sources/Topic/Topic.php(385): IPS\Content\hook81::formElements(NULL, Object(IPS\forums\Forum))
#13 /var/www/html/system/Content/Item.php(101): IPS\forums\_Topic::formElements(NULL, Object(IPS\forums\Forum))
#14 /var/www/html/system/Content/Item.php(58): IPS\Content\_Item::buildCreateForm(Object(IPS\forums\Forum))
#15 /var/www/html/applications/forums/modules/front/forums/forums.php(437): IPS\Content\_Item::create(Object(IPS\forums\Forum))
#16 [internal function]: IPS\forums\modules\front\forums\_forums->add()
#17 /var/www/html/system/Dispatcher/Controller.php(85): call_user_func(Array)
#18 /var/www/html/system/Dispatcher/Dispatcher.php(129): IPS\Dispatcher\_Controller->execute()
#19 /var/www/html/index.php(13): IPS\_Dispatcher->run()
#20 {main}

Yesterday after installing 4.1.17 a moderator tried out the "edit tags" functionality and reported that it didn't work. This morning he reported that he was unable to submit a new thread with tags.

So I went back, removed the tags, and submitted the post as the test user, and it went through. The difference was that I removed the tags.

So, is anyone else seeing this? I have tags enabled, and before this the only member group that could bypass the word filter was admins. I've since expanded that to every user group temporarily as that seems to allow the site to work properly around this bug.

Link to comment
Share on other sites

1 hour ago, iacas said:

I'll do so now. I was mostly checking to see if others could reproduce the issue.

Apparently it's a known issue of sorts:


Hi Erik,

We are preparing an update for 4.1.17 that contains a fix for this issue, we expect it to be available within the next few days.

That's the response in my support ticket.


Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...