News:

Join the Facebook Fan Page.

Main Menu

httpBL

Started by Diego Andrés, February 17, 2010, 03:55:54 PM

Previous topic - Next topic

shadav

Quote from: landyvlad on September 14, 2021, 04:10:58 AMYes I am running that mod and it already has that code in it

echo '
                            </td>
                            <td nowrap="nowrap" class="hidden">', $member['time'], '</td>

you need to change the install for this mod to match what you have so it will install
download the package unzip it, edit the install_2.xml with notepad
in notepad search for
', $member['time'], 'now at this point find and highlight all of
        echo '
                            </td>
                            <td nowrap="nowrap">', $member['time'], '</td>
now copy all of this
        echo '
                            </td>
                            <td nowrap="nowrap" class="hidden">', $member['time'], '</td>
and paste it to the notepad replacing what you highlighted
save and exit
now zip up the package and make sure to name it the same that it was httpBL_v2_5_1.zip
upload this new package to your package folder and install it
if it still gives an error it's probably a spacing issue
you could try replacing it with
echo '
                            </td>
                            <td nowrap="nowrap" class="hidden">', $member['time'], '</td>

Kindred

or don't even bother modifying the mod install.... just manually apply the "add before code.

Basically, the responsive curve mod has modified the target code

You can
a) change the mod install instructions to look for the modified code instead of the original code.
b) change the code in your template to match the code that is being looked for --  apply the mod, and then change it back to what was there before.
c) just add the mod code to the location yourself, since you KNOW what the location actually is, and it's an add, not a replace.
Сл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."

landyvlad

So rather than apply one of the suggested solutions offered by you Kindred (thanks BTW) all I saw was this part.
Quote from: Kindred on September 14, 2021, 09:48:01 AMBasically, the responsive curve mod has modified the target code

so I thought I'd be clever so uninstalled the responsive curve mod (no errors) then installed httpBL (no errors) all good.

I thought when I went to reinstall the responsive curve mod I had lots of errors, and panicked, but then I realised the errors were all related to the Core theme not the default theme. Phew! Panic averted.

All seems good now.


Thanks Shadav and Kindred for your patient help. 
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

landyvlad

I read somewhere in this thread that the "OS & Browser Detection" mod is required to be installed for httpBL to function properly.  I see that mod is mentioned on the httpBL mod page but only as:
QuoteThanks to Marcin Krol and X3mE for writing the functions in the Mod OS & Browser Detection
so maybe that advice is outdated or I have just misinterpreted it.

If it's not necessary I'll get rid of it because I have no other need for it. 

Please advise :)
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

landyvlad

The mod author @snoopy_virtual hasn't been online since June which is concerning.

I was really hoping for this to be updated to be compatible with 2.1 
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

EL34

Is it possible to have the httpBL mod not write to the spammers log and humans log?
All I do is delete all those entries every day
I don't really need to look at any of the info in those two logs

Is that possible?
Thanks
Forum History -> EZBoard -> YABB -> SMF 1.1.19 -> SMF 2.0.19

landyvlad

Why change the mod - there's no need

Quote from: EL34 on December 03, 2021, 09:43:44 AMI don't really need to look at any of the info in those two logs

So don't look   :D
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

EL34

hey thanks, Dumb reply

You have to go there to empty out the data base entries

What do you do, just let the data base expand endlessly?
Forum History -> EZBoard -> YABB -> SMF 1.1.19 -> SMF 2.0.19

landyvlad

It's actually not a dumb reply.

1. It's not good practice to prevent any kind of error from logging to the error log. That's what its for.' Telling it not to log errors could have unintended consequences where important errors could be missed.

2. You can prune the error logs periodically. And yes you can let it build up for ages if you want, it takes very little space.

But you know, do what you want to do just don't come whinging when it all goes horribly wrong :P


/grumpy hat off
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

EL34

Thanks, but I'll take my chances since the logs are totally useless
Forum History -> EZBoard -> YABB -> SMF 1.1.19 -> SMF 2.0.19

Aleksi "Lex" Kilpinen

The amount of logging this mod does, shouldn't really affect most forums much - and what I did when I used this was I just made it a routine to go and empty it every once in a blue moon. Sure, probably could cut down the amount of logs kept or automate cleaning them, but that would be up to the mod author who doesn't seem to be around.

Now, I don't want anyone continuing this discussion further - Thank you.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Steve

Quote from: Aleksi "Lex" Kilpinen on December 09, 2021, 09:10:34 AMNow, I don't want anyone continuing this discussion further - Thank you.
I've removed the off-topic responses (including mine).
DO NOT pm me for support!

_Jojo_

Now that SMF 2.1 is officially out, has anyone looked yet making this mod compatible with 2.1? Together with Snoopy's other Stop Spammer mod (which is being worked on), this is one of the most valuable spam prevention mods for SMF, as far as I'm concerned.

landyvlad

If you'd been following that other thread there are issues around licenses etc, the same applies to this mod I believe (same author)

"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

SD-X

