Hi,
If you're getting this error then it means that the $IPComponents variable probably isn't an array (failed to explode the IP), check the value of $_SERVER['REMOTE_ADDR'] if you get this error - It SHOULD be an IP address but depending on your ISP you may need to substitude this setting with another value, like HTTP_X_FORWARDED_FOR or something else depending on your setup.
Check out this thread on stack overflow for some tips on whats best to use for your situation:
stackoverflow.com/questions/527638/ ...
Seth