[TAC] Stop Human Spam

[TAC] Stop Human Spam [Paid] 1.4.8

No permission to buy ($19.00)
Hi there, I am getting this error when trying to post:

preg_match_all(): Empty regular expression
  1. XenForo_Application::handlePhpError()
  2. preg_match_all() in Tac/StopHumanSpam/Model/StopHumanSpam.php at line 460
  3. Tac_StopHumanSpam_Model_StopHumanSpam->checkBannedCharType() inTac/StopHumanSpam/Model/StopHumanSpam.php at line 441
  4. Tac_StopHumanSpam_Model_StopHumanSpam->contentHasBannedWords() inTac/StopHumanSpam/ControllerPublic/Thread.php at line 50
  5. Tac_StopHumanSpam_ControllerPublic_Thread->actionAddReply() in XenForo/FrontController.php at line 351
  6. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
  7. XenForo_FrontController->run() in /home/******/public_html/community/index.php at line 13
 
after the most recent update I get this error when trying to post, I have turned off the add on for now - please advise. ver1.4.3

Screen Shot 2017-06-12 at 7.01.58 AM.webp

Code:
Error Info
ParseError: syntax error, unexpected 'public' (T_PUBLIC) - library/Tac/StopHumanSpam/Model/StopHumanSpam.php:481
Generated By: admin, 2 minutes ago
Stack Trace
#0 /home/admin/public_html/community/library/XenForo/Application.php(1052): XenForo_Autoloader->autoload('Tac_StopHumanSp...')
#1 /home/admin/public_html/community/library/XenForo/Application.php(465): XenForo_Application::autoload('Tac_StopHumanSp...')
#2 /home/admin/public_html/community/library/XenForo/Model.php(189): XenForo_Application::resolveDynamicClass('Tac_StopHumanSp...', 'model')
#3 /home/admin/public_html/community/library/XenForo/Controller.php(101): XenForo_Model::create('Tac_StopHumanSp...')
#4 /home/admin/public_html/community/library/Tac/StopHumanSpam/ControllerPublic/Thread.php(325): XenForo_Controller->getModelFromCache('Tac_StopHumanSp...')
#5 /home/admin/public_html/community/library/Tac/StopHumanSpam/ControllerPublic/Thread.php(33): Tac_StopHumanSpam_ControllerPublic_Thread->_getStopHumanSpamModel()
#6 /home/admin/public_html/community/library/XenForo/FrontController.php(351): Tac_StopHumanSpam_ControllerPublic_Thread->actionAddReply()
#7 /home/admin/public_html/community/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#8 /home/admin/public_html/community/index.php(13): XenForo_FrontController->run()
#9 {main}
Request State
array(3) {
  ["url"] => string(77) "https://sphy/community/threads/new-baby-coming-soon.40548/add-reply"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(10) {
    ["message_html"] => string(165) "<p>Congrats! What a cutie!&nbsp;<img src="styles/sphyn/xenforo/clear.png" class="mceSmilieSprite mceSmilie1" title="Smile    :)" alt=":)" data-smilie="yes"></p>"
    ["_xfRelativeResolver"] => string(68) "https://scom/community/threads/new-baby-coming-soon.40548/"
    ["use_own_style"] => string(1) "1"
    ["attachment_hash"] => string(32) "82ce3436a6d8e2744cb32d9a4f70088c"
    ["last_date"] => string(10) "1497263586"
    ["last_known_date"] => string(10) "1497263586"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(46) "/community/threads/new-baby-coming-soon.40548/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
 
Yep I was just coming here to report the same error, after today's update the add-on started giving out that error.

Some testing would be appreciated before publishing new versions :) But I understand oversights happen.

And for situations like this it would be great if there was an archive of old versions available on your site, I could have downgraded easily, but now I can't find the previous version.
 
You are both right, I'm sorry. I didnt test a simple wrap, and should keep old versions up on the site if this sort of thing happens again. Will try to keep old stable version up from now on
 