Quote from: _Jojo_ on March 08, 2022, 01:02:52 PMNow that SMF 2.1 is officially out, has anyone looked yet making this mod compatible with 2.1? Together with Snoopy's other Stop Spammer mod (which is being worked on), this is one of the most valuable spam prevention mods for SMF, as far as I'm concerned.
This!

Quote from: landyvlad on March 09, 2022, 05:29:17 AMIf you'd been following that other thread there are issues around licenses etc, the same applies to this mod I believe (same author)
From what I've seen so far, that only applied to the other mod. The original authors are still in charge of this one, and don't appear to be active right now.

Sea Mac

I totally depend on this MOD, so when I suddenly found a whole bunch (> 100K) of errors in my error log ... I checked to see if I had made any recent changes to it's settings. Nope ... all those database errors (Error 8 ) in my main Error logs wanted to blame httpBL ... turns out it's NOT really httpBL at fault!

I figured out the answer for version 2.0.19 on a Linux Shared Sever running cPanel 100.0.12 . YMMV - but I suggest you try this first.
I apparently caused all of my SMF Forums ... all 3 of them ... to start throwing the database errors when I switched the Version of PHP, in my PHP Selector (in cPanel) UP to PHP Version 7.2

Yesterday I switched my Version of PHP back DOWN to PHP version 5.4 - and Every Error in my Error log quit accumulating at that moment. I cleared the error log and NO Errors have occurred in over 24 hours!!!

A forum with httpBL installed simply isn't compatible with the newer/higher versions of PHP!!!
(I'm guessing anything above Version 6 will cause errors to happen ... I KNOW that PHP 7.2 "Breaks" it.)


IF you find you're getting LOTS of database errors just try this quick check before your start pulling hair and gnashing teeth: Switch your Version of PHP down to 5.4 (and then 'apply' the setting) ... then hurry back to your forum and clear your main error log ... AND SEE if the Errors start pouring in again at once.

It LOOKS as if httpBL still works PERFECTLY under PHP 5.4 - but I had Trouble BIG Time (Times 3) when I "upgraded" my PHP version to 7.2 !!! That's ALL it Was ... version of PHP was TOO New ... when I deliberately set it back to an OLD Version of PHP ALL of the Errors in my forums error logs QUIT Piling Up!

And it took me a month of hair pulling and teeth gnashing to get around to trying this "Fix" ... I tried everything.

I even hand Edited the code in line 680 as recommended in This Comment ... nothing worked until I tried switching to one of the lowest versions of PHP still supported by 2.0.19 and then "No Problems Since".

(It DOES still Have my manual edit on line 680.)
Quote from: riou on September 09, 2019, 08:43:37 PM
Quote from: shadav on September 09, 2019, 03:00:18 PMI tried testing my forum on my phone but I get an error and can't log in

Too few arguments to function httpBL_look_for_empty_ip(), 0 passed in /sources/httpBL_Subs.php on line 680 and exactly 1 expected
on line 680
$ip = httpBL_look_for_empty_ip();


Believe the fix to this was changing that line to

$ip = httpBL_look_for_empty_ip($ip);

The mod was never updated to fix this and I think maybe the other issue that has existed for a bit in the 2.0 line

Try editing this line of code as shown ... AND Then set your PHP Version down to PHP 5.4 ... this worked for me when nothing ELSE Did!

If you gave this MOD Up because it quit working for you suddenly ... your server Might Have had an UPGRADE to a Higher Version of PHP by your HOSTING Company without them warning you about it ... go check WHICH Version of PHP you Have running NOW: and Roll it BACK to PHP 5.4 IF You Can. Then See if you Still have a "problem" with it.

Sea Mac

Quote from: Kindred on September 09, 2019, 03:31:36 PMI don't think this mod has been updated for php 7.2

but, then again, SMF itself does not currently support php 7.2


SMF 2.0.19 DOES Support PHP 7.2 ... Now: two years later. In 2021 ... finally.

But I can confirm that the httpBL mod has not been updated for PHP 7.2 since you posted that ... and in fact it DOESN'T Appear to work correctly on PHP 7.2 ... I have had a LOT of recent trouble with it.

SMF 2.0.19 Still supports PHP 5.3 ... and so I had very good results rolling my server's versions of PHP back all the way to PHP 5.4 . Since I tried the PHP 'version reversion': everything has been running smoothly, without any errors, in all 3 forums.

If you have a problem with mod httpBL working poorly - or not at all - please check which version of PHP your server is running. I made this simple oversight mistake, MYSELF: and only recently realized what the problem was. It's easy to overlook. See if PHP 5.4 "Fixes" your problems?

landyvlad

OK so I was having the same problem as posted above

so I

1. Rolled back to PHP 7.0
2. Applied the line 680 fix.

Quote from: riou on September 09, 2019, 08:43:37 PM
Quote from: shadav on September 09, 2019, 03:00:18 PMI tried testing my forum on my phone but I get an error and can't log in

Too few arguments to function httpBL_look_for_empty_ip(), 0 passed in /sources/httpBL_Subs.php on line 680 and exactly 1 expected
on line 680
$ip = httpBL_look_for_empty_ip();


Believe the fix to this was changing that line to

$ip = httpBL_look_for_empty_ip($ip);



Fingers crossed this will sort it.
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Advertisement: