PDA

View Full Version : Crashed the site with to many banned IP


dontoe
01-08-2009, 01:37 AM
I just crashed my site by adding the full length of IP address' from stopforumspam.com.
Now I can't get into the admin section to delete them. ANy ideas?

vBulletin Message
Unable to add cookies, header already sent.
File: /home/carolikf/public_html/forums/includes/class_core.php
Line: 3075


And at the top of the screen..........


Warning: preg_match() [function.preg-match]: Compilation failed: regular expression is too large at offset 482950 in /includes/functions.php on line 700

Bellardia
01-08-2009, 01:41 AM
Try disabling the functions for now. Open the php files and wrap the functions in comments
/* */ which should prevent it from using up all the memory. Go in, delete the banned IP's and then uncomment the functions.

dontoe
01-08-2009, 01:51 AM
Unfortunately, I'm not experienced enough to do that without more info. Any more help would be a huge help.

Bellardia
01-08-2009, 02:03 AM
Go to the lines in the files specified (3075) in the first one. You'll see that it's a particular function, perhaps the middle of one. Scroll up until you can find the function definition (something like function Do_this() ). It might be in a class. Type /* before the function definition, and scroll down to find where it ends, should terminate with a } but not necessarily the first one you see, it will be tabbed in the same amount as the function line. Type a */ after the }.

Do this for both. There's probably an easier way to do this, but I've never had this problem. I -hope- you can kind of understand what I'm saying.

dontoe
01-08-2009, 02:06 AM
Do ya get into the php with the Cpanel on the server? A newby here..........

--------------- Added 1231387904 at 1231387904 ---------------

Normally I access the files through "Filezilla"
Is that the way?

--------------- Added 1231388060 at 1231388060 ---------------

OK, I figured it out. Thank you very much for the help. I got it going again thanks to your advice. And thanks Vbulletin.org for being there when things go wrong!!!

Marco van Herwaarden
01-08-2009, 09:09 AM
Can you please also post it in the bugtracker on vB.com.

It is not really a vB bug, but better report it as such so the developers are aware of this issue and might be able to put a check before such a large list is saved. Since this problem need manual edits to the database to resolve, it mightbe worth trying to prevent it.

dontoe
01-08-2009, 08:45 PM
Good idea. I looked at the IP address' after the problem and I see now there are 99 pages of them on a "word" document. Sheesh!