This time i get multiple errors after the new version-
Code:
Error Info
ParseError: syntax error, unexpected 'public' (T_PUBLIC) - library/Tac/StopHumanSpam/Model/StopHumanSpam.php:481
Generated By: Zyra, 1 minute ago
Stack Trace
#0 /home/admin/public_html/community/library/XenForo/Application.php(1052): XenForo_Autoloader->autoload('Tac_StopHumanSp...')
#1 /home/admin/public_html/community/library/XenForo/Application.php(465): XenForo_Application::autoload('Tac_StopHumanSp...')
#2 /home/admin/public_html/community/library/XenForo/Model.php(189): XenForo_Application::resolveDynamicClass('Tac_StopHumanSp...', 'model')
#3 /home/admin/public_html/community/library/XenForo/Controller.php(101): XenForo_Model::create('Tac_StopHumanSp...')
#4 /home/admin/public_html/community/library/Tac/StopHumanSpam/ControllerPublic/Forum.php(204): XenForo_Controller->getModelFromCache('Tac_StopHumanSp...')
#5 /home/admin/public_html/community/library/Tac/StopHumanSpam/ControllerPublic/Forum.php(15): Tac_StopHumanSpam_ControllerPublic_Forum->_getStopHumanSpamModel()
#6 /home/admin/public_html/community/library/XFA/ForumSales/Extends/ControllerPublic/Forum.php(33): Tac_StopHumanSpam_ControllerPublic_Forum->actionAddThread()
#7 /home/admin/public_html/community/library/XenForo/FrontController.php(351): XFA_ForumSales_Extends_ControllerPublic_Forum->actionAddThread()
#8 /home/admin/public_html/community/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#9 /home/admin/public_html/community/index.php(13): XenForo_FrontController->run()
#10 {main}
Request State
array(3) {
  ["url"] => string(81) "https://sphynxlair.com/community/forums/sphynx-cat-health-nutrition.33/add-thread"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(12) {
    ["title"] => string(22) "Fatty Acid Supplements"
    ["message_html"] => string(595) "<p>Hi, all!</p><p><br></p><p>Myself, @Chelseaboy and @Yoda mom were all hoping for some suggestions re fatty acid supplements. I am looking for something daily that I can mix in with baby's food, as sphynx are prone to urticaria pigmentosa and fatty acid supplements are apparently prescribed for treatment and prevention. </p><p><br></p><p>Also, on a side note, does anyone know if it is okay to mix supplements? (For example, could I put lysine powder and a fatty acid supplement in the same bowl of food?)</p><p><br></p><p>Thank you - I hope everyone's peach fuzz angels are well! (We a</p>
"
    ["_xfRelativeResolver"] => string(84) "https://sphom/community/forums/sphynx-cat-health-nutrition.33/create-thread"
    ["tags"] => string(0) ""
    ["attachment_hash"] => string(32) "89136f2526ac01b4c29c351d4d7f7fcb"
    ["watch_thread"] => string(1) "1"
    ["watch_thread_email"] => string(1) "1"
    ["watch_thread_state"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(62) "/community/forums/sphynx-cat-health-nutrition.33/create-thread"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
Delete...Close

Screen Shot 2017-06-12 at 7.48.12 PM.webp
 
I'll put the old version back up... doesn't make sense though, should be fixed, tested it on sf and a few other forums

previous stable version (and new version):
http://www.surreyforum.co.uk/thread...sts-creation-for-banned-words.1908/#post-2753

did I put the wrong one up, if so I'll put the newest one up too, should be 1.4.4 (1.4.2b is the stable version)
1.4.3 is the buggy version (the above error is from 1.4.3, it wont happen with 1.4.4, I've checked the zip, I must have uploaded the wrong file (grr)

Both stable (last working version) and latest versions are there now.
 
Last edited:
I'll put the old version back up... doesn't make sense though, should be fixed, tested it on sf and a few other forums

previous stable version (and new version):
http://www.surreyforum.co.uk/thread...sts-creation-for-banned-words.1908/#post-2753

did I put the wrong one up, if so I'll put the newest one up too, should be 1.4.4 (1.4.2b is the stable version)
1.4.3 is the buggy version (the above error is from 1.4.3, it wont happen with 1.4.4, I've checked the zip, I must have uploaded the wrong file (grr)

Both stable (last working version) and latest versions are there now.
I will be looking forward to you adding the updated version to your Complete anti spam package (Free). I had downloaded it to try it out before purchasing it, when I found the posting issue. kinda glad I tested it out first. Once I see it running smoothly I will be purchasing the paid version.
 
I didn't know there was an issue with the packs, I usually leave them at a stable version.

I'll update them soon then
 
Still having issue after update:

preg_match_all(): Empty regular expression
  1. XenForo_Application::handlePhpError()
  2. preg_match_all() in Tac/StopHumanSpam/Model/StopHumanSpam.php at line 460
  3. Tac_StopHumanSpam_Model_StopHumanSpam->checkBannedCharType() inTac/StopHumanSpam/Model/StopHumanSpam.php at line 441
  4. Tac_StopHumanSpam_Model_StopHumanSpam->contentHasBannedWords() inTac/StopHumanSpam/ControllerPublic/Thread.php at line 50
  5. Tac_StopHumanSpam_ControllerPublic_Thread->actionAddReply() in XenForo/FrontController.php at line 351
  6. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
  7. XenForo_FrontController->run() in /home/******/public_html/community/index.php at line 13
 
grrr, I just updated the packs. I haven't seen this issue, has anyone else?

are you using a certain language environment that I need to look into or use plugins that alter thread content/posts

If not, is there something different about your environment that I need to look into, language specific or other plugins that alter the thread/post content?

Have you change the default settings for this area?

566b12


and what does it say

line 160 no longer has anything to do with that, in fact it's the check for that:
Code:
                if($regex && $message)

That wont throw the error that you are reporting, the version you are using does not have the fix in. What version are you using?
 
Last edited:
Top Bottom