News:

Wondering if this will always be free?  See why free is better.

Main Menu

httpBL

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

Previous topic - Next topic

daviloco

Hello snoopy_virtual. i have this errors in my forum...and your mod give me this errors..





Notice: Undefined index: bookmark in /home/tuxpelic/public_html/Sources/Subs.php on line 4376

Warning: Cannot modify header information - headers already sent by (output started at /home/tuxpelic/public_html/Sources/Subs-adkblocks.php:1) in /home/tuxpelic/public_html/Sources/httpBL_Subs.php on line 128

Warning: Cannot modify header information - headers already sent by (output started at /home/tuxpelic/public_html/Sources/Subs-adkblocks.php:1) in /home/tuxpelic/public_html/warning.php on line 218




Could you be checked?





Visita mi web y encuentra mas aportes...

SMF 2.0.2 | Adk Portal 2.0 « Elysium Edition » ®
Orange Theme by Skinmod.eu

Facebook: https://www.facebook.com/MDWarez
Twitter: https://twitter.com/midescargawarez


snoopy_virtual

Those warnings you get there are saying that mod httpBL cannot work properly because you have 2 errors:

- An error inside the file Subs.php (some index called bookmark in line 4376 not defined properly)

- And another error inside the file Subs-adkblocks.php (the file, at line one is sending the headers before it's supposed to do it)

I don't know the file Subs-adkblocks.php and I know that inside the original file Subs.php there is no index called bookmark so I suppose both must be from some other mods you are using that have not been done properly.

Send me both files so I can check them and correct those errors for you.

====================

By the way, if you prefer talking in Spanish, check this other thread: Ayuda con el MOD httpBL en español

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

Ronald_1938

Snoopy it has been a few day now with no errors, now all of a sudden I started getting these errors, and quite a few of them.


See below..


Quote
http://www.theover50goldengroup.com/smf/index.php?action=login2
8: Undefined variable: ip
File: /home/theoverg/public_html/smf/Sources/httpBL_Subs.php
Line: 519




http://www.theover50goldengroup.com/smf/index.php?action=login2
2: Missing argument 1 for httpBL_look_for_empty_ip(), called in /home/theoverg/public_html/smf/Sources/httpBL_Subs.php on line 680 and defined
File: /home/theoverg/public_html/smf/Sources/httpBL_Subs.php
Line: 517


Any thoughts or ideas on this, corrections...


Ron..

snoopy_virtual


El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

Ronald_1938

Quote from: snoopy_virtual on May 07, 2012, 05:58:28 PM
I suppose you didn't correct this bug I told you last week:

http://www.simplemachines.org/community/index.php?topic=366399.msg3327443#msg3327443


Yes I did make the change, I posted the same time I did the change..below is like I did it..



   // If $ip is empty let's try to find it with more methods
   if ($ip == '')
      $ip = httpBL_look_for_empty_ip($ip);
   
   $values['ip'] = $ip;
   if ($values['ip'] == '')

snoopy_virtual

It doesn't make sense.

Are you sure those errors are new ones appearing AFTER you modified the file httpBL_Subs.php?

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

Ronald_1938

Quote from: snoopy_virtual on May 08, 2012, 02:16:46 AM
It doesn't make sense.

Are you sure those errors are new ones appearing AFTER you modified the file httpBL_Subs.php?


According to my change log I did this on May 4th. see below.






 
Quote

Re: Changelog - Admin 
« Reply #43 on: May 04, 2012, 12:39:55 PM »

 

Made the following change.


It is a bug in the code.While I sort it in the next version you can correct it manually:

Inside your Sources folder look for the file httpBL_Subs.php

Inside it (line 680) look for the code:

Code: [Select]$ip = httpBL_look_for_empty_ip();
Replace it with: 

Code: [Select]$ip = httpBL_look_for_empty_ip($ip);Save the modified file and upload it to your forum.

Ronald_1938

Snoopy here is my httBL_subs.php file.

snoopy_virtual

That file is correct.

Are you sure you uploaded it correctly to your forum?

Try uploading it again overwriting the file already inside the Sources folder in your forum.

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

lurkalot

Quote from: Oldcrow on May 08, 2012, 08:22:56 AM
Quote from: snoopy_virtual on May 08, 2012, 02:16:46 AM
It doesn't make sense.

Are you sure those errors are new ones appearing AFTER you modified the file httpBL_Subs.php?


According to my change log I did this on May 4th. see below.






 
Quote

Re: Changelog - Admin 
« Reply #43 on: May 04, 2012, 12:39:55 PM »

 

Made the following change.


It is a bug in the code.While I sort it in the next version you can correct it manually:

Inside your Sources folder look for the file httpBL_Subs.php

Inside it (line 680) look for the code:

Code: [Select]$ip = httpBL_look_for_empty_ip();
Replace it with: 

Code: [Select]$ip = httpBL_look_for_empty_ip($ip);Save the modified file and upload it to your forum.

Oldcrow, that file on your server was last modified on the 22/04/2012   The one in your old directory (remember you moved SMF) is dated the 04/05/2012.  So you've added it to the wrong place.  ;)

Ronald_1938

Quote from: snoopy_virtual on May 08, 2012, 01:54:56 PM
That file is correct.

Are you sure you uploaded it correctly to your forum?

Try uploading it again overwriting the file already inside the Sources folder in your forum.


What I did was make the change manually..


I'll ask Mick to make the change and upload it. Then this should take care of it..

Ronald_1938

Snoopy I keep getting this one error for sometime now..

QuoteApply Filter: Only show the error messages of this URL http://www.theover50goldengroup.com/smf/index.php?action=who Apply Filter: Only show the errors with the same message 8: Undefined variable: scripturl Apply Filter: Only show the errors from this file  File: /home/theoverg/public_html/smf/Sources/Who.php
Line: 439

Any thoughts on this..

snoopy_virtual

mmmm

No idea.

As far as I know it has nothing to do with any of my mods.

Can you send me your file "Who.php" so I can take a look at it?

You will find it inside the Sources folder of your forum.

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

Ronald_1938

Quote from: snoopy_virtual on May 26, 2012, 06:05:34 PM
mmmm

No idea.

As far as I know it has nothing to do with any of my mods.

Can you send me your file "Who.php" so I can take a look at it?

You will find it inside the Sources folder of your forum.


Sorry about this, I thought it was part of the program.


I did attach the who file for you.

snoopy_virtual

Somebody has done a change there at line 422 and has done it wrong. That's what causes the error.

Ask whoever is doing those changes for you in your site if that change was a manual change or if it was done with a mod.

If it was done with a mod you would need to ask the guy who did the mod to correct it.

If it was done manually you can correct it also manually:

Inside the original SMF file (without any modification) the proper lines there are:


// Unlisted or unknown action.
else
$data[$k] = $txt['who_unknown'];


In your file somebody has modified them and you have:


// Unlisted or unknown action.
else
// $data[$k] = $txt['who_unknown'];
$data[$k] = 'Viewing the <a href="' . $scripturl . '?action=' . $actions['action'] . '">' . $actions['action'] . '</a>';


If you want that change to work properly without errors you should have;


// Unlisted or unknown action.
else
{
// $data[$k] = $txt['who_unknown'];
global $scripturl;
$data[$k] = 'Viewing the <a href="' . $scripturl . '?action=' . $actions['action'] . '">' . $actions['action'] . '</a>';
}

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

Ronald_1938

Thanks Snoopy, I feel it may have something to do we Tiny Portal.. I disabled who is online block and the errors seem to have stopped, been almost a day now..


But I will make the change as you say, and try again..


Thanks for the help, I appreciate this.


Ron..

sles

same time as other browsers, load page error as below.

An Error Has Occurred!
Sorry Guest, you are banned from using this forum!


If didn't use MOD it work fine.

busterone

You need to be a little more descriptive of your issue. If I understand what you are attempting to say, then this mod does not ban anyone, nor does not touch the SMF ban system. If you are seeing the message- "An Error Has Occurred!
Sorry Guest, you are banned from using this forum!", that is generated from the SMF ban system, either by IP, email address, or username triggers.

jeffharding

Aloha!

One of my customers had registered with the forum with a particular IP Address 41.241.239.55 ...
but about 90% of the time he visits, the forum claims that he is coming through IP 196.25.255.195
and he is denied access with the attached warning or error page.

I have contacted the Honey Pot and Eric replied ...

**************
So I've done a little digging on this. It looks like both of those IPs are from the same network:
descr:        Telkom SA Limited
descr:        Integrated Network Planning
descr:        Private Bag X74
descr:        Pretoria
descr:        Gauteng
descr:        0001
country:      ZA
196.25.255.195 has a hostname of: wblv-ip-pcache-5-vif0.telkom-ipnet.co.za
41.241.239.55 has a hostname of: dsl-241-239-55.telkomadsl.co.za

Best guess is that his ISP is attempting to do some acceleration on their end with their cache host and it's the cache hosts IP that is listed. I say it's my best guess because I have no view into what his ISP is doing with his traffic. If you look at your access logs are you seeing traffic from both IPs or just the cache IP?
What are you using to query httpBL? Does it have an internal white list mechanism? Alternatively he can probably contact his ISP and let them know they have an abuse problem with that cache.
Best Regards,
Eric
******************************

Can I whitelist this IP Address or can I whitelist this user no matter what IP he comes from?

Thanks!

Jeff

snoopy_virtual


El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

Advertisement: