SMF Support > SMF 2.0.x Support

Disabling certain errors

(1/2) > >>

Texan78:
I am going through my error log trying to resolve some errors. Don't have many, but the one I have the most of isn't really a error but more of a notice.


--- Quote ---Sorry, but the administrator has blocked registration from proxies. Other causes of this error include using an intranet (school connections), registering on a cell phone, or using a browser that does not support compression or does not accept encoding
--- End quote ---

Now I am aware of this error because I am blocking proxies through a couple of means. But every time a attempt is made through a proxy and it is blocked it is logged in the error logs. Is there a way or is it possible to make a exception for this error so it is no longer logged or displayed since I am aware of it and it is legit?

-Thanks

Shambles:
Are you using the Proxy Blocker 1.1.4 mod?

If so, in Sources\Register.php should be a call to fatal_lang_error('on_proxy') at the point where a proxy has been detected. I believe you can add a second parameter to that to make it look like fatal_lang_error('on_proxy',false) to inhibit the error logs you mentioned.

All the above is just by looking at the mod, assuming that's the mod you're using.

Give it a whirl - what can it cost you ;)

Texan78:
Thanks for the response. I made the change and will see if I still receive the errors.

-Thanks

Texan78:
Just checked my error log and I am still getting the same errors. Any other suggestions or ideas?

-Thanks

Shambles:
Copy your amended Sources\Register.php file into your next post and we can have a look at it.

Navigation

[0] Message Index

[#] Next page

Go to full version