Hello
My community forum broke after trying to install the "StopForumSpam" plugin.
- https://www.os2world.com/forum/
Now the site shows blank like if it has not "Settings.php", but the file is there.
I had tried to recover a backup from six days ago, but the forum still does not load.
Please advice what I can do to recover the forum.
Regards
Hello again
I renamed "/forum/Sources/StopForumSpam.php" to StopForumSpam.old
The forum is now back, but if I got to the "admin" options, I get:
"Call to a member function txt() on null".
I can not change anything on the forum now.
I get this on the log:
"AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: Cannot assign null to property SFS::$context of type array in /home/others/os2wnet/os2prd/html/forum/Sources/StopForumSpam.php:118\nStack trace:\n#0 /home/others/os2wnet/os2prd/html/forum/Sources/StopForumSpam.php(97): SFS->__construct()\n#1 /home/others/os2wnet/os2prd/html/forum/Sources/StopForumSpam.php(76): SFS::selfClass()\n#2 /home/others/os2wnet/os2prd/html/forum/Sources/Subs.php(4238): SFS::hook_pre_load()\n#3 /home/others/os2wnet/os2prd/html/forum/Sources/Load.php(372): call_integration_hook()\n#4 /home/others/os2wnet/os2prd/html/forum/index.php(75): reloadSettings()\n#5 {main}\n thrown in /home/others/os2wnet/os2prd/html/forum/Sources/StopForumSpam.php on line 118'
Regards
Hello
I was able to fix the forum by renaming the /Sources/StopForumSpam folder. After that I was able to get into the "Admin" page and remove the package.
It is working again without showing errors. Now I don't know what to install to stop spam registration the forum (I even have recaptcha), but I get too much spammers.
Regards
What PHP version are you using? I would also try the mod's support ticket for support.
please remember... before installing a mod -- ALWAYS take a backup of your site files and database.
if the mod installation fails, them you can restore the backup
Quote from: martiniturbide on February 02, 2024, 10:58:43 PMNow I don't know what to install to stop spam registration the forum (I even have recaptcha), but I get too much spammers.
https://wiki.simplemachines.org/smf/Spam_-_my_forum_is_flooded_with_spam%2C_what_can_I_do
and
https://www.simplemachines.org/community/index.php?msg=3776163
This might come in handy too.
https://wiki.simplemachines.org/smf/A_mod_broke_my_forum
The best protection against spambots is a GOOD set of questions
This works well -
https://custom.simplemachines.org/index.php?mod=4278
Thanks for the suggestions.
My version are:
- SMF 2.0.19 - I can not update, long story short, my community's browser is not ready for SMF 2.1.4.
- PHP 8.1.27 (fpm-fcgi)
I tried to install "Image for Anti-Spam Verification Questions (https://custom.simplemachines.org/index.php?mod=4278)", but I get an error that is not recommended to continue with the install.
(Attached here)
Regards
Quote from: martiniturbide on February 04, 2024, 11:13:41 AMThanks for the suggestions.
My version are:
- SMF 2.0.19 - I can not update, long story short, my community's browser is not ready for SMF 2.1.4.
- PHP 8.1.27 (fpm-fcgi)
I tried to install "Image for Anti-Spam Verification Questions (https://custom.simplemachines.org/index.php?mod=4278)", but I get an error that is not recommended to continue with the install.
(Attached here)
Regards
You will have to make the edits manually to the failed file(s). Click the pencil icon to see the code that it fails or run the mod package through the parser.
Shorter story... you are going to HAVE to upgrade soon anyway, since smf 2.0.x does not and likely will not support php 8.2
Quote from: martiniturbide on February 02, 2024, 10:58:43 PMHello
I was able to fix the forum by renaming the /Sources/StopForumSpam folder. After that I was able to get into the "Admin" page and remove the package.
It is working again without showing errors. Now I don't know what to install to stop spam registration the forum (I even have recaptcha), but I get too much spammers.
Regards
Hi, you could give a try at Keycaptcha for SMF. https://www.keycaptcha.com
I have been using it for a long time and had no worry since. I also have "Bad Behavior mod" installed.
Since the OP has been here since Kindred's response with no further input on this issue, marking solved.