Wondering if this will always be free?  See why free is better.

Main Menu

Stop Forum Spam

Started by SleePy, March 21, 2022, 12:11:09 AM

Previous topic - Next topic

Mooby The Golden Sock

Quote from: IVIIVI4ck3y27 on March 26, 2024, 06:12:07 PMI've run into an error with our forum upon trying to install the package. I'm getting the HTTP Error 500 as noted above.  I looked in the error log and it's noting this as the only error for today:

[26-Mar-2024 21:58:37 Africa/Abidjan] PHP Parse error:  syntax error, unexpected '|', expecting variable (T_VARIABLE) in /*****/**********/public_html/*********/forum/Sources/StopForumSpam.php on line 1023

I'm not sure on the Africa/Abidjan as the server is located in the Eastern U.S.  I blanked out the server related info and site name info. in the above shared error log comment.

I also can't run fix_packages.php either (it doesn't seem to access it when pointed at it in a browser despite it being in the root of the forum directory with the SSI and Settings.php files) so kind of stuck at the moment. It's an old forum (not active for a # of years) that I just recently updated to 2.0.19 but I'm not sure what version of PHP and MySQL we're on as it's basically been running for awhile with minimal updates.  I have ran into a lot of spammers just recently and disabled registrations. 

I'd like to revert back but obviously (and quite stupidly) I didn't back things up because... why would I? *SMDH*  Hoping I can just get it to uninstall but not sure if there's a means to?
I've got the same error.  Deleting /Sources/StopForumSpam.php and the /Sources/StopForumSpam folder will let you back into the admin area.  Can't figure out how to get the mod to work, though.

Mooby The Golden Sock

Update: Updating my PHP to the latest (8.3) fixed the problem.


No version of smf currently supports php 8.3

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."


To be clear, SMF 2.1 doesn't officially support PHP 8.3, yet.  However, I currently don't know of any major issues with 8.3. We recommend at least 8.0.  8.1 and 8.2 are supported.  As PHP has stopped support for 8.0, you are welcome to use 8.1 or 8.2.  I don't know of any security issue in 8.0 since they stopped supporting it that would be of concern for SMF.  Maybe that will change someday and maybe that affects other software on your site.  This mod is using PHP code that requires 8.0.  Thus this mod requires PHP 8.0.  I tagged the mod on the site to show it needs 8.0.

Also this only covers 2.1.  2.0 and 3.0 both have separate supported versions.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ ~ Support the SMF Support team!


Just started using this new version since I upgraded to SMF 2.1.4.

Here are some of my observations using this newer version.

1. Selecting entries in the SMF log and then clicking "Delete selected" doesn't do anything.

2. When a spammer is blocked, they see "Your request was denied as your email, username and/or IP address is listed in the Stop Forum Spam database". This is too much information IMHO as the spammer now knows where to look to bypass the check. I changed my language to simply state that "your email, username and/or IP has been flagged as being that of a potential spammer". Now the spammer has no idea what was used to trigger the detection.

Overall, I really like the plugin, thanks!


I can't reproduce the first issue, the log function does however prevent deleting logs that are less than 24 hours old.

I realize it may provide lots of information to a spammer, but if they are in the database and a legit user, it can help them request removal with no action on your part.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ ~ Support the SMF Support team!