Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: martiniturbide on February 02, 2024, 10:24:25 PM

Title: Forum broke after installing StopForumSpam
Post by: martiniturbide on February 02, 2024, 10:24:25 PM
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
Title: Re: Forum broke after installing StopForumSpam
Post by: martiniturbide on February 02, 2024, 10:40:24 PM
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
Title: Re: Forum broke after installing StopForumSpam
Post by: martiniturbide on February 02, 2024, 10:58:43 PM
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
Title: Re: Forum broke after installing StopForumSpam
Post by: vbgamer45 on February 02, 2024, 11:02:41 PM
What PHP version are you using? I would also try the mod's support ticket for support.
Title: Re: Forum broke after installing StopForumSpam
Post by: Kindred on February 03, 2024, 12:22:50 AM
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
Title: Re: Forum broke after installing StopForumSpam
Post by: Steve on February 03, 2024, 06:14:38 AM
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
Title: Re: Forum broke after installing StopForumSpam
Post by: Doug Heffernan on February 03, 2024, 07:09:40 AM
This might come in handy too.

https://wiki.simplemachines.org/smf/A_mod_broke_my_forum
Title: Re: Forum broke after installing StopForumSpam
Post by: Kindred on February 03, 2024, 08:06:29 AM
The best protection against spambots is a GOOD set of questions
Title: Re: Forum broke after installing StopForumSpam
Post by: Sir Osis of Liver on February 03, 2024, 04:28:20 PM
This works well -

https://custom.simplemachines.org/index.php?mod=4278
Title: Re: Forum broke after installing StopForumSpam
Post by: martiniturbide on February 04, 2024, 11:13:41 AM
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
Title: Re: Forum broke after installing StopForumSpam
Post by: Doug Heffernan on February 04, 2024, 11:45:29 AM
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.
Title: Re: Forum broke after installing StopForumSpam
Post by: Kindred on February 04, 2024, 06:03:14 PM
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
Title: Re: Forum broke after installing StopForumSpam
Post by: meylodie on February 08, 2024, 06:18:06 AM
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.


Title: Re: Forum broke after installing StopForumSpam
Post by: Steve on March 25, 2024, 11:04:52 AM
Since the OP has been here since Kindred's response with no further input on this issue, marking solved.