Forum broke after installing StopForumSpam

Started by martiniturbide, February 02, 2024, 10:24:25 PM

Previous topic - Next topic

martiniturbide

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

martiniturbide

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

martiniturbide

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

vbgamer45

What PHP version are you using? I would also try the mod's support ticket for support.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Kindred

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
Слaва
Украинi

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."

Steve

My pet rock is not feeling well. I think it's stoned.


Kindred

The best protection against spambots is a GOOD set of questions
Слaва
Украинi

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."

Sir Osis of Liver

When in Emor, do as the Snamors.
                              - D. Lister

martiniturbide

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", but I get an error that is not recommended to continue with the install.
(Attached here)


Regards

Doug Heffernan

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", 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.

Kindred

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
Слaва
Украинi

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."

meylodie

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.



Steve

Since the OP has been here since Kindred's response with no further input on this issue, marking solved.
My pet rock is not feeling well. I think it's stoned.

Advertisement: