Advertisement:

Author Topic: Stop Spammer  (Read 687816 times)

Offline PenelopeQ

  • Jr. Member
  • **
  • Posts: 354
    • The Hero's Spouse
Re: Stop Spammer
« Reply #2020 on: January 13, 2018, 02:33:20 AM »
the code is not there. I checked for specific pieces...for instance I searched for 'sub_action' and it was not anywhere in the document. I did this for a few other pieces as well.

Another mod must have made changes, but how do I find out what mod and what to do about it?

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,271
  • Gender: Male
    • Kindred-999 on GitHub
Re: Stop Spammer
« Reply #2021 on: January 13, 2018, 02:19:38 PM »
If 2.0 15 installed then that code IS there. Guaranteed
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline EL34

  • Jr. Member
  • **
  • Posts: 268
Re: Stop Spammer
« Reply #2022 on: January 15, 2018, 02:06:30 PM »
I ran into the same error today when updating from 2.0.14 to 2.0.15

I just did this which was quick and simple
I made a backup copy of ManageMembers.php



Open the file and find this stop spammer code

Code: [Select]
if ($context['sub_action'] == 'query' && !empty($_REQUEST['params']) && (empty($_POST)
|| ((isset($_POST['spammers_checks']) || isset($_POST['spammers_report'])) && !empty($_POST['delete']))))
$_POST += safe_unserialize(base64_decode($_REQUEST['params']));



Replace the code above with the stock code that the update is looking for which is this and then save the file

Code: [Select]
if ($context['sub_action'] == 'query' && !empty($_REQUEST['params']) && empty($_POST))
$_POST += safe_unserialize(base64_decode($_REQUEST['params']));

Run the 2.0.15 again and it updated without any errors because it found the stock code



Then I went back to the file to find the new updated stock code which is this

Code: [Select]
if ($context['sub_action'] == 'query' && empty($_POST))
{
if (!empty($_REQUEST['params']))
{
$_POST += safe_unserialize(base64_decode($_REQUEST['params']));
}
elseif ($context['browser']['is_ie'] && !empty($_SESSION['params']))
{
$_POST += $_SESSION['params'];
unset($_SESSION['params']);
}
}



I change the stock line to the line that Kindred posted up above (reply 2004) and saved the file
It's the first line of code in the updated code section

The updated stock code line is this

Code: [Select]
if ($context['sub_action'] == 'query' && empty($_POST))

I changed it to this

Code: [Select]
if ($context['sub_action'] == 'query' && (empty($_POST) || ((isset($_POST['spammers_checks']) || isset($_POST['spammers_report'])) && !empty($_POST['delete']))))


Forum History -> EZBoard -> YABB -> SMF 1.1.19 -> SMF 2.0.14

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,271
  • Gender: Male
    • Kindred-999 on GitHub
Re: Stop Spammer
« Reply #2023 on: January 15, 2018, 05:51:09 PM »
You just repeated the same instructions that have already been stated several times....
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline djkimmel

  • Semi-Newbie
  • *
  • Posts: 64
    • GreatLakesBass.com
Re: Stop Spammer
« Reply #2024 on: January 17, 2018, 09:46:26 PM »
The mod author hasn't been here in 7 years.

I guess I'm not smart enough to check profiles... Someone - the other author I assume - updated the mod a couple years ago but maybe he/she is also no longer active? Which isn't great for those of us still using this mod. I must be an optimist, assuming all the mod authors are still active and watching over their creations.

Offline djkimmel

  • Semi-Newbie
  • *
  • Posts: 64
    • GreatLakesBass.com
Re: Stop Spammer
« Reply #2025 on: January 17, 2018, 09:48:35 PM »
I did the opposite...  I just edited the line for 2.0.15 around the mod edit that was already there...

Either way works and keeps both the system and the mod working just fine

Okay. Thanks for providing some moral support. Very helpful with the way things have been going lately with updates and vulnerabilities.